07.01.2013 Views

3D graphics eBook - Course Materials Repository

3D graphics eBook - Course Materials Repository

3D graphics eBook - Course Materials Repository

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Surface normal 209<br />

Uniqueness of the normal<br />

A normal to a surface does not have a<br />

unique direction; the vector pointing in the<br />

opposite direction of a surface normal is<br />

also a surface normal. For a surface which is<br />

the topological boundary of a set in three<br />

dimensions, one can distinguish between the<br />

inward-pointing normal and<br />

outer-pointing normal, which can help<br />

define the normal in a unique way. For an<br />

oriented surface, the surface normal is<br />

usually determined by the right-hand rule. If<br />

A vector field of normals to a surface<br />

the normal is constructed as the cross product of tangent vectors (as described in the text above), it is a pseudovector.<br />

Transforming normals<br />

When applying a transform to a surface it is sometimes convenient to deriving normals for the resulting surface from<br />

the original normals. All points P on tangent plane are transformed to P′. We want to find n′ perpendicular to P. Let<br />

t be a vector on the tangent plane and M l be the upper 3x3 matrix (translation part of transformation does not apply<br />

to normal or tangent vectors).<br />

So use the inverse transpose of the linear transformation (the upper 3x3 matrix) when transforming surface normals.<br />

Uses<br />

• Surface normals are essential in defining surface integrals of vector fields.<br />

• Surface normals are commonly used in <strong>3D</strong> computer <strong>graphics</strong> for lighting calculations; see Lambert's cosine law.<br />

• Surface normals are often adjusted in <strong>3D</strong> computer <strong>graphics</strong> by normal mapping.<br />

• Render layers containing surface normal information may be used in Digital compositing to change the apparent<br />

lighting of rendered elements.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!