Page 1 of 1

How to interf C++progr receiving sp.craft coord over network

Posted: 22.03.2005, 13:56
by ovr
Being new to Celestia and CELX it is not obvious for me how to get my small C++ application, which is receiving/decoding real time coordinate information and quaternions concerning current positioning + rotation of two satellites to update positions of my two spacecraftmodels sat1.3ds sat2.3ds in Celestia. Please give me some hint on how/where to start.

Posted: 22.03.2005, 15:06
by selden
Unfortunately, Celestia does not yet reread its data files while it's running. After your program writes the updated SSC file, you have to stop and then restart Celestia.

Posted: 22.03.2005, 16:09
by ovr
Thanks for your fast comment. According to http://celestia.h-schmidt.net/celx-summary-1.1.html under 2.4.5 you can read:".....1.3.2 You can access the x-component directly by using position.x (this works for assignment too: position.x = 1)" , Sounds like a CELX/LUA-script should be able to set the position.x, position.y,position.z for a spacecraft if you can make the CELX-script i call a C++-routine, which is fetching coordinate data from the network. How then to make the CELX-script call a C++-routine....?

Posted: 22.03.2005, 22:21
by Harry
ovr wrote:Sounds like a CELX/LUA-script should be able to set the position.x, position.y,position.z for a spacecraft

No, you can only set the components of the position itself, but this doesn't change the spacecraft.

Harald

Posted: 20.05.2005, 21:12
by JazziFan19
Hi, ovr -

I don't have answers for you, but I'd like to know what you find out. I'm trying to do something very similar. Thanks.