# Normals

6 replies to this topic

### #1Obunako

New Member

• Members
• 8 posts

Posted 19 July 2003 - 05:42 PM

I always work with one normal associate with a polygon, but 3ds format export one normals for each vertex :blink: I don't understand, some one help me ?

Thanks.

### #2Dia

DevMaster Staff

• 1120 posts

Posted 19 July 2003 - 07:08 PM

Yes, it's possible to have a normal for each vertex. This is done for lighting calculations. If you find the normal to a triangle, you are finding a "Face Normal". If you give OpenGL a face normal for lighting, it will make your object look really flat and not very round. If we find the normal for each vertex, it makes the smooth lighting look. This also covers up blocky looking objects and they appear to have more polygons than they do.

### #3moomin

Member

• Members
• 44 posts

Posted 21 July 2003 - 08:23 AM

per vertex normals are teh w1n!!!!

Render a sphere with per face normals, then

Render a sphere with per vertex normals

the difference is amazing.

That reminds me how many of the neighbour face value normals should I use to calculate the per vertex value?

### #4anubis

Senior Member

• Members
• 2225 posts

Posted 21 July 2003 - 08:23 AM

imagine it like this :

you find per-polygon normals for each polygon in your model. obviously this will result in surfaces that will look very flat when lit as apex said. the easiest way around this is to average the normals of faces that share a vertex. you then assign this new averaged normal to the shared vertex and thus get a different normal for each vertex instead of one for each face.

If Prolog is the answer, what is the question ?

### #5davepermen

Senior Member

• Members
• 1306 posts

Posted 30 July 2003 - 08:47 AM

How to do it
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

### #6donBerto

Senior Member

• Members
• 369 posts

Posted 31 July 2003 - 09:03 PM

davepermen: a VERY nice example.

:yes:
Imagine.

### #7davepermen

Senior Member

• Members
• 1306 posts

Posted 03 August 2003 - 08:20 PM

thanks
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

#### 1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users