Hi,
I have a rotating cylinder.
The problem is that when I apply lightings on it, the cylinder gets darker and darker as it rotates, and eventually it becomes black.
why?
Hi,
I have a rotating cylinder.
The problem is that when I apply lightings on it, the cylinder gets darker and darker as it rotates, and eventually it becomes black.
why?
How do you place your light source position?hah
how should i place the light source?
Probably a different way than what you do now…
Things to think about when placing lights that might help you figure out your problem.
If things change over time, the problem is mostlikley that you dont use ‘glLoadIdentity’ or that your are messing with the matrixmode.
Both are common beginners mistakes.