All Topics  
Surface normal

 

   Email Print
   Bookmark   Link






 

Surface normal



 
 
A surface normal, or simply normal, to a flat surface
Flatness

The intuitive idea of flatness is important in several fields....
 is a vector which is perpendicular
Perpendicular

In geometry, two line or plane , are considered perpendicular to each other if they form congruence adjacent angles angles . The term may be used as a noun or adjective....
 to that surface. A normal to a non-flat surface at a point
Point (geometry)

In geometry, topology and related branches of mathematics a spatial point describes a specific object within a given space that consists of neither volume, area, length, nor any other higher dimensional analogue....
 P on the surface is a vector perpendicular to the tangent plane
Tangent space

In mathematics, the tangent space of a manifold is a concept which facilitates the generalization of vectors from affine spaces to general manifolds, since in the latter case one cannot simply subtract two points to obtain a vector pointing from one to the other....
 to that surface at P. The word "normal" is also used as an adjective: a line
Line (mathematics)

In geometry, a line is a Curvature curve. When geometry is used to model the real world, lines are used to represent straight objects with negligible width and height....
 normal to a plane
Plane (mathematics)

In mathematics, a plane is a curvature surface. Planes can arise as subspaces of some higher dimensional space, as with the walls of a room, or they may enjoy an independent existence in their own right, as in the setting of Euclidean geometry....
, the normal component of a force
Force

In physics, a force is that which can cause an object with mass to change its velocity. Force has both Euclidean_vector#Length of a vector and Direction , making it a Vector quantity....
, the normal vector, etc. The concept of normality generalizes to orthogonality
Orthogonality

In mathematics, two vectors are orthogonal if they are perpendicular, i.e., they form a right angle. The word comes from the Greek language ' , meaning "straight", and ' , meaning "angle"....
.

In the two-dimensional case, a normal line perpendicularly intersects the tangent line to a curve at a given point.

The normal is often used in computer graphics
Computer graphics

Computer graphics are graphics created by computers and, more generally, the representation and manipulation of pictorial data by a computer....
 to determine a surface's orientation toward a light source for flat shading, or the orientation of each of the corners (vertices
Vertex (geometry)

In geometry, a vertex is a special kind of point which describes the corners or intersections of geometric shapes. Vertices are commonly used in computer graphics to define the corners of surfaces in 3d models, where each such point is given as a vector....
) to mimic a curved surface with Phong shading
Phong shading

Phong shading refers to a set of techniques in 3D computer graphics. Phong shading includes a model for the reflection of light from surfaces and a compatible method of estimating pixel colors by interpolation surface normals across rasterized polygons....
.

Calculating a surface normal
For a polygon
Polygon

In geometry a polygon is traditionally a plane Shape that is bounded by a closed curve path or circuit, composed of a finite sequence of straight line segments ....
 (such as a triangle), a surface normal can be calculated as the vector cross product
Cross product

In mathematics, the cross product is a binary operation on two vector s in a three-dimensional Euclidean space that results in another vector which is orthogonal to the plane containing the two input vectors....
 of two (non-parallel) edges of the polygon.

For a plane
Plane (mathematics)

In mathematics, a plane is a curvature surface. Planes can arise as subspaces of some higher dimensional space, as with the walls of a room, or they may enjoy an independent existence in their own right, as in the setting of Euclidean geometry....
 given by the equation , the vector is a normal.






Discussion
Ask a question about 'Surface normal'
Start a new discussion about 'Surface normal'
Answer questions from other users
Full Discussion Forum



Encyclopedia


A surface normal, or simply normal, to a flat surface
Flatness

The intuitive idea of flatness is important in several fields....
 is a vector which is perpendicular
Perpendicular

In geometry, two line or plane , are considered perpendicular to each other if they form congruence adjacent angles angles . The term may be used as a noun or adjective....
 to that surface. A normal to a non-flat surface at a point
Point (geometry)

In geometry, topology and related branches of mathematics a spatial point describes a specific object within a given space that consists of neither volume, area, length, nor any other higher dimensional analogue....
 P on the surface is a vector perpendicular to the tangent plane
Tangent space

In mathematics, the tangent space of a manifold is a concept which facilitates the generalization of vectors from affine spaces to general manifolds, since in the latter case one cannot simply subtract two points to obtain a vector pointing from one to the other....
 to that surface at P. The word "normal" is also used as an adjective: a line
Line (mathematics)

In geometry, a line is a Curvature curve. When geometry is used to model the real world, lines are used to represent straight objects with negligible width and height....
 normal to a plane
Plane (mathematics)

