lancea
03-19-2008, 05:27 AM
Hello, I am new to OpenGL. I am currently having problems with lighting.
I have a cube at the origin and have a light at X=1.0,Y=1.0,Z=1.0
The problem is, the reflection of the light is too much. By too much I mean that it covers the entire face of my cube.
I will be attaching my code so that you may see what I am talking about and hopefully, have a solution for my problem.
Here is the link: piano.c (http://bloodfire1004.angelfire.com/piano.c)
You can rotate the cube by using X,Y,and Z. Thank you for your time!
I have a cube at the origin and have a light at X=1.0,Y=1.0,Z=1.0
The problem is, the reflection of the light is too much. By too much I mean that it covers the entire face of my cube.
I will be attaching my code so that you may see what I am talking about and hopefully, have a solution for my problem.
Here is the link: piano.c (http://bloodfire1004.angelfire.com/piano.c)
You can rotate the cube by using X,Y,and Z. Thank you for your time!