Online Tutorial - Example 3d objects animation


Objectives Learning the basic principles working with 3d graphics in Stratum 2000
Simple animation of 3d objects Let us consider the following example:

3d007.gif (9211 bytes)

It is a schematic model of a hydrogenerator. Let us assume, that we have already loaded the file and connected it to the project. (Similarly to previous lesson, you can download vdr file here)

3d008.gif (7507 bytes)Let us make rotation of the barrel with blades.

The barrel represents the separate object, and has the name object01 (you can see and change the name in the dialogue Properties of 3d object. To open the dialogue just double click the mouse on the object). Besides the shaft of the generator is also represented as the separate object (object02) and its  Y axis passes precisely on rotation axis of the barrel. Let us rotate the barrel according to the Y-axis of the curl.

For this you should add the object Rotate3d.gif (766 bytes) Rotate3d . Then link its HSpace3d with the same variable of the object Projection3D. It specifies the number (descriptor) of three-dimensional space. Now set in the variables  Rotate3d object values:

Var name value description
BaseName object02 object name, in the local coordinate system of which evolution changes of the object take place.
ObjectName object01 Name of the controlled object
AxisY 1 Rotates according to OY axis
3d009.gif (3991 bytes)

For rotation create a new object with the following formula:

Angle: = Angle+da.

Let us link the variable Angle of the new object with the same variable of the object Rotate3d. Let us set value da equal 0.5.

Now let the project run.

The rotated curl should be displayed on the screen.

Add the object VSlider to control the rotation rate and the  value da.

The project you have got looks like the following:

3d010.gif (25554 bytes)

download project example


Back : Index : Forward

Trademarks & Copyright © 1998 Stratum Modeling Group.  Last modified on 6-January-1999.