Toggle navigation
Toggle navigation
This project
Loading...
Sign in
arcs
/
ARCS2-Components
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Yves Didier
2013-08-19 09:01:54 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
383d64c66bbbd9def93a04acb7fdc6e6bdb38de5
383d64c6
1 parent
a0cab1a2
Ajout d'exemples de manipulation d'openscenegraph
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
0 deletions
applications/osg/osg.xml
applications/osg/root.osg
applications/osg/osg.xml
0 → 100644
View file @
383d64c
<application
mode=
"gui"
>
<context>
<libraries>
<library
path=
"../../../libs/osg"
/>
</libraries>
<components>
<component
id=
"sm"
type=
"StateMachine"
>
<statemachine>
<first
name=
"s"
/>
<last
name=
"e"
/>
<transition
source=
"s"
token=
"end"
destination=
"end"
/>
</statemachine>
</component>
<component
id=
"root"
file=
"root.osg"
type=
"osg::Group"
/>
<component
id=
"viewer"
type=
"OSGViewer"
/>
</components>
</context>
<processes>
<process
controller=
"sm"
>
<sheet
id=
"s"
>
<preconnections>
<invoke
destination=
"viewer"
slot=
"setSceneData(osg::Object*)"
type=
"component"
>
root
</invoke>
<invoke
destination=
"root"
slot=
"capsule.Center(osg::Vec3f)"
type=
"osg::Vec3f"
>
1 1 1
</invoke>
<invoke
destination=
"root"
slot=
"capsule.Height(float)"
type=
"float"
>
4
</invoke>
<invoke
destination=
"root"
slot=
"shape.Color(osg::Vec4f)"
type=
"osg::Vec4f"
>
1 0 0 1
</invoke>
</preconnections>
<postconnections>
<invoke
destination=
"viewer"
slot=
"realize()"
type=
"void"
/>
</postconnections>
</sheet>
<sheet
id=
"e"
/>
</process>
</processes>
</application>
applications/osg/root.osg
0 → 100644
View file @
383d64c
Group {
UniqueID Group_0
nodeMask 0xffffffff
cullingActive TRUE
num_children 1
Geode {
UniqueID Geode_1
nodeMask 0xffffffff
cullingActive TRUE
num_drawables 1
ShapeDrawable {
UniqueID ShapeDrawable_2
name "shape"
DataVariance STATIC
Capsule {
UniqueID Capsule_3
name "capsule"
Center 0 0 0
Radius 1
Height 2
Rotation 0 0 0 1
}
useDisplayList TRUE
useVertexBufferObjects FALSE
color 1 0 1 1
}
}
}
Please
register
or
login
to post a comment