@@ -422,10 +422,51 @@ <h3 id="transform-3d-rendering">3D Transform Rendering</h3>
422422 </ div >
423423
424424 < p >
425- The '< code class ="property "> perspective</ code > ' and '< code class ="property "> perspective-origin</ code > '
426- properties can be used to add a feeling of depth to a scene by making elements higher on the Z axis
427- (closer to the viewer) appear larger, and those further away to appear smaller.
425+ The '< code class ="property "> perspective</ code > ' and
426+ '< code class ="property "> perspective-origin</ code > '
427+ properties can be used to add a feeling of depth to a
428+ scene by making elements higher on the Z axis (closer to
429+ the viewer) appear larger, and those further away to
430+ appear smaller. The scaling is proportional to
431+ < var > d</ var > /(< var > d</ var > − < var > Z</ var > )
432+ where < var > d</ var > , the value of
433+ '< code class ="property "> perspective</ code > ', is the
434+ distance from the drawing plane to the the assumed
435+ position of the viewer's eye.
428436 </ p >
437+
438+ < div class ="figure ">
439+ < img alt ="Diagram of scale vs. Z position " src ="perspective_distance.png ">
440+ < p class ="caption ">
441+ Diagrams showing how scaling depends on the
442+ '< code class ="property "> perspective</ code > ' property
443+ and Z position. In the top diagram, < var > Z</ var > is half of < var > d</ var > . In
444+ order to make it appear that the original circle
445+ (solid outline) appears at < var > Z</ var > (dashed
446+ circle), the circle is scaled up by a factor of two,
447+ resulting in the light blue circle. In the bottom
448+ diagram, the circle is scaled down by a factor of
449+ one-third to make it appear behind the original
450+ position.
451+ </ p >
452+ </ div >
453+
454+ < p >
455+ Normally the assumed position of the viewer's eye is
456+ centered on a drawing. This position can be moved if
457+ desired – for example, if a web page contains
458+ multiple drawings that should share a common perspective
459+ – by setting
460+ '< code class ="property "> perspective-origin</ code > '.
461+ </ p >
462+
463+ < div class ="figure ">
464+ < img alt ="Diagram of different perspective-origin " src ="perspective_origin.png ">
465+ < p class ="caption ">
466+ Diagram showing the effect of moving the perspective origin upward.
467+ </ p >
468+ </ div >
469+
429470 < p id ="perspective-matrix-computation ">
430471 The < a href ="#TermPerspectiveMatrix "> < i > perspective matrix</ i > </ a > is computed as follows:
431472 <!-- Make this more mathy, with matrices? -->
0 commit comments