This function sets the location of the viewer.
The location as a 3 vector, using the usual
sets the location of the viewer relative to the scene, after the model transformations
(scaling, rotation) have been done, but before lighting or projection have been
par3d for details on the rendering pipeline.)
The coordinate system is a slightly strange one: the X coordinate
moves the observer location from left to right, and the Y coordinate moves up
and down. The Z coordinate changes the depth from the viewer. All are measured
relative to the center of the bounding box (
par("bbox")) of the subscene.
The observer always looks in the positive Z direction
after the model rotation have been done. The coordinates are in post-scaling
Invisibly returns the previous value.
This function is likely to change in future versions of rgl, to allow more flexibility in the specification of the observer's location and orientation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.