Planets' Simulation + Sun Light Effect

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
ghis
Posts: 2
Joined: 21.04.2003
With us: 21 years 5 months
Location: Europe (Italy - UK - France)

Planets' Simulation + Sun Light Effect

Post #1by ghis » 22.06.2003, 14:37

I am new to Celestia, so I apologise in advance if my questions have been already asked before. I did try to search in the old emails but couldn't find anything related to it. I am numbering my questions to facilitate any reply to them...


1) I would like to know where all the planets' celestial mechanics parameters (e.g. orbits' elements, rotation on their axis, obliquity, etc.) are defined in Celestia (i.e. in which Celestia C++ file).

2) Secondly, I would like to know where is the OpenGL code that uses these parameters to produce the graphical effects.

3) And I would also like to know where is the OpenGL programming code (i.e. in which Celestia C++ file) related to the Sun light effects?


Cheers! Thanks for your help!!

ghis

HankR

Post #2by HankR » 22.06.2003, 18:14

Try looking here:

1) body.cpp, customorbit.cpp, vsop87.cpp

2) render.cpp

3) render.cpp, regcombine.cpp, multitexture.cpp, vertexprog.cpp

- Hank

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

Post #3by chris » 23.06.2003, 17:53

You'd probably also be interested in looking at solarsys.ssc where the rotational elements (and some orbital elements) for specific planets are defined.

--Chris


Return to “Development”