fTransparency.dfm 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. object Form1: TForm1
  2. Left = 200
  3. Top = 110
  4. Caption = 'Transparency'
  5. ClientHeight = 323
  6. ClientWidth = 503
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'MS Sans Serif'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. PixelsPerInch = 96
  15. TextHeight = 13
  16. object GLSceneViewer1: TGLSceneViewer
  17. Left = 0
  18. Top = 0
  19. Width = 304
  20. Height = 323
  21. Camera = GLCamera1
  22. Buffer.BackgroundColor = 13224393
  23. FieldOfView = 136.918045043945300000
  24. PenAsTouch = False
  25. Align = alClient
  26. TabOrder = 0
  27. end
  28. object Panel1: TPanel
  29. Left = 304
  30. Top = 0
  31. Width = 199
  32. Height = 323
  33. Align = alRight
  34. Caption = ' '
  35. TabOrder = 1
  36. object Label1: TLabel
  37. Left = 13
  38. Top = 8
  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 = 21
  49. Top = 136
  50. Width = 94
  51. Height = 13
  52. Caption = 'Central objects :'
  53. Font.Charset = DEFAULT_CHARSET
  54. Font.Color = clWindowText
  55. Font.Height = -11
  56. Font.Name = 'MS Sans Serif'
  57. Font.Style = [fsBold]
  58. ParentFont = False
  59. end
  60. object Label3: TLabel
  61. Left = 24
  62. Top = 240
  63. Width = 101
  64. Height = 13
  65. Caption = 'Orbiting spheres :'
  66. Font.Charset = DEFAULT_CHARSET
  67. Font.Color = clWindowText
  68. Font.Height = -11
  69. Font.Name = 'MS Sans Serif'
  70. Font.Style = [fsBold]
  71. ParentFont = False
  72. end
  73. object RBSTC: TRadioButton
  74. Left = 51
  75. Top = 160
  76. Width = 137
  77. Height = 17
  78. Caption = 'Sphere, Torus, Cone'
  79. TabOrder = 0
  80. OnClick = RBSTCClick
  81. end
  82. object RBTSC: TRadioButton
  83. Left = 51
  84. Top = 184
  85. Width = 137
  86. Height = 17
  87. Caption = 'Torus, Sphere, Cone'
  88. TabOrder = 1
  89. OnClick = RBTSCClick
  90. end
  91. object RBTCS: TRadioButton
  92. Left = 51
  93. Top = 208
  94. Width = 137
  95. Height = 17
  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 = 53
  104. Top = 264
  105. Width = 105
  106. Height = 17
  107. Caption = 'Additive blending'
  108. TabOrder = 3
  109. OnClick = CBAdditiveClick
  110. end
  111. object CBSorting: TCheckBox
  112. Left = 53
  113. Top = 288
  114. Width = 97
  115. Height = 17
  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 = 24
  125. Top = 16
  126. object GLLightSource1: TGLLightSource
  127. ConstAttenuation = 1.000000000000000000
  128. Position.Coordinates = {0000A041000048420000F0410000803F}
  129. SpotCutOff = 180.000000000000000000
  130. end
  131. object BaseDummyCube: TGLDummyCube
  132. ObjectsSorting = osRenderFarthestFirst
  133. CubeSize = 1.000000000000000000
  134. object OrbitingSphere1: TGLSphere
  135. Material.FrontProperties.Diffuse.Color = {0000803F0000803F000000000000003F}
  136. Material.BlendingMode = bmTransparency
  137. Position.Coordinates = {0000004000000000000000000000803F}
  138. Radius = 0.500000000000000000
  139. end
  140. object OrbitingSphere2: TGLSphere
  141. Material.FrontProperties.Diffuse.Color = {0000803F0000803F000000000000003F}
  142. Material.BlendingMode = bmTransparency
  143. Position.Coordinates = {000000C000000000000000000000803F}
  144. Radius = 0.500000000000000000
  145. end
  146. object DCCentral: TGLDummyCube
  147. ObjectsSorting = osNone
  148. CubeSize = 1.000000000000000000
  149. object Torus1: TGLTorus
  150. Material.FrontProperties.Diffuse.Color = {CDCC4C3EA1A0203EFAF9793F0000803F}
  151. Material.FrontProperties.Emission.Color = {CDCCCC3DCDCCCC3DCDCCCC3D0000803F}
  152. Direction.Coordinates = {000000000000803F2EBD3BB300000000}
  153. Up.Coordinates = {000000002EBD3BB3000080BF00000000}
  154. MajorRadius = 0.800000011920929000
  155. MinorRadius = 0.100000001490116100
  156. StopAngle = 360.000000000000000000
  157. Parts = [toSides, toStartDisk, toStopDisk]
  158. end
  159. object Cone1: TGLCone
  160. Material.FrontProperties.Diffuse.Color = {FBFA7A3FA5A4243EF9F8F83D0000803F}
  161. Material.FrontProperties.Emission.Color = {E5E4E43EC1C0403CE1E0603D0000803F}
  162. Position.Coordinates = {000000009A99993E000000000000803F}
  163. BottomRadius = 0.300000011920929000
  164. Height = 2.000000000000000000
  165. end
  166. object CentralSphere: TGLSphere
  167. Material.FrontProperties.Diffuse.Color = {D3D2523FCCCB4B3FFFFE7E3F9A99193F}
  168. Material.FrontProperties.Emission.Color = {CDCC4C3ECDCC4C3ECDCC4C3E0000803F}
  169. Material.BlendingMode = bmTransparency
  170. Radius = 0.600000023841857900
  171. end
  172. end
  173. end
  174. object GLCamera1: TGLCamera
  175. DepthOfView = 100.000000000000000000
  176. FocalLength = 60.000000000000000000
  177. TargetObject = DCCentral
  178. Position.Coordinates = {0000A04000002040000020400000803F}
  179. Left = 240
  180. Top = 144
  181. end
  182. end
  183. object GLCadencer1: TGLCadencer
  184. Scene = GLScene1
  185. OnProgress = GLCadencer1Progress
  186. Left = 96
  187. Top = 16
  188. end
  189. end