PDA

View Full Version : More normal problems



hooded paladin
11-12-2001, 09:31 AM
I'm doing normals, thanks to everyone who helped with the calculation, but now, I get wierd results. Some of the polygons turn white, flash gradients of black and white, etc. I think this is because I need two-sided lighting... does anyone know how to do this?

UrbanLedgend
11-12-2001, 10:52 AM
Hi

I would highly recommend getting a good book and reading through it, such as the Red Book, "The OpenGl Programmer Guide 3rd Edition"

A book like this covers all the basics of the questions you have been asking. Also look at the sample code that is on www.opengl.org (http://www.opengl.org) the basics which you need to learn are covered very well

Regards

Gordon.

hooded paladin
11-14-2001, 04:37 AM
What version of that book is online? It's not updated, right? Because the code never works on my computer

Coconut
11-14-2001, 04:51 AM
Originally posted by hooded paladin:
What version of that book is online? It's not updated, right? Because the code never works on my computer

Things you are trying to do is so basic that the first version would cover it.
Also, all codes in the the old editions should work.
If you really need help, do a snapshot and let us to take a look.
As it is said in the red book, two-sided lighting can be enabled by:
glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);


[This message has been edited by Coconut (edited 11-14-2001).]