In mathematics, a plane is a curvature surface. Planes can arise as subspaces of some higher dimensional space, as with the walls of a room, or they may enjoy an independent existence in their own right, as in the setting of Euclidean geometry....
, the normal component of a force
Force

In physics, a force is that which can cause an object with mass to change its velocity. Force has both Euclidean_vector#Length of a vector and Direction , making it a Vector quantity....
, the normal vector, etc. The concept of normality generalizes to orthogonality
Orthogonality

In mathematics, two vectors are orthogonal if they are perpendicular, i.e., they form a right angle. The word comes from the Greek language ' , meaning "straight", and ' , meaning "angle"....
.

In the two-dimensional case, a normal line perpendicularly intersects the tangent line to a curve at a given point.

The normal is often used in computer graphics
Computer graphics

Computer graphics are graphics created by computers and, more generally, the representation and manipulation of pictorial data by a computer....
 to determine a surface's orientation toward a light source for flat shading, or the orientation of each of the corners (vertices
Vertex (geometry)

In geometry, a vertex is a special kind of point which describes the corners or intersections of geometric shapes. Vertices are commonly used in computer graphics to define the corners of surfaces in 3d models, where each such point is given as a vector....
) to mimic a curved surface with Phong shading
Phong shading

Phong shading refers to a set of techniques in 3D computer graphics. Phong shading includes a model for the reflection of light from surfaces and a compatible method of estimating pixel colors by interpolation surface normals across rasterized polygons....
.

Calculating a surface normal


For a polygon
Polygon

In geometry a polygon is traditionally a plane Shape that is bounded by a closed curve path or circuit, composed of a finite sequence of straight line segments ....
 (such as a triangle), a surface normal can be calculated as the vector cross product
Cross product

In mathematics, the cross product is a binary operation on two vector s in a three-dimensional Euclidean space that results in another vector which is orthogonal to the plane containing the two input vectors....
 of two (non-parallel) edges of the polygon.

For a plane
Plane (mathematics)

In mathematics, a plane is a curvature surface. Planes can arise as subspaces of some higher dimensional space, as with the walls of a room, or they may enjoy an independent existence in their own right, as in the setting of Euclidean geometry....
 given by the equation , the vector is a normal. For a plane given by the equation r = a + ab + ßc, where a is a vector to get onto the plane and b and c are non-parallel vectors lying on the plane, the normal to the plane defined is given by b × c (the cross product of the vectors lying on the plane).

If a (possibly non-flat) surface S is parametrized
Coordinate system

In mathematics and its applications, a coordinate system is a system for assigning an n-tuple of numbers or scalar to each Point in an n-dimensional space....
 by a system of curvilinear coordinates
Curvilinear coordinates

Curvilinear coordinates are a coordinate system for the Euclidean space based on some transformation that converts the standard Cartesian coordinate system to a coordinate system with the same number of coordinates in which the coordinate lines are curved....
 x(s, t), with s and t real
Real number

In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
 variables, then a normal is given by the cross product of the partial derivative
Partial derivative

In mathematics, a partial derivative of a function of several variables is its derivative with respect to one of those variables with the others held constant ....
s

If a surface S is given implicitly
Implicit function

In mathematics, an implicit function is a function in which the dependent variable has not been given "explicitly" in terms of the independent variable....
, as the set of points satisfying , then, a normal at a point on the surface is given by the gradient
Gradient

In vector calculus, the gradient of a scalar field is a vector field which points in the direction of the greatest rate of increase of the scalar field, and whose magnitude is the greatest rate of change....


If a surface does not have a tangent plane at a point, it does not have a normal at that point either. For example, a cone
Cone (geometry)

A cone is a dimension geometric shape that tapers smoothly from a flat, round base to a point called the apex or vertex. More precisely, it is the solid figure bounded by a plane base and the surface formed by the locus of all straight line segments joining the apex to the perimeter of the base....
 does not have a normal at its tip nor does it have a normal along the edge of its base. However, the normal to the cone is defined almost everywhere
Almost everywhere

In measure theory , one says that a property holds almost everywhere if the set of elements for which the property does not hold is a null set, i.e....
. In general, it is possible to define a normal almost everywhere for a surface that is Lipschitz continuous.

n-dimensional surfaces


The definition of a normal to a two-dimensional surface in three-dimensional space can be extended to -dimensional "surfaces" in -dimensional space. Such a hypersurface may be defined implicitly as the set of points satisfying the equation . If is continuously differentiable, then the surface obtained is a differentiable manifold
Differentiable manifold

A differentiable manifold is a type of manifold that is locally similar enough to Euclidean space to allow one to do calculus. This article deals with differentiability in different contexts including: smooth function, k times differentiable, and holomorphic function....
, and its surface normal is given by the gradient
Gradient

