Why not GL_NORMALIZE in Renderer::renderObject()?

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
BrianPaul

Why not GL_NORMALIZE in Renderer::renderObject()?

Post #1by BrianPaul » 06.11.2002, 13:14

Looking at the render.cpp function there's a long rant/comment about
glScale()'s effect on normal vectors. glEnable(GL_NORMALIZE) should
solve the problem.

-Brian Paul

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 23 years
Location: Seattle, Washington, USA

Why not GL_NORMALIZE in Renderer::renderObject()?

Post #2by chris » 06.11.2002, 23:33

BrianPaul wrote:Looking at the render.cpp function there's a long rant/comment about
glScale()'s effect on normal vectors. glEnable(GL_NORMALIZE) should
solve the problem.

-Brian Paul

I did this for compatibility and performance with older hardware/drivers. The vertex programs I use always normalize normal vectors when doing lighting.

--Chris


Return to “Development”