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
making the gotoSelection quicker
-
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
Re: making the gotoSelection quicker
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
centerSelection
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
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