Well that is good if you are not seeing any light on that circle (which is supposed to be a sphere). You are only supposed to see some a sphere with some shading and light. If you are not then the problem should be with the code and I hope I can fix it. Can you try changing the place of the light by changing the array and see if it creates any difference? I assume it wont though...
our @Light_Position = ( 1.0, 1.0, 1.0, 1.0 );
Re^2: Daunting Problem With Perl Opengl Lighting
Replies are listed 'Best First'.
Hi, I'm using the latest SVN rev from New Perl OpenGL Release. I found that I also had to remove the line glEnable(GL_LIGHTING); from init, or the screen was black. By the way, if you havn't seen it, there is a very nice example in the SVN rev called isosurf.pl, that is where I found those function's need for arrays. Isosurf.pl looks like it displays DNA type shapes, maybe you will find it contains some useful ideas.