/tutorial/vision/opengl/data/object/glass.xml

http://github.com/tybor/Liberty · XML · 194 lines · 194 code · 0 blank · 0 comment · 0 complexity · 77b9fa34a17e2a65c56a3e931cb62553 MD5 · raw file

  1. <object>
  2. <facet>
  3. <vertex x="-1" y="1" z="1">
  4. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  5. </vertex>
  6. <vertex x="-1" y="-1" z="1">
  7. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  8. </vertex>
  9. <vertex x="1" y="1" z="1">
  10. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  11. </vertex>
  12. <texture file="glass.bmp">
  13. <coord s="0" t="1"></coord>
  14. <coord s="0" t="0"></coord>
  15. <coord s="1" t="1"></coord>
  16. </texture>
  17. </facet>
  18. <facet>
  19. <vertex x="-1" y="-1" z="1">
  20. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  21. </vertex>
  22. <vertex x="1" y="-1" z="1">
  23. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  24. </vertex>
  25. <vertex x="1" y="1" z="1">
  26. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  27. </vertex>
  28. <texture file="glass.bmp">
  29. <coord s="0" t="0"></coord>
  30. <coord s="1" t="0"></coord>
  31. <coord s="1" t="1"></coord>
  32. </texture>
  33. </facet>
  34. <facet>
  35. <vertex x="1" y="1" z="-1">
  36. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  37. </vertex>
  38. <vertex x="1" y="-1" z="-1">
  39. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  40. </vertex>
  41. <vertex x="-1" y="1" z="-1">
  42. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  43. </vertex>
  44. <texture file="glass.bmp">
  45. <coord s="0" t="1"></coord>
  46. <coord s="0" t="0"></coord>
  47. <coord s="1" t="1"></coord>
  48. </texture>
  49. </facet>
  50. <facet>
  51. <vertex x="1" y="-1" z="-1">
  52. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  53. </vertex>
  54. <vertex x="-1" y="-1" z="-1">
  55. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  56. </vertex>
  57. <vertex x="-1" y="1" z="-1">
  58. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  59. </vertex>
  60. <texture file="glass.bmp">
  61. <coord s="0" t="0"></coord>
  62. <coord s="1" t="0"></coord>
  63. <coord s="1" t="1"></coord>
  64. </texture>
  65. </facet>
  66. <facet>
  67. <vertex x="1" y="1" z="1">
  68. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  69. </vertex>
  70. <vertex x="1" y="-1" z="1">
  71. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  72. </vertex>
  73. <vertex x="1" y="1" z="-1">
  74. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  75. </vertex>
  76. <texture file="glass.bmp">
  77. <coord s="0" t="1"></coord>
  78. <coord s="0" t="0"></coord>
  79. <coord s="1" t="1"></coord>
  80. </texture>
  81. </facet>
  82. <facet>
  83. <vertex x="1" y="-1" z="1">
  84. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  85. </vertex>
  86. <vertex x="1" y="-1" z="-1">
  87. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  88. </vertex>
  89. <vertex x="1" y="1" z="-1">
  90. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  91. </vertex>
  92. <texture file="glass.bmp">
  93. <coord s="0" t="0"></coord>
  94. <coord s="1" t="0"></coord>
  95. <coord s="1" t="1"></coord>
  96. </texture>
  97. </facet>
  98. <facet>
  99. <vertex x="-1" y="1" z="-1">
  100. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  101. </vertex>
  102. <vertex x="-1" y="-1" z="-1">
  103. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  104. </vertex>
  105. <vertex x="-1" y="1" z="1">
  106. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  107. </vertex>
  108. <texture file="glass.bmp">
  109. <coord s="0" t="1"></coord>
  110. <coord s="0" t="0"></coord>
  111. <coord s="1" t="1"></coord>
  112. </texture>
  113. </facet>
  114. <facet>
  115. <vertex x="-1" y="-1" z="-1">
  116. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  117. </vertex>
  118. <vertex x="-1" y="-1" z="1">
  119. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  120. </vertex>
  121. <vertex x="-1" y="1" z="1">
  122. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  123. </vertex>
  124. <texture file="glass.bmp">
  125. <coord s="0" t="0"></coord>
  126. <coord s="1" t="0"></coord>
  127. <coord s="1" t="1"></coord>
  128. </texture>
  129. </facet>
  130. <facet>
  131. <vertex x="-1" y="-1" z="1">
  132. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  133. </vertex>
  134. <vertex x="-1" y="-1" z="-1">
  135. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  136. </vertex>
  137. <vertex x="1" y="-1" z="1">
  138. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  139. </vertex>
  140. <texture file="glass.bmp">
  141. <coord s="0" t="1"></coord>
  142. <coord s="0" t="0"></coord>
  143. <coord s="1" t="1"></coord>
  144. </texture>
  145. </facet>
  146. <facet>
  147. <vertex x="-1" y="-1" z="-1">
  148. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  149. </vertex>
  150. <vertex x="1" y="-1" z="-1">
  151. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  152. </vertex>
  153. <vertex x="1" y="-1" z="1">
  154. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  155. </vertex>
  156. <texture file="glass.bmp">
  157. <coord s="0" t="0"></coord>
  158. <coord s="1" t="0"></coord>
  159. <coord s="1" t="1"></coord>
  160. </texture>
  161. </facet>
  162. <facet>
  163. <vertex x="-1" y="1" z="-1">
  164. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  165. </vertex>
  166. <vertex x="-1" y="1" z="1">
  167. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  168. </vertex>
  169. <vertex x="1" y="1" z="-1">
  170. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  171. </vertex>
  172. <texture file="glass.bmp">
  173. <coord s="0" t="1"></coord>
  174. <coord s="0" t="0"></coord>
  175. <coord s="1" t="1"></coord>
  176. </texture>
  177. </facet>
  178. <facet>
  179. <vertex x="-1" y="1" z="1">
  180. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  181. </vertex>
  182. <vertex x="1" y="1" z="1">
  183. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  184. </vertex>
  185. <vertex x="1" y="1" z="-1">
  186. <color r="0.75" g="0.75" b="1" a="0.5"></color>
  187. </vertex>
  188. <texture file="glass.bmp">
  189. <coord s="0" t="0"></coord>
  190. <coord s="1" t="0"></coord>
  191. <coord s="1" t="1"></coord>
  192. </texture>
  193. </facet>
  194. </object>