fTransparencyD.dfm 6.4 KB

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