Unit1.dfm 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. object Form1: TForm1
  2. Left = 192
  3. Top = 126
  4. Caption = 'Transparency'
  5. ClientHeight = 405
  6. ClientWidth = 610
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -12
  11. Font.Name = 'MS Sans Serif'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. Scaled = False
  15. WindowState = wsMaximized
  16. PixelsPerInch = 96
  17. TextHeight = 13
  18. object GLSceneViewer1: TGLSceneViewer
  19. Left = 0
  20. Top = 0
  21. Width = 408
  22. Height = 405
  23. Camera = GLCamera1
  24. Buffer.BackgroundColor = 13224393
  25. FieldOfView = 146.991271972656300000
  26. Align = alClient
  27. TabOrder = 0
  28. end
  29. object Panel1: TPanel
  30. Left = 408
  31. Top = 0
  32. Width = 202
  33. Height = 405
  34. Align = alRight
  35. TabOrder = 1
  36. object Label1: TLabel
  37. Left = 7
  38. Top = 10
  39. Width = 175
  40. Height = 117
  41. Caption =
  42. 'With Transparency and Z-Buffering, '#13#10'ordering your objects is i' +
  43. 'mportant.'#13#10#13#10'In this sample, only the spheres are'#13#10'transparent.'#13 +
  44. #10#13#10'Try the various options and see the'#13#10'differences ordering and' +
  45. ' blending'#13#10'mode make.'
  46. end
  47. object Label2: TLabel
  48. Left = 45
  49. Top = 143
  50. Width = 113
  51. Height = 16
  52. Caption = 'Central objects :'
  53. Font.Charset = DEFAULT_CHARSET
  54. Font.Color = clWindowText
  55. Font.Height = -14
  56. Font.Name = 'MS Sans Serif'
  57. Font.Style = [fsBold]
  58. ParentFont = False
  59. end
  60. object Label3: TLabel
  61. Left = 19
  62. Top = 295
  63. Width = 123
  64. Height = 16
  65. Caption = 'Orbiting spheres :'
  66. Font.Charset = DEFAULT_CHARSET
  67. Font.Color = clWindowText
  68. Font.Height = -14
  69. Font.Name = 'MS Sans Serif'
  70. Font.Style = [fsBold]
  71. ParentFont = False
  72. end
  73. object RBSTC: TRadioButton
  74. Left = 30
  75. Top = 199
  76. Width = 168
  77. Height = 21
  78. Caption = 'Sphere, Torus, Cone'
  79. TabOrder = 0
  80. OnClick = RBSTCClick
  81. end
  82. object RBTSC: TRadioButton
  83. Left = 30
  84. Top = 226
  85. Width = 168
  86. Height = 21
  87. Caption = 'Torus, Sphere, Cone'
  88. TabOrder = 1
  89. OnClick = RBTSCClick
  90. end
  91. object RBTCS: TRadioButton
  92. Left = 30
  93. Top = 253
  94. Width = 168
  95. Height = 21
  96. Caption = 'Torus, Cone, Sphere'
  97. Checked = True
  98. TabOrder = 2
  99. TabStop = True
  100. OnClick = RBTCSClick
  101. end
  102. object CBAdditive: TCheckBox
  103. Left = 37
  104. Top = 327
  105. Width = 129
  106. Height = 21
  107. Caption = 'Additive blending'
  108. TabOrder = 3
  109. OnClick = CBAdditiveClick
  110. end
  111. object CBSorting: TCheckBox
  112. Left = 39
  113. Top = 354
  114. Width = 119
  115. Height = 21
  116. Caption = 'osFarthestFirst'
  117. Checked = True
  118. State = cbChecked
  119. TabOrder = 4
  120. OnClick = CBSortingClick
  121. end
  122. end
  123. object GLScene1: TGLScene
  124. Left = 16
  125. Top = 16
  126. object GLLightSource1: TGLLightSource
  127. ConstAttenuation = 1.000000000000000000
  128. Position.Coordinates = {0000A041000048420000F0410000803F}
  129. SpotCutOff = 180.000000000000000000
  130. end
  131. object GLCamera1: TGLCamera
  132. DepthOfView = 100.000000000000000000
  133. FocalLength = 60.000000000000000000
  134. TargetObject = DCCentral
  135. Position.Coordinates = {0000A04000002040000020400000803F}
  136. Left = 240
  137. Top = 144
  138. end
  139. object BaseDummyCube: TGLDummyCube
  140. ObjectsSorting = osRenderFarthestFirst
  141. CubeSize = 1.000000000000000000
  142. object OrbitingSphere1: TGLSphere
  143. Material.FrontProperties.Diffuse.Color = {0000803F0000803F000000000000003F}
  144. Material.BlendingMode = bmTransparency
  145. Position.Coordinates = {0000004000000000000000000000803F}
  146. Radius = 0.500000000000000000
  147. end
  148. object OrbitingSphere2: TGLSphere
  149. Material.FrontProperties.Diffuse.Color = {0000803F0000803F000000000000003F}
  150. Material.BlendingMode = bmTransparency
  151. Position.Coordinates = {000000C000000000000000000000803F}
  152. Radius = 0.500000000000000000
  153. end
  154. object DCCentral: TGLDummyCube
  155. ObjectsSorting = osNone
  156. CubeSize = 1.000000000000000000
  157. object Torus1: TGLTorus
  158. Material.FrontProperties.Diffuse.Color = {CDCC4C3EA1A0203EFAF9793F0000803F}
  159. Material.FrontProperties.Emission.Color = {CDCCCC3DCDCCCC3DCDCCCC3D0000803F}
  160. Direction.Coordinates = {000000000000803F2EBD3BB300000000}
  161. Up.Coordinates = {000000002EBD3BB3000080BF00000000}
  162. MajorRadius = 0.800000011920929000
  163. MinorRadius = 0.100000001490116100
  164. StopAngle = 360.000000000000000000
  165. Parts = [toSides, toStartDisk, toStopDisk]
  166. end
  167. object Cone1: TGLCone
  168. Material.FrontProperties.Diffuse.Color = {FBFA7A3FA5A4243EF9F8F83D0000803F}
  169. Material.FrontProperties.Emission.Color = {E5E4E43EC1C0403CE1E0603D0000803F}
  170. Position.Coordinates = {000000009A99993E000000000000803F}
  171. BottomRadius = 0.300000011920929000
  172. Height = 2.000000000000000000
  173. end
  174. object CentralSphere: TGLSphere
  175. Material.FrontProperties.Diffuse.Color = {D3D2523FCCCB4B3FFFFE7E3F9A99193F}
  176. Material.FrontProperties.Emission.Color = {CDCC4C3ECDCC4C3ECDCC4C3E0000803F}
  177. Material.BlendingMode = bmTransparency
  178. Radius = 0.600000023841857900
  179. end
  180. end
  181. end
  182. end
  183. object GLCadencer1: TGLCadencer
  184. Scene = GLScene1
  185. OnProgress = GLCadencer1Progress
  186. Left = 16
  187. Top = 48
  188. end
  189. end