340 likes | 360 Views
Learn how to start a simulation engine, add sky, sun, ground, update camera view, save scene as a file, and start the simulation engine from saved files.
E N D
SPL basic – Build Simulation Environment SPL First Beginner Course – 03 Young Joon Kim http://www.helloapps.com
Topics • Start simulation engine • Add sky • Add sun • Add ground • Update camera view • Save scene as a file • Start simulation engine from saved files
Start simulation engine • Open new script page by pressing “Ctrl+N” or “File->New” menu
Start simulation engine • Select “Environment” tab
Start simulation engine • Add “StartSimulationEngine” command by double-clicking Double-Click
Start simulation engine • Save and run script by pressing “F5”
Add sky • Add “AddSkyEntity” command by double-clicking Double-Click
Start simulation engine • Save and run script by pressing “F5” • Drag mouse up to see sky Drag mouse up
Add sun • Add “AddLightSourceEntity” by double-clicking Double-Click
Add ground • Add “AddHeightFieldEntity” by double-clicking Double-Click
Add ground • Save and run script by pressing “F5” Change view direction by mouse-dragging
Change camera view • Add “UpdateCameraView” command Double-Click
Change camera view • Save and run script by pressing “F5”
Save environment as a file • Add “SaveSceneAs” command by double-clicking Double-Click
Save environment as a file • Save and run script by pressing “F5”
Start simulation engine from saved file
Start simulation engine from saved file • Open new script page by pressing “Ctrl+N” or “File->New” menu
Start simulation engine from saved file • Add “StartSimulationEngine” command on the new script page Double-Click
Start simulation engine from saved file • Double-click “FileName” option Double-Click
Start simulation engine from saved file • Select “mysim.xml”
Start simulation engine from saved file • Selected result
Start simulation engine from saved file • Save and run script by pressing “F5”
Start simulation engine from basic sample environments
Start simulation engine from basic environment samples • Add “StartSimulationEngine” on the new script page Double-Click
Start simulation engine from basic environment samples • Add “SimState/basicsim.xml” option by double-clicking Double-Click
Start simulation engine from basic environment samples • Save and run script by pressing “F5”
Start simulation engine from basic environment samples • StartSimulationEngine"SimState/BasicObstacles.xml"
Start simulation engine from basic environment samples • StartSimulationEngine"SimState/basicterrain.xml"