# normal vector and triangle strip

This topic is 2787 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

N = normalize( cross( v1 - v2, v3 - v2 ) );

Its a flat normal.

good luck

##### Share on other sites
Hello arkerone

Mainly the 3 steps are :

1) computation of per face normals (with the formula suggested by Vlad86)
2) computation of the adjacency data (so we know then : which vertex belongs to which faces(s) )
3) combination of per face normals accordingly to adjacency data to compute the wanted per vertex normals.

But there's not an unique technique to do the 3)
For instance, you can average the 1) normals, either directly, or taking into account the area of the triangles the vertices belong to.

Maybe you can take a look at this post?

Nico

EDIT : The best results I got were when taking into account triangle areas : a little example with this technique
[attachment=7512:exemplepournormales.PNG]

##### Share on other sites
If your Triangles are defined in CW direction do what Vlad says otherwise just compute the cross product by doing N = normalize( cross(v3 - v2, v1 - v2, ) );

• ### Game Developer Survey

We are looking for qualified game developers to participate in a 10-minute online survey. Qualified participants will be offered a \$15 incentive for your time and insights. Click here to start!

• 16
• 11
• 9
• 24
• 44
×

## Important Information

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!