Re: Confused about normals

Sven Panne <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
Patrick Scheibe wrote:
> [...] But now I am a little bit confused. I'm sure to heard about that if
> you specify the vertexes of a polygon (with glBegin GL_POLYGON in c)
> counterclockwise then the normalvector is set automatically. [...]

I think you refer to the fact that OpenGL has a notion of "front" and "back"
for polygons. You can control which order (clockwise or counter-clockwise)
should be considerered "front" via frontFace.

Another tip regarding normals and lighting: Most of the time it's a good
idea to have normals of unit length. If your application can't assure this,
normalize and rescaleNormal can help.

Cheers,
    S.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.