Homepage

Tutorials


Overview
Getting Started
-Quickstart
-Structure Dataset
-DNA rendering
-Surface Dataset
-Scalar Field Dataset: X-ray
-Scalar Field Dataset: EM
-Topograph Dataset
Advanced
-Electrostatic Potential I
-Electrostatic Potential II
-MADS
-Geometric Primitives
Scripts
-Stereo output
-Saving the viewing matrix
Animations
POVray

dino@dino3d.org

Saving the viewing matrix

The current orientation on the screen is defined by the center of rotation and the rotation and translation (modelview) matrix. The following script saves this into a file given as an argument. In addition, the near and far clipping planes are saved.

Usage:

Save the current view:

@mmat.scr view1.scr

Restore the saved view:

@view1.scr

Download this script: mmat.scr
// expects a file as a parameter
echo scene set rtc=[scene get rtc] > $1
echo scene set near=[scene get near] >> $1
echo scene set far=[scene get far] >> $1