Copyright VirtualSim 2004-2020 - All rights reserved
Bouncing Balls
These demos need OpenSceneGraph version 2.8 under Visual Studio 2008 or above
You can download it at http://www.osg.org although vsTASKER install the correct supported version with release and debug libraries.
Make sure that $OSG_ROOTpoints towards the correct OSG directory.
Make sure that %OSG_ROOT%\bin;%OSG_ROOT%\bin\osgPlugins-2.8.5 are defined into $PATH environment variable.
You might need to copy zlib1.dll (into vsTasker/lib directory) to osg_root/bin directory, in order to load some OSG demos with IVE terrain databases.
Open mazeball database in data/samples/OSG directory
This database holds one simple scenario where balls, on a chess-board area, will bounce on contact. The colored balls always move. The grey balls decelerate and stop.
You can compile the generated code and run the produced exe.
After starting the SIM, use your mouse on the OSG viewer to move the check board (hold down the left mouse button while moving the mouse).
Balls react according to their Model Components. You can change some settings in Bounce and Stay-Inside components attached to all balls.
If the visual is slow, you can accelerate it by removing the shadow effect in Viewer OSG, by deselecting Shadows in 3d View.