summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/test-scenegraph.scxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2012-12-27 21:17:45 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2012-12-27 21:17:45 (GMT)
commit7b8da7c5b88714f8b4892c83703c16b19a6cb80d (patch)
tree9f78c6399274a937c662454d51ab4314ad9ec903 /test/samples/uscxml/test-scenegraph.scxml
parentfa05389f050004a14787cd7b4ebb6e0b54e0e4af (diff)
downloaduscxml-7b8da7c5b88714f8b4892c83703c16b19a6cb80d.zip
uscxml-7b8da7c5b88714f8b4892c83703c16b19a6cb80d.tar.gz
uscxml-7b8da7c5b88714f8b4892c83703c16b19a6cb80d.tar.bz2
New scenegraph invoker using OpenSceneGraph
Ultimately, the scenegraph invoker ought to use x3d
Diffstat (limited to 'test/samples/uscxml/test-scenegraph.scxml')
-rw-r--r--test/samples/uscxml/test-scenegraph.scxml45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-scenegraph.scxml b/test/samples/uscxml/test-scenegraph.scxml
new file mode 100644
index 0000000..e159fdd
--- /dev/null
+++ b/test/samples/uscxml/test-scenegraph.scxml
@@ -0,0 +1,45 @@
+<scxml datamodel="ecmascript" initial="start" binding="late" xmlns:scenegraph="http://uscxml.tk.informatik.tu-darmstadt.de/scenegraph.xsd">
+ <state id="start">
+ <invoke type="scenegraph">
+ <content>
+ <scenegraph:display x="10%" y="10 %" width="50 % " height=" 50 % ">
+ <scenegraph:viewport x="0" y="0" width="50%" height="50%" id="scene1">
+ <scenegraph:scale x="0.3" y="0.3" z="1">
+ <scenegraph:translation x="0" y="-10" z="1">
+ <scenegraph:node src="http://people.sc.fsu.edu/~jburkardt/data/obj/airboat.obj" />
+ </scenegraph:translation>
+ </scenegraph:scale>
+ </scenegraph:viewport>
+ <scenegraph:viewport x="50%" y="0" width="50%" height="50%" id="scene2">
+ <scenegraph:translation x="0" y="0" z="0">
+ <scenegraph:node src="http://cs.iupui.edu/~aharris/mm/vrml4/house.wrl" />
+ </scenegraph:translation>
+ </scenegraph:viewport>
+ <scenegraph:viewport x="0" y="50%" width="50%" height="50%" id="scene3">
+ <scenegraph:rotation angle="2.0" x="100" y="1" z="1">
+ <scenegraph:node src="http://cs.iupui.edu/~aharris/webDesign/vrml/tree.wrl" />
+ </scenegraph:rotation>
+ </scenegraph:viewport>
+ <scenegraph:viewport x="50%" y="50%" width="50%" height="50%" id="scene4">
+ <scenegraph:translation x="0" y="0" z="0">
+ <scenegraph:node src="scenegraph/HARD_MP_VAL_000.wrl" />
+ </scenegraph:translation>
+ </scenegraph:viewport>
+ </scenegraph:display>
+
+ <!-- scenegraph:display x="20%" y="20 %" width="50 % " height=" 50 % ">
+ <scenegraph:viewport x="0" y="0" width="50%" height="50%" id="scene1">
+ <scenegraph:translation x="0" y="0" z="0">
+ <scenegraph:node src="scenegraph/HARD_MP_VAL_000.wrl" />
+ </scenegraph:translation>
+ </scenegraph:viewport>
+ </scenegraph:display -->
+ </content>
+ </invoke>
+ </state>
+ <final id="final">
+ <onentry>
+ <log expr="'Finished!'" />
+ </onentry>
+ </final>
+</scxml> \ No newline at end of file