Page 1 of 1

Planets' Simulation + Sun Light Effect

Posted: 22.06.2003, 14:37
by ghis
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

Posted: 22.06.2003, 18:14
by HankR
Try looking here:

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

2) render.cpp

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

- Hank

Posted: 23.06.2003, 17:53
by chris
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