This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ViewMatrix

ViewMatrix
is an option for Graphics3D and related functions that can be used to specify an explicit homogeneous transformation matrix for 3D coordinates.
  • ViewMatrix can be set to a 4×4 matrix m which is applied to the list {x, y, z, 1} for each point.
  • If the result is {tx, ty, tz, tw}, then the screen coordinates for each point are taken to be given by {tx, ty}/tw.
  • With the setting ViewMatrix->Automatic, explicit forms for the matrix m can be found using AbsoluteOptions[g, ViewMatrix].
  • An explicit setting ViewMatrix->m overrides settings for ViewVector, ViewPoint and other view options.
Orthographic view of a sphere from the negative z direction:
In[1]:=
Click for copyable input
Out[1]=
New in 6