Please visit this thread if you have some knowledge about this..
Regards,
Fox
Printable View
Please visit this thread if you have some knowledge about this..
Regards,
Fox
No way do I want to analyze the code.
Since there are so many stars in your application and they do not move, I have trouble visualizing any depth effect. There are no visual clues to suggest any 3D perspective.
For one of my applications, I do the math to project points onto a viewing plane to give the 3D effect of watching moving stars & planets though the window of a space ship.
I assume that you are doing something similar.
Could your code be rotating the viewing window, rather that rotating the starfield? Your description of the problem suggests that might be the case.
If you are rotaing the viewing plane/window, a straight line of stars would be correct for some orientation.
BTW: How do you move the point of view far away to allow seeing the cube containing the stars?
fox hadn't implemented the camera offset