Unit1.dfm 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Dynamic Cube Map'
  5. ClientHeight = 329
  6. ClientWidth = 561
  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. Position = poScreenCenter
  15. WindowState = wsMaximized
  16. OnMouseWheel = FormMouseWheel
  17. PixelsPerInch = 96
  18. TextHeight = 13
  19. object GLSceneViewer1: TGLSceneViewer
  20. Left = 0
  21. Top = 25
  22. Width = 561
  23. Height = 304
  24. Camera = GLCamera1
  25. BeforeRender = GLSceneViewer1BeforeRender
  26. Buffer.BackgroundColor = clBlack
  27. FieldOfView = 143.583038330078100000
  28. Align = alClient
  29. OnMouseDown = GLSceneViewer1MouseDown
  30. OnMouseMove = GLSceneViewer1MouseMove
  31. TabOrder = 0
  32. end
  33. object Panel1: TPanel
  34. Left = 0
  35. Top = 0
  36. Width = 561
  37. Height = 25
  38. Align = alTop
  39. BevelOuter = bvLowered
  40. TabOrder = 1
  41. object LabelFPS: TLabel
  42. Left = 288
  43. Top = 8
  44. Width = 18
  45. Height = 13
  46. Caption = 'FPS'
  47. end
  48. object CBDynamic: TCheckBox
  49. Left = 8
  50. Top = 4
  51. Width = 273
  52. Height = 17
  53. Caption = 'Animate and dynamically generate cube map'
  54. Checked = True
  55. State = cbChecked
  56. TabOrder = 0
  57. end
  58. end
  59. object GLScene1: TGLScene
  60. Left = 8
  61. Top = 32
  62. object SkyDome1: TGLSkyDome
  63. Direction.Coordinates = {000000000000803F0000000000000000}
  64. Up.Coordinates = {E9DC72BF000000009BE8A13E00000000}
  65. Bands = <
  66. item
  67. StartColor.Color = {0000803F0000803F0000803F0000803F}
  68. StopAngle = 15.000000000000000000
  69. Slices = 6
  70. end
  71. item
  72. StartAngle = 15.000000000000000000
  73. StopAngle = 90.000000000000000000
  74. StopColor.Color = {5C8F023F5C8F023F0000803F0000803F}
  75. Slices = 6
  76. Stacks = 4
  77. end
  78. item
  79. StartAngle = -90.000000000000000000
  80. StartColor.Color = {000000001283803E000000000000803F}
  81. StopAngle = -5.000000000000000000
  82. StopColor.Color = {000000001283003F000000000000803F}
  83. Slices = 6
  84. end
  85. item
  86. StartAngle = -5.000000000000000000
  87. StartColor.Color = {000000001283003F000000000000803F}
  88. StopColor.Color = {0000803F0000803F0000803F0000803F}
  89. Slices = 6
  90. end>
  91. Stars = <>
  92. end
  93. object GLLightSource1: TGLLightSource
  94. ConstAttenuation = 1.000000000000000000
  95. Diffuse.Color = {E5D0623FE5D0623FE5D0623F0000803F}
  96. Position.Coordinates = {0000484200004842000048420000803F}
  97. SpotCutOff = 180.000000000000000000
  98. end
  99. object Torus1: TGLTorus
  100. Direction.Coordinates = {000000000000803F0000000000000000}
  101. Up.Coordinates = {0000803F000000000000000000000000}
  102. MajorRadius = 5.000000000000000000
  103. MinorRadius = 0.300000011920929000
  104. Rings = 32
  105. Sides = 12
  106. StopAngle = 360.000000000000000000
  107. Parts = [toSides, toStartDisk, toStopDisk]
  108. object Cylinder1: TGLCylinder
  109. Material.FrontProperties.Emission.Color = {00000000000000000000803F0000803F}
  110. Direction.Coordinates = {000000800000803F0000000000000000}
  111. Position.Coordinates = {0000A04000000000000000000000803F}
  112. Up.Coordinates = {00000000000000000000803F00000000}
  113. BottomRadius = 0.300000011920929000
  114. Height = 5.000000000000000000
  115. Slices = 12
  116. Stacks = 1
  117. TopRadius = 0.300000011920929000
  118. end
  119. object Sphere1: TGLSphere
  120. Material.FrontProperties.Diffuse.Color = {1283003F0000803F000000000000803F}
  121. Material.FrontProperties.Emission.Color = {00000000448B0C3FBA490C3E0000803F}
  122. Position.Coordinates = {0000A0C000000000000000000000803F}
  123. Radius = 1.000000000000000000
  124. Slices = 12
  125. Stacks = 12
  126. end
  127. object Cube1: TGLCube
  128. Material.FrontProperties.Diffuse.Color = {AE47613EAE47613EAE47613E0000803F}
  129. Material.FrontProperties.Emission.Color = {1283003F00000000000000000000803F}
  130. Position.Coordinates = {000000000000A040000000000000803F}
  131. CubeSize = {0000C03F0000C03F0000C03F}
  132. end
  133. end
  134. object Teapot1: TGLTeapot
  135. Material.Texture.ImageClassName = 'TGLCubeMapImage'
  136. Material.Texture.MinFilter = miLinear
  137. Material.Texture.TextureMode = tmReplace
  138. Material.Texture.MappingMode = tmmCubeMapReflection
  139. Direction.Coordinates = {F404353F00000000F204353F00000000}
  140. Scale.Coordinates = {00000041000000410000004100000000}
  141. Visible = False
  142. object CubeMapCamera: TGLCamera
  143. DepthOfView = 50.000000000000000000
  144. FocalLength = 25.000000000000000000
  145. TargetObject = Sphere1
  146. end
  147. end
  148. object GLCamera1: TGLCamera
  149. DepthOfView = 100.000000000000000000
  150. FocalLength = 50.000000000000000000
  151. TargetObject = Torus1
  152. Position.Coordinates = {0000204100008040000000410000803F}
  153. end
  154. end
  155. object GLMemoryViewer1: TGLMemoryViewer
  156. Camera = CubeMapCamera
  157. Width = 128
  158. Height = 128
  159. Buffer.BackgroundColor = clMaroon
  160. Left = 40
  161. Top = 32
  162. end
  163. object GLCadencer1: TGLCadencer
  164. Scene = GLScene1
  165. MaxDeltaTime = 20.000000000000000000
  166. OnProgress = GLCadencer1Progress
  167. Left = 8
  168. Top = 64
  169. end
  170. object Timer1: TTimer
  171. OnTimer = Timer1Timer
  172. Left = 40
  173. Top = 64
  174. end
  175. end