View Full Version : 3d light rotation
I'm just getting started with OpenGl and already I have a problem. I need my light source to rotate in 3d with the mouse. I already have it rotating on the x and y axes, but I need the light source to go behind the object and then appear again. Any help?
Thanks.
nexusone
08-28-2002, 07:56 AM
Have you thought about moving it on the Z axis?
You can make the Y a fixed value, and move just the Z and X with the mouse
Just a thought...
http://www.opengl.org/discussion_boards/ubb/smile.gif
Originally posted by Uther:
I'm just getting started with OpenGl and already I have a problem. I need my light source to rotate in 3d with the mouse. I already have it rotating on the x and y axes, but I need the light source to go behind the object and then appear again. Any help?
Thanks.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.