Sign in to follow this  
asafdav2

about lights and primitives

Recommended Posts

asafdav2    122
i set up a scene made of a room and a light. however when adding (on runtime) a cube to the scene (glutSolidCube) i experience a weird phenomena: the lights suddenly go darker. when the cube goes out the lights go back to normal. this happens with other glut primitives as well. any idea?

Share this post


Link to post
Share on other sites
zedz    291
try sticking
glPuskAttirb( GL_ALL_ATTRIB_BITS );
.. draw something
glPopAtrrib();

what happens with gl when u turn something on, it stays on, until u turn it off

Share this post


Link to post
Share on other sites
riruilo    218
Does glutSolidCube add normals?

I had the same problem, but when I coded my cube manually with glvertex and glnormals it worked fine.

Hope this help you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this