Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script src="../lib/x3dom/x3dom-full.js"></script>
- <link rel='stylesheet' type='text/css' href='../lib/x3dom/x3dom.css' />
- </head>
- <body>
- <x3d width="800" height="800">
- <scene>
- <switch whichChoice="-1">
- <indexedfaceset id="caixa" coordIndex="
- 1 2 3 0 1 -1
- 1 0 3 2 1 -1
- 0 1 6 7 0 -1
- 3 0 7 4 3 -1
- 2 3 4 5 2 -1
- 2 5 15 10 2 -1
- 1 9 14 6 1 -1
- 11 3 4 12 11 -1
- 0 8 13 7 0 -1
- 6 14 13 7 6 -1
- 15 5 4 12 15 -1
- 9 8 13 14 9 -1
- 11 10 15 12 11 -1
- 8 11 12 13 8 -1
- 0 16 17 1 0 -1
- 1 17 18 2 1 -1
- 18 19 3 2 -1
- 19 16 0 3 19 -1
- 13 12 4 7 13 -1">
- <coordinate point="
- 0.0 0.0 0.0
- 0.0 0.0 0.75
- 0.50 0.0 0.75
- 0.50 0.0 0.0
- 0.50 0.20 0.0
- 0.50 0.20 0.75
- 0.0 0.20 0.75
- 0.0 0.20 0.0
- 0.01 0 0.01
- 0.01 0 0.74
- 0.49 0 0.74
- 0.49 0 0.01
- 0.49 0.20 0.01
- 0.01 0.20 0.01
- 0.01 0.20 0.74
- 0.49 0.20 0.74
- 0.0 -0.01 0.0
- 0.0 -0.01 0.75
- 0.50 -0.01 0.75
- 0.50 -0.01 0.0">
- </coordinate>
- </indexedfaceset>
- <indexedfaceset id="seccoes" coordIndex="
- 0 3 2 1 0 -1
- 7 4 5 6 7 -1
- 4 0 1 5 4 -1
- 7 3 0 4 7 -1
- 3 7 6 2 3 -1
- 2 6 5 1 2 -1">
- <coordinate point="
- 0 0 0.5
- 0 0.2 0.5
- 0.5 0.2 0.5
- 0.5 0 0.5
- 0 0 0.49
- 0 0.2 0.49
- 0.5 0.2 0.49
- 0.5 0 0.49">
- </coordinate>
- </indexedfaceset>
- <indexedfaceset id="colchao" coordIndex="
- 2 3 7 6 2 -1
- 3 0 4 7 3 -1
- 0 1 5 4 0 -1
- 1 2 6 5 1 -1
- 6 7 4 5 6 -1
- 3 2 1 0 3 -1">
- <coordinate point="
- 0.495 0.20 0.005
- 0.005 0.20 0.005
- 0.005 0.20 0.745
- 0.495 0.20 0.745
- 0.495 0.23 0.005
- 0.005 0.23 0.005
- 0.005 0.23 0.745
- 0.495 0.23 0.745">
- </coordinate>
- </indexedfaceset>
- <indexedfaceset id="caixapequena" coordIndex="
- 2 1 0 3 2 -1
- 0 5 4 3 0 -1
- 1 6 5 0 1 -1
- 2 3 4 7 2 -1
- 1 2 7 6 1 -1
- 10 11 12 15 10 -1
- 9 10 15 14 9 -1
- 11 8 13 12 11 -1
- 8 9 14 13 8 -1
- 14 15 12 13 14 -1">
- <coordinate point="
- 0 0 0
- 0 0 0.2
- 0.2 0 0.2
- 0.2 0 0
- 0.2 0.2 0
- 0 0.2 0
- 0 0.2 0.2
- 0.2 0.2 0.2
- -0.01 0.15 -0.01
- -0.01 0.15 0.21
- 0.21 0.15 0.21
- 0.21 0.15 -0.01
- 0.21 0.22 -0.01
- -0.01 0.22 -0.01
- -0.01 0.22 0.21
- 0.21 0.22 0.21">
- </coordinate>
- </indexedfaceset>
- </switch>
- <transform DEF="basedacama">
- <Transform translation="0 0 0 " scale="5 5 5 ">
- <Shape>
- <Appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </Appearance>
- <X3DGeometryNode use="caixa" />
- </Shape>
- </Transform>
- <transform translation="0 0 0" scale="5 5 5">
- <Shape>
- <Appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </Appearance>
- <X3DGeometryNode use="seccoes" />
- </Shape>
- </transform>
- <transform translation="0 3 2.5" rotation="1 0 0 1.5708" scale="5 5 5">
- <Shape>
- <Appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </Appearance>
- <X3DGeometryNode use="seccoes" />
- </Shape>
- </transform>
- <transform translation="0.3 0 3.5" rotation="0 1 0 1.57" scale="2 5 2">
- <Shape>
- <Appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </Appearance>
- <X3DGeometryNode use="seccoes" />
- </Shape>
- </transform>
- </transform>
- <Transform DEF="insuflavel">
- <transform translation="0 0 0" scale="5 5 5">
- <Shape>
- <Appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="colchao.png">
- </ImageTexture>
- </CommonSurfaceShader>
- </Appearance>
- <X3DGeometryNode use="colchao" />
- </Shape>
- </transform>
- </Transform>
- <Transform DEF="caixaspeq">
- <transform translation="0.1 0.55 2.5" scale="2 2 2">
- <shape>
- <appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="papel1.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </appearance>
- <X3DGeometryNode use="caixapequena">
- </shape>
- </transform>
- <transform translation="0.7 0.55 2.5" scale="2.5 2 2">
- <shape>
- <appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="papel2.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </appearance>
- <X3DGeometryNode use="caixapequena">
- </shape>
- </transform>
- <transform translation="1.4 0.55 2.5" scale="1 2 1">
- <shape>
- <appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="papel3.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </appearance>
- <X3DGeometryNode use="caixapequena">
- </shape>
- </transform>
- <transform translation="1.8 0.55 2.5" scale="3 2 3">
- <shape>
- <appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="papel1.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </appearance>
- <X3DGeometryNode use="caixapequena">
- </shape>
- </transform>
- <transform translation="0.1 0.02 2.5" scale="2 2 2">
- <shape>
- <appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="papel2.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </appearance>
- <X3DGeometryNode use="caixapequena">
- </shape>
- </transform>
- <transform translation="0.7 0.02 2.5" scale="2 2 2">
- <shape>
- <appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="papel3.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </appearance>
- <X3DGeometryNode use="caixapequena">
- </shape>
- </transform>
- <transform translation="1.5 0.02 2.5" scale="4 2 2">
- <shape>
- <appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="papel1.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </appearance>
- <X3DGeometryNode use="caixapequena">
- </shape>
- </transform>
- </Transform>
- <Transform DEF="porta">
- <transform translation="0 2.45 3.75" scale="5 5 5" rotation="1 0 0 1.57">
- <Shape>
- <Appearance>
- <CommonSurfaceShader>
- <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
- </ImageTexture>
- </CommonSurfaceShader>
- </Appearance>
- <X3DGeometryNode use="seccoes" />
- </Shape>
- </transform>
- </Transform>
- <timeSensor DEF='time' cycleInterval='6' loop='true'></timeSensor>
- <orientationInterpolator DEF='animacaocolchoa' key='0 0.3 0.5 0.75 1' keyValue='1 0 0 0 1 0 0 0 1 0 0 -1 1 0 0 0 1 0 0 0'></orientationInterpolator>
- <PositionInterpolator DEF="animacaocaixas" key="0 0.5 1" keyValue="0 0 0 0 0 2 0 0 0" />
- <ROUTE fromNode='time' fromField='fraction_changed' toNode='animacaocolchoa' toField='set_fraction'></ROUTE>
- <ROUTE fromNode="time" fromField="fraction_changed" toNode="animacaocaixas" toField="set_fraction"></ROUTE>
- <ROUTE fromNode="animacaocaixas" fromField="value_changed" toNode="caixaspeq" toField="translation"></ROUTE>
- <ROUTE fromNode='animacaocolchoa' fromField='value_changed' toNode='insuflavel' toField='set_rotation'></ROUTE>
- </scene>
- </x3d>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement