SPL basic – Build Simulation Environment SPL First Beginner Course – 03 Young Joon Kim http://www.helloapps.com.

Download Report

Transcript SPL basic – Build Simulation Environment SPL First Beginner Course – 03 Young Joon Kim http://www.helloapps.com.

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
2
Start Simulation Engine
3
Start simulation engine
• Open new script page by pressing “Ctrl+N” or “File->New” menu
4
Start simulation engine
• Select “Environment” tab
5
Start simulation engine
• Add “StartSimulationEngine” command by double-clicking
Double-Click
6
Start simulation engine
• Save and run script by pressing “F5”
7
Add Sky
8
Add sky
• Add “AddSkyEntity” command by double-clicking
Double-Click
9
Start simulation engine
• Save and run script by pressing “F5”
• Drag mouse up to see sky
Drag mouse up
10
Add Sun
11
Add sun
• Add “AddLightSourceEntity” by double-clicking
Double-Click
12
Add Ground
13
Add ground
• Add “AddHeightFieldEntity” by double-clicking
Double-Click
14
Add ground
• Save and run script by pressing “F5”
Change view direction by mouse-dragging
15
Change camera view
16
Change camera view
• Add “UpdateCameraView” command
Double-Click
17
Change camera view
• Save and run script by pressing “F5”
18
Save environment as a file
19
Save environment as a file
• Add “SaveSceneAs” command by double-clicking
Double-Click
20
Save environment as a file
• Save and run script by pressing “F5”
21
Start simulation engine
from saved file
22
Start simulation engine from saved file
• Open new script page by pressing “Ctrl+N” or “File->New” menu
23
Start simulation engine from saved file
• Add “StartSimulationEngine” command on the new script page
Double-Click
24
Start simulation engine from saved file
• Double-click “FileName” option
Double-Click
25
Start simulation engine from saved file
• Select “mysim.xml”
26
Start simulation engine from saved file
• Selected result
27
Start simulation engine from saved file
• Save and run script by pressing “F5”
28
Start simulation engine
from basic sample environments
29
Start simulation engine from basic
environment samples
• Add “StartSimulationEngine” on the new script page
Double-Click
30
Start simulation engine from basic
environment samples
• Add “SimState/basicsim.xml” option by double-clicking
Double-Click
31
Start simulation engine from basic
environment samples
• Save and run script by pressing “F5”
32
Start simulation engine from basic
environment samples
• StartSimulationEngine "SimState/BasicObstacles.xml"
33
Start simulation engine from basic
environment samples
• StartSimulationEngine "SimState/basicterrain.xml"
34