Unit1.dfm 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Face vs Face'
  5. ClientHeight = 445
  6. ClientWidth = 577
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. WindowState = wsMaximized
  15. OnCreate = FormCreate
  16. OnShow = FormShow
  17. PixelsPerInch = 96
  18. TextHeight = 13
  19. object Splitter1: TSplitter
  20. Left = 428
  21. Top = 0
  22. Width = 4
  23. Height = 296
  24. Align = alRight
  25. ExplicitLeft = 460
  26. ExplicitHeight = 331
  27. end
  28. object GLSceneViewer1: TGLSceneViewer
  29. Left = 121
  30. Top = 0
  31. Width = 307
  32. Height = 296
  33. Camera = GLCamera2
  34. Buffer.BackgroundColor = 8404992
  35. FieldOfView = 40.608947753906250000
  36. Align = alClient
  37. OnMouseDown = GLSceneViewer1MouseDown
  38. OnMouseMove = GLSceneViewer1MouseMove
  39. TabOrder = 0
  40. end
  41. object Panel1: TPanel
  42. Left = 0
  43. Top = 0
  44. Width = 121
  45. Height = 296
  46. Align = alLeft
  47. BevelOuter = bvLowered
  48. TabOrder = 1
  49. object Shape1: TShape
  50. Left = 88
  51. Top = 10
  52. Width = 25
  53. Height = 25
  54. Shape = stCircle
  55. end
  56. object Label1: TLabel
  57. Left = 8
  58. Top = 8
  59. Width = 64
  60. Height = 13
  61. Caption = 'Collision test:'
  62. end
  63. object LATime: TLabel
  64. Left = 8
  65. Top = 24
  66. Width = 73
  67. Height = 13
  68. Alignment = taRightJustify
  69. AutoSize = False
  70. Caption = 'LATime'
  71. end
  72. object Label2: TLabel
  73. Left = 8
  74. Top = 96
  75. Width = 102
  76. Height = 13
  77. Caption = 'Teapot collision mode'
  78. end
  79. object cbCollisionMode: TRadioGroup
  80. Left = 8
  81. Top = 112
  82. Width = 105
  83. Height = 105
  84. ItemIndex = 4
  85. Items.Strings = (
  86. 'cbmPoint'
  87. 'cbmSphere'
  88. 'cbmEllipsoid'
  89. 'cbmCube'
  90. 'cbmFaces')
  91. TabOrder = 0
  92. OnClick = cbCollisionModeClick
  93. end
  94. end
  95. object Panel2: TPanel
  96. Left = 0
  97. Top = 296
  98. Width = 577
  99. Height = 149
  100. Align = alBottom
  101. TabOrder = 2
  102. object StringGrid1: TStringGrid
  103. Left = 8
  104. Top = 6
  105. Width = 553
  106. Height = 139
  107. ColCount = 6
  108. DefaultColWidth = 90
  109. DefaultRowHeight = 20
  110. RowCount = 6
  111. TabOrder = 0
  112. end
  113. end
  114. object Memo1: TMemo
  115. Left = 432
  116. Top = 0
  117. Width = 145
  118. Height = 296
  119. Align = alRight
  120. Lines.Strings = (
  121. 'Memo1')
  122. TabOrder = 3
  123. end
  124. object GLScene1: TGLScene
  125. Left = 192
  126. Top = 16
  127. object GLLightSource1: TGLLightSource
  128. ConstAttenuation = 1.000000000000000000
  129. Position.Coordinates = {0000204100002041000020410000803F}
  130. SpotCutOff = 180.000000000000000000
  131. end
  132. object GLLightSource2: TGLLightSource
  133. ConstAttenuation = 1.000000000000000000
  134. Position.Coordinates = {000020C100002041000020C10000803F}
  135. SpotCutOff = 180.000000000000000000
  136. end
  137. object DummyCube1: TGLDummyCube
  138. ShowAxes = True
  139. CubeSize = 1.000000000000000000
  140. EdgeColor.Color = {0000003F0000003F0000003F0000803F}
  141. object GLCamera2: TGLCamera
  142. DepthOfView = 1000.000000000000000000
  143. FocalLength = 400.000000000000000000
  144. TargetObject = DummyCube1
  145. Position.Coordinates = {0000704100002041000070410000803F}
  146. end
  147. object txtX: TGLSpaceText
  148. Position.Coordinates = {0000004000000000000000000000803F}
  149. Scale.Coordinates = {0000003F0000003F0000003F00000000}
  150. Extrusion = 0.100000001490116100
  151. Font.Charset = DEFAULT_CHARSET
  152. Font.Color = clWindowText
  153. Font.Height = -11
  154. Font.Name = 'Arial'
  155. Font.Style = []
  156. Lines.Strings = (
  157. 'X')
  158. end
  159. object txtY: TGLSpaceText
  160. Position.Coordinates = {0000000000000040000000000000803F}
  161. Scale.Coordinates = {0000003F0000003F0000003F00000000}
  162. Extrusion = 0.100000001490116100
  163. Font.Charset = DEFAULT_CHARSET
  164. Font.Color = clWindowText
  165. Font.Height = -11
  166. Font.Name = 'Arial'
  167. Font.Style = []
  168. Lines.Strings = (
  169. 'Y')
  170. end
  171. object txtZ: TGLSpaceText
  172. Direction.Coordinates = {00000000000000800000803F00000000}
  173. Position.Coordinates = {0000000000000000000000400000803F}
  174. Scale.Coordinates = {0000003F0000003F0000003F00000000}
  175. Extrusion = 0.100000001490116100
  176. Font.Charset = DEFAULT_CHARSET
  177. Font.Color = clWindowText
  178. Font.Height = -11
  179. Font.Name = 'Arial'
  180. Font.Style = []
  181. Lines.Strings = (
  182. 'Z')
  183. end
  184. object TeaPot1: TGLFreeForm
  185. Direction.Coordinates = {613D73BDD128723F4D43A3BE00000000}
  186. Position.Coordinates = {00000000000000003333B33E0000803F}
  187. Scale.Coordinates = {0AD7233C0AD7233C0AD7233C00000000}
  188. Up.Coordinates = {C9B14FBFC3BE0F3ED548113F00000000}
  189. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  190. BehavioursData = {
  191. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  192. 0002000611436F6C6C6973696F6E4D616E616765723102040200}
  193. end
  194. object TeaPot2: TGLFreeForm
  195. Direction.Coordinates = {0DFB4AB20000803F7A829A3200000000}
  196. Position.Coordinates = {0000000000000000CDCCCCBE0000803F}
  197. Scale.Coordinates = {0AD7233C0AD7233C0AD7233C00000000}
  198. Up.Coordinates = {F30435BFD41F8BB3F30435BF00000000}
  199. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  200. BehavioursData = {
  201. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  202. 0002000611436F6C6C6973696F6E4D616E616765723102040200}
  203. end
  204. object CubePoint1: TGLCube
  205. Position.Coordinates = {000000000000803F000000000000803F}
  206. BehavioursData = {
  207. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  208. 0002000611436F6C6C6973696F6E4D616E616765723102000200}
  209. CubeSize = {CDCC4C3DCDCC4C3DCDCC4C3D}
  210. end
  211. object CubePoint2: TGLCube
  212. Position.Coordinates = {CDCC4CBE0000803F000000000000803F}
  213. Scale.Coordinates = {CDCC4C3DCDCC4C3DCDCC4C3D00000000}
  214. BehavioursData = {
  215. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  216. 0002000611436F6C6C6973696F6E4D616E616765723102000200}
  217. end
  218. object Cube2: TGLCube
  219. Material.BackProperties.Ambient.Color = {CDCC4C3ECDCC4C3ECDCC4C3E0000003F}
  220. Material.BackProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3F0000003F}
  221. Material.BackProperties.Emission.Color = {0000000000000000000000000000003F}
  222. Material.BackProperties.Specular.Color = {0000000000000000000000000000003F}
  223. Material.FrontProperties.Ambient.Color = {CDCC4C3ECDCC4C3ECDCC4C3ECDCC4C3E}
  224. Material.FrontProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3F0000003F}
  225. Material.FrontProperties.Emission.Color = {0000000000000000000000000000003F}
  226. Material.BlendingMode = bmTransparency
  227. Position.Coordinates = {0000803F00000000000080BF0000803F}
  228. Scale.Coordinates = {0000803F000000400000803F00000000}
  229. BehavioursData = {
  230. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  231. 0002000611436F6C6C6973696F6E4D616E616765723102030200}
  232. CubeSize = {0000803F0000803F0000003F}
  233. end
  234. object Bar: TGLCube
  235. Material.FrontProperties.Diffuse.Color = {0000803F5839343E5839343E0000803F}
  236. Position.Coordinates = {0000803F000000000000803F0000803F}
  237. BehavioursData = {
  238. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  239. 0002000611436F6C6C6973696F6E4D616E616765723102030200}
  240. CubeSize = {CDCC4C3DCDCC4C3D00000040}
  241. end
  242. object GLSphere1: TGLSphere
  243. Position.Coordinates = {000000C000000000000000000000803F}
  244. Radius = 0.500000000000000000
  245. BehavioursData = {
  246. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  247. 0002000611436F6C6C6973696F6E4D616E616765723102010200}
  248. end
  249. object GLSphere2: TGLSphere
  250. Position.Coordinates = {000000C000000000000080BF0000803F}
  251. Scale.Coordinates = {CDCC4C3FCDCC4C3FCDCC4C3F00000000}
  252. Radius = 0.300000011920929000
  253. BehavioursData = {
  254. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  255. 0002000611436F6C6C6973696F6E4D616E616765723102010200}
  256. end
  257. object GLSphereEllipsoid1: TGLSphere
  258. Position.Coordinates = {000080BF00000000000000C00000803F}
  259. Scale.Coordinates = {9A99193F0000803F0000803F00000000}
  260. Radius = 0.500000000000000000
  261. BehavioursData = {
  262. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  263. 0002000611436F6C6C6973696F6E4D616E616765723102020200}
  264. end
  265. object GLSphereEllipsoid2: TGLSphere
  266. Position.Coordinates = {0000000000000000000000C00000803F}
  267. Scale.Coordinates = {CDCC4C3FCDCCCC3F3333333F00000000}
  268. Radius = 0.300000011920929000
  269. BehavioursData = {
  270. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  271. 0002000611436F6C6C6973696F6E4D616E616765723102020200}
  272. end
  273. object GLCube1: TGLCube
  274. Position.Coordinates = {0000803F000080BF000000000000803F}
  275. Scale.Coordinates = {3333333F3333B33F0000803F00000000}
  276. BehavioursData = {
  277. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  278. 0002000611436F6C6C6973696F6E4D616E616765723102030200}
  279. CubeSize = {0000803F0000803F6666A63F}
  280. end
  281. end
  282. object GLCamera1: TGLCamera
  283. DepthOfView = 100.000000000000000000
  284. FocalLength = 50.000000000000000000
  285. end
  286. object GLCamera3: TGLCamera
  287. DepthOfView = 100.000000000000000000
  288. FocalLength = 50.000000000000000000
  289. end
  290. end
  291. object Timer1: TTimer
  292. Interval = 100
  293. OnTimer = Timer1Timer
  294. Left = 464
  295. Top = 8
  296. end
  297. object CollisionManager1: TGLCollisionManager
  298. OnCollision = CollisionManager1Collision
  299. Left = 192
  300. Top = 80
  301. end
  302. end