fOctreeRenderC.dfm 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Margins.Left = 5
  5. Margins.Top = 5
  6. Margins.Right = 5
  7. Margins.Bottom = 5
  8. Caption = 'Octree Demo'
  9. ClientHeight = 961
  10. ClientWidth = 1306
  11. Color = clBtnFace
  12. Font.Charset = DEFAULT_CHARSET
  13. Font.Color = clWindowText
  14. Font.Height = -19
  15. Font.Name = 'Tahoma'
  16. Font.Style = []
  17. Position = poScreenCenter
  18. OnCreate = FormCreate
  19. OnDestroy = FormDestroy
  20. PixelsPerInch = 168
  21. TextHeight = 23
  22. object GLSceneViewer1: TGLSceneViewer
  23. Left = 0
  24. Top = 142
  25. Width = 1306
  26. Height = 819
  27. Margins.Left = 5
  28. Margins.Top = 5
  29. Margins.Right = 5
  30. Margins.Bottom = 5
  31. Camera = GLCamera1
  32. Buffer.BackgroundColor = clBackground
  33. Buffer.FaceCulling = False
  34. FieldOfView = 159.242584228515600000
  35. PenAsTouch = False
  36. Align = alClient
  37. TabOrder = 0
  38. end
  39. object Panel1: TPanel
  40. Left = 0
  41. Top = 0
  42. Width = 1306
  43. Height = 142
  44. Margins.Left = 5
  45. Margins.Top = 5
  46. Margins.Right = 5
  47. Margins.Bottom = 5
  48. Align = alTop
  49. TabOrder = 1
  50. DesignSize = (
  51. 1306
  52. 142)
  53. object Label3: TLabel
  54. Left = 28
  55. Top = 14
  56. Width = 124
  57. Height = 23
  58. Margins.Left = 5
  59. Margins.Top = 5
  60. Margins.Right = 5
  61. Margins.Bottom = 5
  62. Caption = 'Leaf Threshold'
  63. end
  64. object Label2: TLabel
  65. Left = 210
  66. Top = 14
  67. Width = 711
  68. Height = 23
  69. Margins.Left = 5
  70. Margins.Top = 5
  71. Margins.Right = 5
  72. Margins.Bottom = 5
  73. Caption =
  74. '(Green = Colliding with other object, Red = inside query box/sph' +
  75. 'ere, Yellow = both)'
  76. end
  77. object LabelCollisions: TLabel
  78. Left = 868
  79. Top = 60
  80. Width = 74
  81. Height = 23
  82. Margins.Left = 5
  83. Margins.Top = 5
  84. Margins.Right = 5
  85. Margins.Bottom = 5
  86. Alignment = taRightJustify
  87. Anchors = [akTop, akRight]
  88. Caption = 'Collisions'
  89. end
  90. object TrackBar_LeafThreshold: TTrackBar
  91. Left = 14
  92. Top = 42
  93. Width = 263
  94. Height = 44
  95. Margins.Left = 5
  96. Margins.Top = 5
  97. Margins.Right = 5
  98. Margins.Bottom = 5
  99. Max = 20
  100. Min = 3
  101. Position = 10
  102. TabOrder = 0
  103. ThumbLength = 35
  104. TickStyle = tsNone
  105. OnChange = TrackBar_LeafThresholdChange
  106. end
  107. object Button_ResetOctreeSize: TButton
  108. Left = 476
  109. Top = 47
  110. Width = 184
  111. Height = 37
  112. Margins.Left = 5
  113. Margins.Top = 5
  114. Margins.Right = 5
  115. Margins.Bottom = 5
  116. Caption = 'Reset Octree Size'
  117. TabOrder = 1
  118. OnClick = Button_ResetOctreeSizeClick
  119. end
  120. end
  121. object GLScene1: TGLScene
  122. Left = 16
  123. Top = 64
  124. object GLDummyCube1: TGLDummyCube
  125. CubeSize = 1.000000000000000000
  126. end
  127. object GLDirectOpenGL1: TGLDirectOpenGL
  128. UseBuildList = False
  129. OnRender = GLDirectOpenGL1Render
  130. Blend = False
  131. end
  132. object GLCube1: TGLCube
  133. Material.MaterialLibrary = GLMaterialLibrary1
  134. Material.LibMaterialName = 'CommonMaterial'
  135. CubeSize = {0000A0400000A04000000041}
  136. end
  137. object GLSphere1: TGLSphere
  138. Material.MaterialLibrary = GLMaterialLibrary1
  139. Material.LibMaterialName = 'CommonMaterial'
  140. Position.Coordinates = {0000C0400000C0400000C0400000803F}
  141. Radius = 2.500000000000000000
  142. end
  143. object GLPlane1: TGLPlane
  144. Material.FrontProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3FCDCC4C3E}
  145. Material.BlendingMode = bmTransparency
  146. Direction.Coordinates = {0000000000000080000080BF00000000}
  147. Position.Coordinates = {0000000000000000000020410000803F}
  148. Up.Coordinates = {6A41323FD9BD373F0000000000000000}
  149. Visible = False
  150. Height = 40.000000000000000000
  151. Width = 40.000000000000000000
  152. end
  153. object GLLines1: TGLLines
  154. Nodes = <>
  155. Options = []
  156. end
  157. object GLCamera1: TGLCamera
  158. DepthOfView = 100.000000000000000000
  159. FocalLength = 75.000000000000000000
  160. TargetObject = GLDummyCube1
  161. Position.Coordinates = {0000404100008040000000410000803F}
  162. object GLLightSource1: TGLLightSource
  163. ConstAttenuation = 1.000000000000000000
  164. SpotCutOff = 180.000000000000000000
  165. end
  166. end
  167. end
  168. object GLCadencer1: TGLCadencer
  169. Scene = GLScene1
  170. OnProgress = GLCadencer1Progress
  171. Left = 16
  172. Top = 120
  173. end
  174. object GLSimpleNavigation1: TGLSimpleNavigation
  175. Form = Owner
  176. GLSceneViewer = GLSceneViewer1
  177. ZoomSpeed = 1.250000000000000000
  178. FormCaption = 'GLScene Octree - %FPS'
  179. KeyCombinations = <
  180. item
  181. ShiftState = [ssLeft, ssRight]
  182. Action = snaZoom
  183. end
  184. item
  185. ShiftState = [ssLeft]
  186. Action = snaMoveAroundTarget
  187. end
  188. item
  189. ShiftState = [ssRight]
  190. Action = snaMoveAroundTarget
  191. end>
  192. Left = 16
  193. Top = 176
  194. end
  195. object GLMaterialLibrary1: TGLMaterialLibrary
  196. Materials = <
  197. item
  198. Name = 'CommonMaterial'
  199. Tag = 0
  200. Material.FrontProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3FCDCCCC3E}
  201. Material.DepthProperties.DepthTest = False
  202. Material.DepthProperties.DepthWrite = False
  203. Material.BlendingMode = bmTransparency
  204. Material.FaceCulling = fcCull
  205. end>
  206. Left = 16
  207. Top = 224
  208. end
  209. end