In vector calculus, the gradient of a scalar field is a vector field which points in the direction of the greatest rate of increase of the scalar field, and whose magnitude is the greatest rate of change....
 of ,

Uniqueness of the normal

A normal to a surface does not have a unique direction; the vector pointing in the opposite direction of a surface normal is also a surface normal. For a surface which is the topological boundary
Boundary (topology)

In topology, the boundary of a subset S of a topological space X is the set of points which can be approached both from S and from the outside of S....
 of a set in three dimensions, one can distinguish between the inward-pointing normal and outer-pointing normal, which can help define the normal in a unique way. For an oriented surface
Orientability

A surface S in the Euclidean space R3 is orientable if a two-dimensional figure cannot be moved around the surface and back to where it started so that it looks like its own mirror image ....
, the surface normal is usually determined by the right-hand rule
Right-hand rule

In mathematics and physics, the right-hand rule is a common mnemonic for understanding notation conventions for vector in 3 dimensions. It was invented for use in electromagnetism by British physicist Zachariah William Cole in the late 1800s....
. If the normal is constructed as the cross product of tangent vectors (as described in the text above), it is a pseudovector
Pseudovector

In physics and mathematics, a pseudovector is a quantity that transforms like a vector under a proper Rotation , i.e. a transformation that rotates vectors and pseudovectors by an arbitrary angle about an arbitrary axis, but gains an additional sign flip under an improper rotation: a transformation that can be expressed as a proper rotation...
.

Uses


  • Surface normals are essential in defining surface integral
    Surface integral

    In mathematics, a surface integral is a definite integral taken over a surface ; it can be thought of as the double integral analog of the line integral....
    s of vector field
    Vector field

    In mathematics a vector field is a construction in vector calculus which associates a vector to every point in a Euclidean space.Vector fields are often used in physics to model, for example, the speed and direction of a moving fluid throughout space, or the strength and direction of some force, such as the magnetic field or gravity for...
    s.
  • Surface normals are commonly used in 3D computer graphics
    3D computer graphics

    3D computer graphics are graphics that use a Cartesian coordinate system#Three-dimensional coordinate system representation of geometric data that is stored in the computer for the purposes of performing calculations and rendering 2D images....
     for lighting
    Lighting

    File:Gare de l'Est Paris 2007 033.jpgLighting is the deliberate application of light to achieve some aesthetic or practical effect. Lighting includes use of both artificial light sources such as lamps and natural illumination of interiors from daylight....
     calculations; see Lambert's cosine law
    Lambert's cosine law

    Lambert's cosine law in optics says that the radiant intensity observed from a "Lambertian" surface is directly proportional to the cosine of the angle ? between the observer's line of sight and the surface normal....
    .
  • Render layers
    Render layers

    What are Render Passes? When creating computer-generated imagery or 3D computer graphics, final scenes appearing in movies and television productions are usually produced by Rendering more than one "layer" or "pass," which are multiple images designed to be put together through digital compositing to form a completed frame....
     containing surface normal information may be used in Digital compositing
    Digital compositing

    Digital compositing is the process of digitally assembling multiple images to make a final image, typically for print, film or screen display. It is the evolution into the digital realm of optical film compositing....
     to change the apparent lighting of rendered elements.


See also

  • Geometric algebra
    Geometric algebra

    In mathematical physics, a geometric algebra is a multilinear algebra described technically as a Clifford algebra over a real vector space equipped with a non-degenerate quadratic form....
    , which describes a directly as a bivector rather than as a normal pseudovector
    Pseudovector

    In physics and mathematics, a pseudovector is a quantity that transforms like a vector under a proper Rotation , i.e. a transformation that rotates vectors and pseudovectors by an arbitrary angle about an arbitrary axis, but gains an additional sign flip under an improper rotation: a transformation that can be expressed as a proper rotation...
    .


Normal in geometric optics

Reflection Angles
The normal is an imaginary line perpendicular
Perpendicular

In geometry, two line or plane , are considered perpendicular to each other if they form congruence adjacent angles angles . The term may be used as a noun or adjective....
 to the surface of an optical medium. The word normal is used here in the mathematical sense, meaning perpendicular. In reflection of light, the angle of incidence
Angle of incidence

Angle of incidence is a measure of deviation of something from "straight on", for example:* in the approach of a ray to a surface, or* the angle at which the wing or Stabilizer of an airplane is installed on the fuselage, measured relative to the axis of the fuselage....
 is the angle between the normal and the incident ray. The angle of reflection is the angle between the normal and the reflected ray.

External links

  • An from Microsoft's MSDN
  • Some for performing normals-based relighting.