Here we have a X3D Model of a blue cone.
Here we have a X3D Model of a pink and green cone with a translation by the X factor.
<?xml version="1.0" encoding="utf-8"?>
<X3D profile="Immersive" version="3.3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.3.xsd">
<Scene>
<!-- 1er primitivo -->
<Transform translation="4 0 1">
<Shape>
<Appearance>
<Material diffuseColor="0.722, 0.969, 0.675"/>
</Appearance>
<Cone bottomRadius="0.9" height="1.8"/>
</Shape>
</Transform>
<!-- 2do primitivo -->
<Transform translation="-2 0 1">
<Shape>
<Appearance>
<Material diffuseColor="0.969, 0.675, 0.953"/>
</Appearance>
<Cone bottomRadius="0.9" height="1.8"/>
</Shape>
</Transform>
</Scene>
</X3D>
Here we have a X3D Model with a blue and red cone with an Y translation.
<?xml version="1.0" encoding="utf-8"?>
<X3D profile="Immersive" version="3.3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.3.xsd">
<Scene>
<!-- Cono azul en la base -->
<Transform translation="4 0 1">
<Shape>
<Appearance>
<Material diffuseColor="0.0 0.0 1.0"/>
</Appearance>
<Cone bottomRadius="0.9" height="1.8"/>
</Shape>
</Transform>
<!-- Cono rojo encima del azul -->
<Transform translation="4 2 1">
<Shape>
<Appearance>
<Material diffuseColor="1.0 0.0 0.0"/>
</Appearance>
<Cone bottomRadius="0.9" height="1.8"/>
</Shape>
</Transform>
</Scene>
</X3D>
Here we have a X3D Model with a cone with a cake texture.
<?xml version="1.0" encoding="utf-8"?>
<X3D profile="Immersive" version="3.3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.3.xsd">
<Scene>
<Shape>
<Appearance>
<ImageTexture url='"images/cake.jpg"'/>
</Appearance>
<Cone bottomRadius="3.5" height="1.5"/>
</Shape>
</Scene>
</X3D>
Here we have a X3D Model with a red cylinder.
<?xml version="1.0" encoding="utf-8"?>
<X3D profile="Immersive" version="3.3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.3.xsd">
<Scene>
<!-- Cilindro con color en formato RGB -->
<Shape>
<Appearance>
<Material diffuseColor="0.4, 0.035, 0.031"/>
</Appearance>
<Cylinder height="2" radius="2"/>
</Shape>
</Scene>
</X3D>
Here we have a X3D Model of a cylinder with a aquarium texture and translation.
<?xml version="1.0" encoding="utf-8"?>
<X3D profile="Immersive" version="3.3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.3.xsd">
<Scene>
<!-- Cilindro trasladado hacia la izquierda -->
<Transform translation="-3 0 0">
<Shape>
<Appearance>
<Material diffuseColor="1 1 1"/>
<ImageTexture url='"images/aquarium.jpg"'/>
</Appearance>
<Cylinder height="4" radius="2"/>
</Shape>
</Transform>
</Scene>
</X3D>
Here we have a X3D Model of a sphere with a beach ball texture.
<?xml version="1.0" encoding="UTF-8"?>
<X3D profile="Full" version="3.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.0.xsd">
<Scene DEF="scene">
<Transform translation="2 0 0">
<Shape>
<Appearance>
<Material diffuseColor=""/>
<ImageTexture url='"images/beach_ball.jpg"'/>
</Appearance>
<Sphere/>
</Shape>
</Transform>
</Scene>
</X3D>
Here we have a X3D Model of a cube with a slime texture.
Here we have a X3D Model of an ice cream. Utilizing sphere and cone models and adding translation and sound to it.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Nombre y apellido - COMP 3600 -->
<X3D profile="Immersive" version="3.3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.3.xsd">
<Scene>
<!-- Reloj de animación -->
<TimeSensor DEF="Clock" cycleInterval="10" loop="true"/>
<!-- Interpolador de rotación -->
<OrientationInterpolator DEF="Spin" key="0 1"
keyValue="0 1 0 0 0 1 0 6.28"/>
<!-- Transformación general para animar TODO el helado -->
<Transform DEF="IceCream" rotation="0 1 0 0">
<Group>
<!-- Cono base ice cream -->
<Transform translation="0 -0.2 0" rotation="1 0 0 3.14">
<Shape>
<Appearance>
<ImageTexture url='"images/cone.jpg"'/>
</Appearance>
<Cone bottomRadius="1" height="2.5"/>
</Shape>
</Transform>
<!-- Scoop 1 -->
<Transform translation="0 1.4 0">
<Shape>
<Appearance>
<ImageTexture url='"images/cookie_dough.jpg"'/>
</Appearance>
<Sphere radius="1.0"/>
</Shape>
</Transform>
<!-- Scoop 2 -->
<Transform translation="0 2.6 0">
<Shape>
<Appearance>
<ImageTexture url='"images/mint_chocolate.jpg"'/>
</Appearance>
<Sphere radius="0.8"/>
</Shape>
</Transform>
<!-- Scoop 3 -->
<Transform translation="0 3.5 0">
<Shape>
<Appearance>
<ImageTexture url='"images/confetti.jpg"'/>
</Appearance>
<Sphere radius="0.6"/>
</Shape>
</Transform>
<!-- Scoop 4 -->
<Transform translation="0 4.2 0">
<Shape>
<Appearance>
<ImageTexture url='"images/brownie.jpg"'/>
</Appearance>
<Sphere radius="0.4"/>
</Shape>
</Transform>
</Group>
</Transform>
<!-- Conexión de animación -->
<ROUTE fromNode="Clock" fromField="fraction_changed" toNode="Spin" toField="set_fraction"/>
<ROUTE fromNode="Spin" fromField="value_changed" toNode="IceCream" toField="set_rotation"/>
<!-- Sonido de fondo -->
<Sound>
<AudioClip loop="true" enabled="true" url='"ice_cream.wav" "/ice_cream.wav"'/>
</Sound>
</Scene>
</X3D>