Advertisement

Tutorial 10 and Normals

Started by June 05, 2000 09:14 PM
1 comment, last by Chopper 24 years, 5 months ago
Can some give me a quick idea of why tutorial ten uses this line: glNormal3f( 0.0f, 0.0f, 1.0f); rather than actually calculating the normal of the triangle from two of the sides? I was going to include normal calculation into my code and store them in the tagTriangle structure but I saw this code seemingly getting away without doing it. Other than that, thanks to all the guys who helped with tutorial ten, a good wedge of that code instantly solved some of the sector questions that I had. The Chop (Alex Weinle)
The Chop (Alex Weinle)

Yeah, I changed the ''F'' filter key to toggle face/vertex
normals and changed that line to the corresponding normals.

The code to calc the normals for faces and vertex normals for smoothing groups may be found at http://www.chembio.uoguelph.ca/zolis/ in amongst a very nice ''ASC'' file loader...


Advertisement
Many thanks. That helped a lot, sorry I didn''t thank you sooner but I was busy coding!

The Chop
The Chop (Alex Weinle)

This topic is closed to new replies.

Advertisement