The SceneGraph3D Description Language

Home About EaZD Deferred renderer API SceneGraph3D API SceneGraph3D scene description language

Index

| Scene file structure | camera | character | directory | eventmessage | group | input | light | linearmotion | material | node | object | proximitytrigger | skylight | spinner | surface | transformation | user | world |

transformation

Derived from: TransformNode3D
Class name: Spinner3D
Placement: Anywhere
Description: This special dynamic transformation represents a time-variable rotation around a user-specified axis.
Special notes: -
Inherited attributes: name, active, visible
New attributes:
attribute type description
axis VEC3 The axis of rotation direction (rotation is relative to (0,0,0) in the local coordinate system)
period FLOAT The period of rotation
repeats FLOAT Number of complete rotations. Zero for infinite rotation.
start_angle FLOAT The initial angular offset of rotation.
Events:
event name condition
- -
Inherited events: -
New messages:
attribute value description
start - Start the animation.
stop - Stop and reset the animation.
pause - Pause (but not reset) the animation.
repeats FLOAT Same as the corresponding attribute.
period FLOAT Same as the corresponding attribute.
Inherited messages: active, visible, hide, show, deactivate, enable, activate, disable
Redefined messages: -
Obsolete messages: transation, scale, rotation


Example

<world ambient_occlusion="ssao" bloom="yes" shadows="disk" 
       ao_radius="6" ambient="0.3 0.3 0.3" defocus="yes">
   
    <eventmessage event="init" recipient="handle_spin" message="start"></eventmessage>

    <camera name="first_person" apperture="50.0" 
            focal_distance ="30.0" focal_range="30.0"
            near="2.0" far="1000" follow="Myself" primary="true">
    </camera> 

    <transformation rotation="0,1,0,0" scale="1,1,1" translation="0,322,0">
<spinner name="handle_spin" period="3.0" repeats="0" axis="1,0,0">
<object file="Fan_Handle.obj"/>
</spinner>
</transformation>
<user name="Myself" control="navigate" speed="2.0" turn="0.5 freeroll="false" position="0,50,50" lookat="0,0,-10" input="Console"> </user> <input name="Console" type="mousekeyboard"> </input> </world>

Last update: 24 Feb. 2010