Fowler wrote:
>
> Hi,
> I've come across what by now is probably a very very old Mesa-3.0 bug.
> Ive included example code that reproduces the bug and 2 screenshots. 1 with the bug
>from
> Mesa-3.0 and one without from 3.1. How do I workaround this bug for 3.0?.
I didn't test with Mesa 3.0. I'm focused on Mesa 3.2 and 3.3 now and
don't have time to go back and fix many bugs in 3.0.
One thing you should probably do is glEnable(GL_NORMALIZE). Otherwise,
your glScale(1,1,0.1) call is causing your normal vectors to be non-
unit length. That messes up lighting.
I tested this change with Mesa 3.1 and it looked good.
> Btw I'm just learning opengl
> materials/lighting - what i really want this code to do is have a static light
>source. This one seems
> to move with the object. Any pointers? I'm probably doing something wrong here which
>is whats bringing up
> this "bug"
Move your glLightfv() call before your rotate and translate calls.
-Brian
_______________________________________________
Mesa-bug maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev