Process SMIL directives in XML data: Difference between revisions

Content added Content deleted
(two examples of output provided)
(strip away the unused transformation)
Line 13: Line 13:
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<PointLight color='1 1 1' location='0 2 0'/>
<PointLight color='1 1 1' location='0 2 0'/>
<Shape>
<Transform translation='0.0 0.0 0.0' scale='1 1 1'>
<Shape>
<Box size='2 1 2'>
<Box size='2 1 2'>
<animate attributeName="size" from="2 1 2"
to="1 2 1" begin="0s" dur="10s"/>
<animate attributeName="size" from="2 1 2"
</Box>
to="1 2 1" begin="0s" dur="10s"/>
</Box>
<Appearance>
<Appearance>
<Material diffuseColor='0.0 0.6 1.0'>
<Material diffuseColor='0.0 0.6 1.0'>
<animate attributeName="diffuseColor" from="0.0 0.6 1.0"
to="1.0 0.4 0.0" begin="0s" dur="10s"/>
<animate attributeName="diffuseColor" from="0.0 0.6 1.0"
</Material>
to="1.0 0.4 0.0" begin="0s" dur="10s"/>
</Material>
</Appearance>
</Appearance>
</Shape>
</Shape>
</Transform>
</Scene>
</Scene>
</X3D></smil></lang>
</X3D></smil></lang>
Line 37: Line 35:
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<PointLight color='1 1 1' location='0 2 0'/>
<PointLight color='1 1 1' location='0 2 0'/>
<Shape>
<Transform translation='0.0 0.0 0.0' scale='1 1 1'>
<Shape>
<Box size='2 1 2'/>
<Box size='2 1 2'/>
<Appearance>
<Appearance>
<Material diffuseColor='0.0 0.6 1.0'/>
</Appearance>
<Material diffuseColor='0.0 0.6 1.0'/>
</Appearance>
</Shape>
</Shape>
</Transform>
</Scene>
</Scene>
</X3D></lang>
</X3D></lang>
Line 55: Line 51:
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<PointLight color='1 1 1' location='0 2 0'/>
<PointLight color='1 1 1' location='0 2 0'/>
<Shape>
<Transform translation='0.0 0.0 0.0' scale='1 1 1'>
<Shape>
<Box size='1.8 1.2 1.8'/>
<Box size='1.8 1.2 1.8'/>
<Appearance>
<Appearance>
<Material diffuseColor='0.2 0.56 0.8'/>
</Appearance>
<Material diffuseColor='0.2 0.56 0.8'/>
</Appearance>
</Shape>
</Shape>
</Transform>
</Scene>
</Scene>
</X3D></lang>
</X3D></lang>