Orge
Member
|
About engine internals
Just tried to modify a Day Night Cicle tutorial. I wanted to add the second Sun. I declare SunClass Sun2. And than do only simple copy-paste code from the original Sun, with a slight change in the velocitites. So I expect to see an another sun object with the same initial position moving along the same trajectory but a little slower. I do build and run and see nothing(only the standard Sun). I did commenting the original Sun just in case, and run with only the code I made and nothing - just the clear sky. It looks like my Sun2 needs to be "registered" to be rendered, but that's only my speculation. Explain me please, what I do wrong, what is right and how it actualy works.
(This post was last modified: 03-10-2010 12:30 PM by Orge.)
|
|
03-10-2010 12:28 PM |
|
Esenthel
Administrator
|
RE: About engine internals
Hello,
there can be only one sun (by using 'Sun' object)
if you wish to have another planetoids please use 'Astros' memory container declared in the same header file.
|
|
03-10-2010 03:04 PM |
|