Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <script src="../lib/x3dom/x3dom-full.js"></script>
  6. <link rel='stylesheet' type='text/css' href='../lib/x3dom/x3dom.css' />
  7. </head>
  8.  
  9. <body>
  10. <x3d width="800" height="800">
  11. <scene>
  12. <switch whichChoice="-1">
  13. <indexedfaceset id="caixa" coordIndex="
  14. 1 2 3 0 1 -1
  15. 1 0 3 2 1 -1
  16. 0 1 6 7 0 -1
  17. 3 0 7 4 3 -1
  18. 2 3 4 5 2 -1
  19. 2 5 15 10 2 -1
  20. 1 9 14 6 1 -1
  21. 11 3 4 12 11 -1
  22. 0 8 13 7 0 -1
  23. 6 14 13 7 6 -1
  24. 15 5 4 12 15 -1
  25. 9 8 13 14 9 -1
  26. 11 10 15 12 11 -1
  27. 8 11 12 13 8 -1
  28. 0 16 17 1 0 -1
  29. 1 17 18 2 1 -1
  30. 18 19 3 2 -1
  31. 19 16 0 3 19 -1
  32. 13 12 4 7 13 -1">
  33. <coordinate point="
  34. 0.0 0.0 0.0
  35. 0.0 0.0 0.75
  36. 0.50 0.0 0.75
  37. 0.50 0.0 0.0
  38. 0.50 0.20 0.0
  39. 0.50 0.20 0.75
  40. 0.0 0.20 0.75
  41. 0.0 0.20 0.0
  42. 0.01 0 0.01
  43. 0.01 0 0.74
  44. 0.49 0 0.74
  45. 0.49 0 0.01
  46. 0.49 0.20 0.01
  47. 0.01 0.20 0.01
  48. 0.01 0.20 0.74
  49. 0.49 0.20 0.74
  50. 0.0 -0.01 0.0
  51. 0.0 -0.01 0.75
  52. 0.50 -0.01 0.75
  53. 0.50 -0.01 0.0">
  54. </coordinate>
  55. </indexedfaceset>
  56. <indexedfaceset id="seccoes" coordIndex="
  57. 0 3 2 1 0 -1
  58. 7 4 5 6 7 -1
  59. 4 0 1 5 4 -1
  60. 7 3 0 4 7 -1
  61. 3 7 6 2 3 -1
  62. 2 6 5 1 2 -1">
  63. <coordinate point="
  64. 0 0 0.5
  65. 0 0.2 0.5
  66. 0.5 0.2 0.5
  67. 0.5 0 0.5
  68. 0 0 0.49
  69. 0 0.2 0.49
  70. 0.5 0.2 0.49
  71. 0.5 0 0.49">
  72. </coordinate>
  73. </indexedfaceset>
  74. <indexedfaceset id="colchao" coordIndex="
  75. 2 3 7 6 2 -1
  76. 3 0 4 7 3 -1
  77. 0 1 5 4 0 -1
  78. 1 2 6 5 1 -1
  79. 6 7 4 5 6 -1
  80. 3 2 1 0 3 -1">
  81. <coordinate point="
  82. 0.495 0.20 0.005
  83. 0.005 0.20 0.005
  84. 0.005 0.20 0.745
  85. 0.495 0.20 0.745
  86. 0.495 0.23 0.005
  87. 0.005 0.23 0.005
  88. 0.005 0.23 0.745
  89. 0.495 0.23 0.745">
  90. </coordinate>
  91. </indexedfaceset>
  92. <indexedfaceset id="caixapequena" coordIndex="
  93. 2 1 0 3 2 -1
  94. 0 5 4 3 0 -1
  95. 1 6 5 0 1 -1
  96. 2 3 4 7 2 -1
  97. 1 2 7 6 1 -1
  98. 10 11 12 15 10 -1
  99. 9 10 15 14 9 -1
  100. 11 8 13 12 11 -1
  101. 8 9 14 13 8 -1
  102. 14 15 12 13 14 -1">
  103. <coordinate point="
  104. 0 0 0
  105. 0 0 0.2
  106. 0.2 0 0.2
  107. 0.2 0 0
  108. 0.2 0.2 0
  109. 0 0.2 0
  110. 0 0.2 0.2
  111. 0.2 0.2 0.2
  112. -0.01 0.15 -0.01
  113. -0.01 0.15 0.21
  114. 0.21 0.15 0.21
  115. 0.21 0.15 -0.01
  116. 0.21 0.22 -0.01
  117. -0.01 0.22 -0.01
  118. -0.01 0.22 0.21
  119. 0.21 0.22 0.21">
  120. </coordinate>
  121. </indexedfaceset>
  122.  
  123. </switch>
  124.  
  125. <transform DEF="basedacama">
  126.  
  127. <Transform translation="0 0 0 " scale="5 5 5 ">
  128. <Shape>
  129. <Appearance>
  130. <CommonSurfaceShader>
  131. <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
  132. </ImageTexture>
  133. </CommonSurfaceShader>
  134. </Appearance>
  135. <X3DGeometryNode use="caixa" />
  136. </Shape>
  137. </Transform>
  138.  
  139. <transform translation="0 0 0" scale="5 5 5">
  140. <Shape>
  141. <Appearance>
  142. <CommonSurfaceShader>
  143. <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
  144. </ImageTexture>
  145. </CommonSurfaceShader>
  146. </Appearance>
  147. <X3DGeometryNode use="seccoes" />
  148. </Shape>
  149. </transform>
  150.  
  151. <transform translation="0 3 2.5" rotation="1 0 0 1.5708" scale="5 5 5">
  152. <Shape>
  153. <Appearance>
  154. <CommonSurfaceShader>
  155. <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
  156. </ImageTexture>
  157. </CommonSurfaceShader>
  158. </Appearance>
  159. <X3DGeometryNode use="seccoes" />
  160. </Shape>
  161. </transform>
  162.  
  163. <transform translation="0.3 0 3.5" rotation="0 1 0 1.57" scale="2 5 2">
  164. <Shape>
  165. <Appearance>
  166. <CommonSurfaceShader>
  167. <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
  168. </ImageTexture>
  169. </CommonSurfaceShader>
  170. </Appearance>
  171. <X3DGeometryNode use="seccoes" />
  172. </Shape>
  173. </transform>
  174. </transform>
  175.  
  176. <Transform DEF="insuflavel">
  177. <transform translation="0 0 0" scale="5 5 5">
  178. <Shape>
  179. <Appearance>
  180. <CommonSurfaceShader>
  181. <ImageTexture containerField="diffuseTexture" url="colchao.png">
  182. </ImageTexture>
  183. </CommonSurfaceShader>
  184. </Appearance>
  185. <X3DGeometryNode use="colchao" />
  186. </Shape>
  187. </transform>
  188. </Transform>
  189.  
  190. <Transform DEF="caixaspeq">
  191. <transform translation="0.1 0.55 2.5" scale="2 2 2">
  192. <shape>
  193. <appearance>
  194. <CommonSurfaceShader>
  195. <ImageTexture containerField="diffuseTexture" url="papel1.jpg">
  196. </ImageTexture>
  197. </CommonSurfaceShader>
  198. </appearance>
  199. <X3DGeometryNode use="caixapequena">
  200. </shape>
  201. </transform>
  202.  
  203. <transform translation="0.7 0.55 2.5" scale="2.5 2 2">
  204. <shape>
  205. <appearance>
  206. <CommonSurfaceShader>
  207. <ImageTexture containerField="diffuseTexture" url="papel2.jpg">
  208. </ImageTexture>
  209. </CommonSurfaceShader>
  210. </appearance>
  211. <X3DGeometryNode use="caixapequena">
  212. </shape>
  213. </transform>
  214.  
  215. <transform translation="1.4 0.55 2.5" scale="1 2 1">
  216. <shape>
  217. <appearance>
  218. <CommonSurfaceShader>
  219. <ImageTexture containerField="diffuseTexture" url="papel3.jpg">
  220. </ImageTexture>
  221. </CommonSurfaceShader>
  222. </appearance>
  223. <X3DGeometryNode use="caixapequena">
  224. </shape>
  225. </transform>
  226.  
  227. <transform translation="1.8 0.55 2.5" scale="3 2 3">
  228. <shape>
  229. <appearance>
  230. <CommonSurfaceShader>
  231. <ImageTexture containerField="diffuseTexture" url="papel1.jpg">
  232. </ImageTexture>
  233. </CommonSurfaceShader>
  234. </appearance>
  235. <X3DGeometryNode use="caixapequena">
  236. </shape>
  237. </transform>
  238.  
  239. <transform translation="0.1 0.02 2.5" scale="2 2 2">
  240. <shape>
  241. <appearance>
  242. <CommonSurfaceShader>
  243. <ImageTexture containerField="diffuseTexture" url="papel2.jpg">
  244. </ImageTexture>
  245. </CommonSurfaceShader>
  246. </appearance>
  247. <X3DGeometryNode use="caixapequena">
  248. </shape>
  249. </transform>
  250.  
  251. <transform translation="0.7 0.02 2.5" scale="2 2 2">
  252. <shape>
  253. <appearance>
  254. <CommonSurfaceShader>
  255. <ImageTexture containerField="diffuseTexture" url="papel3.jpg">
  256. </ImageTexture>
  257. </CommonSurfaceShader>
  258. </appearance>
  259. <X3DGeometryNode use="caixapequena">
  260. </shape>
  261. </transform>
  262.  
  263. <transform translation="1.5 0.02 2.5" scale="4 2 2">
  264. <shape>
  265. <appearance>
  266. <CommonSurfaceShader>
  267. <ImageTexture containerField="diffuseTexture" url="papel1.jpg">
  268. </ImageTexture>
  269. </CommonSurfaceShader>
  270. </appearance>
  271. <X3DGeometryNode use="caixapequena">
  272. </shape>
  273. </transform>
  274. </Transform>
  275.  
  276.  
  277. <Transform DEF="porta">
  278. <transform translation="0 2.45 3.75" scale="5 5 5" rotation="1 0 0 1.57">
  279. <Shape>
  280. <Appearance>
  281. <CommonSurfaceShader>
  282. <ImageTexture containerField="diffuseTexture" url="madeira2.jpg">
  283. </ImageTexture>
  284. </CommonSurfaceShader>
  285. </Appearance>
  286. <X3DGeometryNode use="seccoes" />
  287. </Shape>
  288. </transform>
  289. </Transform>
  290.  
  291.  
  292. <timeSensor DEF='time' cycleInterval='6' loop='true'></timeSensor>
  293.  
  294. <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>
  295. <PositionInterpolator DEF="animacaocaixas" key="0 0.5 1" keyValue="0 0 0 0 0 2 0 0 0" />
  296.  
  297.  
  298. <ROUTE fromNode='time' fromField='fraction_changed' toNode='animacaocolchoa' toField='set_fraction'></ROUTE>
  299. <ROUTE fromNode="time" fromField="fraction_changed" toNode="animacaocaixas" toField="set_fraction"></ROUTE>
  300. <ROUTE fromNode="animacaocaixas" fromField="value_changed" toNode="caixaspeq" toField="translation"></ROUTE>
  301. <ROUTE fromNode='animacaocolchoa' fromField='value_changed' toNode='insuflavel' toField='set_rotation'></ROUTE>
  302. </scene>
  303. </x3d>
  304. </body>
  305. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement