PDA

View Full Version : Vertex normal calulations for smooth shading



Byron Hammond
05-18-2000, 06:08 AM
I can calculate normals for the polygons I have in my object, but i need to specify
vertex normals to implement smooth shading. I know that i need to average the polygon normals around the vertex, but is too complicated. Is there an easier way?

lgrosshennig
05-19-2000, 11:58 AM
Hi Byron!

No offense, but what do you mean by "it is to complicated"?

It's just a question of structuring your datatypes, than it is a piece of cake.

If your object does not change its shape, you only need to calculate them once and transform them the same way you do with your vertex data.

If you have any further questions, don't hesitate to contact me.

Regards,

LG http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Byron Hammond
05-21-2000, 09:38 PM
Well, I can't structure the datatypes how I want to because I am modifying some source code that already exists, and the datatypes used in the code don't make it very easy to do this (bit messy). ah well...looks like i'll just have to suffer http://www.opengl.org/discussion_boards/ubb/smile.gif
thanx anyway