Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > 3D Graphics Options >

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
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team