Jump to content

Process SMIL directives in XML data: Difference between revisions

strip away the unused transformation
(two examples of output provided)
(strip away the unused transformation)
Line 13:
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<PointLight color='1 1 1' location='0 2 0'/>
</Shape>
<Transform translation='0.0 0.0 0.0' scale='1 1 1'>
<ShapeBox size='2 1 2'>
<Boxanimate attributeName="size" from='"2 1 2'>"
to="1 2 1" begin="0s" dur="10s"/>
<animate attributeName="size" from="2 1 2"
</ShapeBox>
to="1 2 1" begin="0s" dur="10s"/>
</BoxAppearance>
<AppearanceMaterial diffuseColor='0.0 0.6 1.0'>
<Materialanimate 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"
</ShapeMaterial>
to="1.0 0.4 0.0" begin="0s" dur="10s"/>
</MaterialAppearance>
</AppearanceShape>
</Shape>
</Transform>
</Scene>
</X3D></smil></lang>
Line 37 ⟶ 35:
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<PointLight color='1 1 1' location='0 2 0'/>
<Shape>
<Transform translation='0.0 0.0 0.0' scale='1 1 1'>
<ShapeBox size='2 1 2'/>
<Box size='2 1 2'/Appearance>
<AppearanceMaterial diffuseColor='0.0 0.6 1.0'/>
</Appearance>
<Material diffuseColor='0.0 0.6 1.0'/>
</AppearanceShape>
</Shape>
</Transform>
</Scene>
</X3D></lang>
Line 55 ⟶ 51:
<Viewpoint position="0 0 8" orientation="0 0 1 0"/>
<PointLight color='1 1 1' location='0 2 0'/>
<Shape>
<Transform translation='0.0 0.0 0.0' scale='1 1 1'>
<ShapeBox size='1.8 1.2 1.8'/>
<Box size='1.8 1.2 1.8'/Appearance>
<AppearanceMaterial diffuseColor='0.2 0.56 0.8'/>
</Appearance>
<Material diffuseColor='0.2 0.56 0.8'/>
</AppearanceShape>
</Shape>
</Transform>
</Scene>
</X3D></lang>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.