Silhouette Edge - Similar Technique

Similar Technique

A convenient and practical implementation of front/back facing detection is to use the unit normal of the plane (which is commonly precomputed for lighting effects anyway), then simply applying the dot product of the light position to the plane's unit normal and adding the D component of the plane equation (a scalar value):



Where plane_D is easily calculated as a point on the plane dot product with the unit normal of the plane:


Note: The homogeneous coordinates, L_w and d, are not always needed for this computation.


After doing this calculation, you may notice indicator is actually the signed distance from the plane to the light position. This distance indicator will be negative if it is behind the face, and positive if it is in front of the face.


This is also the technique used in the 2002 SIGGRAPH paper, "Practical and Robust Stenciled Shadow Volumes for Hardware-Accelerated Rendering"

Read more about this topic:  Silhouette Edge

Famous quotes containing the words similar and/or technique:

    I perceive that God is no respecter of persons.
    Bible: New Testament Acts, 10:34.

    Said by Peter at Caesarea; similar wording is found in Romans 2:11: “There is no respect of persons with God.”

    The audience is the most revered member of the theater. Without an audience there is no theater. Every technique learned by the actor, every curtain, every flat on the stage, every careful analysis by the director, every coordinated scene, is for the enjoyment of the audience. They are our guests, our evaluators, and the last spoke in the wheel which can then begin to roll. They make the performance meaningful.
    Viola Spolin (b. 1911)