fdTransparency.dfm 5.6 KB

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