- The '`perspective`

' and '`perspective-origin`

'
+ The 'perspective' and 'perspective-origin'
properties can be used to add a feeling of depth to a scene by making elements higher on the Z axis
- (closer to the viewer) appear larger, and those further away to appear smaller.
+ (closer to the viewer) appear larger, and those further away to appear smaller. The scaling is proportional
+ to d/(d-Z) where d, the ‘perspective(

+

+
+
+ Normally the assumed position of the viewer's eye is centered on + a drawing. This position can be moved if desired (for example + if a web page contains multiple drawings that should share a common + perspective) by setting ‘perspective-origin’. +

+ +
+

+
+
The *perspective matrix* is computed as follows:
@@ -395,6 +422,20 @@

+ The resulting matrix is: +

+ +
+
+

+
+ where x_{p} and y_{p} are the computed values of ‘perspective-origin’
+ and d is the length provided by the value of the ‘perspective’ property.
+

Isn't this missing the scaling factor d/(d-Z).

+
This example shows how perspective can be used to cause three-dimensional transforms to appear more realistic.