PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Normals, planes and vertices

Is there any correlation between the normals of three vertices and the normal of the plane they describe?

Thanks.

Dan East
It depends on what you mean by your vertices normals. A normal is always relative to a surface, not a vertex.

In the context of 3D graphic rendering, normals are associated with vertices. These normals are an approximate representation of the surface curvature and are used to provide more visual information at the rasterization phase (Gouraud/Phong).

I assume you know all that. Thing is these vertices normals are usually calculated using adjacent triangles (or manually set). If you consider them alone, you don't have enough information to get the triangle's normal back.

But if you have the 3 vertices... A simple cross-product would do the work:

N = (B-A) * (C-A)
You would actually want to make sure the normal vextor of a polygon is the same length on all polygons. Makes life much better from what I've heard...
BurningSheep · 10 Sep 2002, 12:34 UTC
yes, normal as in normalized vector, meaning it's length is 1
My terminology was confusing. Given 3 vertices, is there any correlation between the normalized (unit) values of the 3 vertices and the normal of the face they describe.

Dan East
I think that often you may wish to get a weighted normal for all triangles so if you take the average of your vertices normals then this should give a weighted surface normal for the triangle.

Also all points in the same plane should have the same unit vector normal.

normals can be used a lot more than color interppolation(ie hidden surface removal,collision detection).
Dan East wrote:
My terminology was confusing. Given 3 vertices, is there any correlation between the normalized (unit) values of the 3 vertices and the normal of the face they describe.

Dan East


Dan,

the normal to a face described by 3 vertices (a.k.a. triangle) is perpendicular to the face. I'm not sure this answers your question though, as i'm irritated by "the unit values of the vertices". What are you using the normalized values of the vertices for?

cryo
BurningSheep · 10 Sep 2002, 19:07 UTC
Like Cryo said you can calculate the face normal of 3 vertices, but not with normalized vertices, since you lose information when normalizing (ie the distance from the origin to the vertex).
If you have 3 vertices a, b and c which represent the face you first calculate two vectors p and q like this...

p = b-a
q = c-a

to get the face normal you take the crossproduct of p and q and normalize the result.

lamondo is talking about vertex normals, but I think he got it backwards. You usually calculate vertex normals by averaging all the face normals from the faces the vertex is a part off.

lamondo wrote:
Also all points in the same plane should have the same unit vector normal.


I'm probably misunderstanding him here, but there is only one face normal per face (sounds logical right?). And a reason to use vertex normals is to be able to interpolate normals within a plane.
Dan,

The answer to your question is "No, there is not a correlation between vertex normals and face normals."

Face normals are used for backface culling. Vertex normals are used in lighting and environment mapping.