his code sample shows how to use several cameras and how to switch from one
to another by linking function from the LUA API with hotkeys.
It shows how to setup reflective surface to simulate water movement.
This demo requires DOT3 Bump Mapping support.
Press F1 or F2 to change active camera.
Keywords: hotkey - script - EXECUTE_EACH_FRAME - camera - mesh - model - lua
This code sample shows how to use timers to execute code at regular interval.
Keywords: timer - script - ASYNCHRONOUS
Code Sample 56
This code sample shows the use of intervals to control the flow of a demo.
Keywords: interval - script - ASYNCHRONOUS
Code Sample 71
Shows how to deform a mesh in a simple way with scaling.
and the importance of normals renormalization after scaling.
Shows how to use the groups to control in an unique way several entities (objects, scripts).
Keywords: group - model - normalize - script - EXECUTE_EACH_FRAME - HYP_Object.PopTripod - HYP_Object.SetScale
Code Sample 85
Shows how to use the ring mesh to do a shockwave effect.
Shows how to use the sound to increase the explosion realism.
Shows how to shake the camera with explosion.
Keywords: mesh - RING - script - EXECUTE_ONCE - EXECUTE_EACH_FRAME - hotkey - audio - font - text_2d
Code Sample 91
Shows how to use the curve node and its associated lua functions. Plots a very simple curve (f(x) = 0.01*x*x - 10.0).
This code shows how to make the camera stick close to any kind of relief, even a hilly ground.
It uses HYP_Mesh.GetElevation() function of the LUA API.
The code uses heightmap to generate a hilly ground as well as the vertex
buffer object (vbo) option to speed up the rendering of meshes featuring static polygones.
HYP_Mesh.GetElevation() works with any kind of mesh (not only mesh terrain).