Cult3D. The 'Drawer' example


In the 'Scene Graph' window you find all the to the 'Cult3D Designer' program imported objects.
You can rotate/zoom/translate objects in the 'Preview' window (to the right above) for inspection (does not affect the model). Press R to reset moves.



'Event_2' is set to 'initial activition' as the model is read by the WWW-browser. 'Event_2' triggers three actions on left mouse click in the browser
  • 'Deactivate' Event_2 (the square upper left of 'Event_2')
  • 'Acivate' Event_3 (the square upper right of 'Event_2')
  • 'Translation' (open box) of front_left_box (the square lower right of'Event_2').
    This is an animation where the local Y coordinate of the front_left_box is programmed to increase 20 units during 1000 ms.




Next time you left mouse click the front_left_box (on the model presented in the web browser) the box will slide back and gets ready to slide out on the next click. That is the the 'Event_3' triggers three actions
  • 'Translation' (close the box) the front_left_box (the square left of 'Event_3')
  • 'Deactivate' Event_3 (the square upper right of 'Event-3')
  • 'Activate' Event_2 (the square lower left of 'Event_3')



Finally the Event_1 will be commented on.
Event_1 (the green light) is called a 'world start' event and is activated (made available) at model down-load to the WWW-browser. It activates
  • 'Object motion' action called 'arcball' that is set to
    • action 'rotateXY' (left mouse button pressed movement),
    • 'translateZ' (right mouse button pressed movement) i.e. the whole model translats in the Z axis direction,
    • 'translateXY' (middle/both mouse button pressed) translation in the XY plane
      all movements are made in the Camera Frame coordinate system.


Now load the model and try out the actions. [The old call routine]

(drawer.c3d (56 KB), drawer.c3p (7 KB))


Further reading




©Per Christiansson, 11.3.2009 (21.11.2000) [1.2.2000]