making the gotoSelection quicker

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
tec
Posts: 51
Joined: 14.03.2006
With us: 18 years 8 months
Location: Huntsville, AL

making the gotoSelection quicker

Post #1by tec » 22.08.2006, 23:02

I have used the gotoSelection function but I am looking for a gotoSelection that goes to the body in one frame (right away). Does anyone know is there is a funciton that will do this? I noticed that gotoSelection has an argument of time. Can I use this time and set it to epsilon?

I am running 5000 Monte Carlos runs and it takes too long to wait for the selection to center on the body.

Thanks,
Tim

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: making the gotoSelection quicker

Post #2by chris » 22.08.2006, 23:20

tec wrote:I have used the gotoSelection function but I am looking for a gotoSelection that goes to the body in one frame (right away). Does anyone know is there is a funciton that will do this? I noticed that gotoSelection has an argument of time. Can I use this time and set it to epsilon?

I am running 5000 Monte Carlos runs and it takes too long to wait for the selection to center on the body.


I think that setting the time argument to zero might not work, but you should be able to set it to a very small value (0.001 seconds is less than the time it takes to render a frame on an average system.) I haven't tried it myself, though there's no reason it shouldn't work. Let me know if you run into troubles.

I'm curious . . . what's the Monte Carlo simulation for?

--Chris

Topic author
tec
Posts: 51
Joined: 14.03.2006
With us: 18 years 8 months
Location: Huntsville, AL

centerSelection

Post #3by tec » 22.08.2006, 23:41

I tried 0.0001 and it works very well. I will use 0.0001.

I use Celestia as a scene generator to go to every star brighter than 6.0. I then use my star pattern matching algorithms to see if I can identify where my scene is pointing.

I developed two star matching algorithms. Both of them are over 90% successfull in finding the right star and telling me where my space craft's camera is pointing. Our company uses these algorithms to calibrate our onboard IMUs.

Celestia is a wonderful tool for doing this.

Tim


Return to “Development”