fTransparencyAdv.dfm 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. object Form1: TForm1
  2. Left = 304
  3. Top = 111
  4. Caption = 'Transparency Advanced'
  5. ClientHeight = 442
  6. ClientWidth = 682
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. Position = poScreenCenter
  14. OnCreate = FormCreate
  15. OnResize = FormResize
  16. PixelsPerInch = 96
  17. TextHeight = 13
  18. object GLSceneViewer1: TGLSceneViewer
  19. Left = 0
  20. Top = 0
  21. Width = 682
  22. Height = 442
  23. Camera = GLCamera1
  24. AfterRender = GLSceneViewer1AfterRender
  25. Buffer.BackgroundColor = 10776320
  26. Buffer.ContextOptions = [roDoubleBuffer, roRenderToWindow, roDestinationAlpha, roNoColorBufferClear, roNoDepthBufferClear]
  27. Buffer.FaceCulling = False
  28. Buffer.ShadeModel = smFlat
  29. FieldOfView = 154.503555297851600000
  30. PenAsTouch = False
  31. Align = alClient
  32. TabOrder = 0
  33. end
  34. object GLScene1: TGLScene
  35. ObjectsSorting = osNone
  36. Left = 24
  37. Top = 24
  38. object GLCamera1: TGLCamera
  39. DepthOfView = 100.000000000000000000
  40. FocalLength = 50.000000000000000000
  41. TargetObject = ObjectContainer
  42. Position.Coordinates = {CDCCCC3F00000000CDCCCC3F0000803F}
  43. end
  44. object GLLightSource1: TGLLightSource
  45. ConstAttenuation = 1.000000000000000000
  46. Position.Coordinates = {000040400000A0400000803F0000803F}
  47. SpotCutOff = 180.000000000000000000
  48. end
  49. object ClearFrameBuffer: TGLDirectOpenGL
  50. UseBuildList = False
  51. OnRender = ClearFrameBufferRender
  52. Blend = False
  53. end
  54. object ObjectContainer: TGLDummyCube
  55. CubeSize = 1.000000000000000000
  56. object Surround: TGLDummyCube
  57. CubeSize = 1.000000000000000000
  58. CamInvarianceMode = cimPosition
  59. object GLCylinder1: TGLCylinder
  60. Material.MaterialLibrary = GLMaterialLibrary1
  61. Material.LibMaterialName = 'Surround'
  62. Position.Coordinates = {00000000000000C0000000000000803F}
  63. Normals = nsNone
  64. BottomRadius = 4.000000000000000000
  65. Height = 8.000000000000000000
  66. Slices = 32
  67. TopRadius = 4.000000000000000000
  68. Parts = [cySides]
  69. end
  70. end
  71. object GLDisk1: TGLDisk
  72. Direction.Coordinates = {000000000000803F0000000000000000}
  73. Position.Coordinates = {00000000666666BF000000000000803F}
  74. Up.Coordinates = {0000000000000000000080BF00000000}
  75. Loops = 6
  76. OuterRadius = 2.000000000000000000
  77. Slices = 32
  78. SweepAngle = 360.000000000000000000
  79. end
  80. object GLMesh1: TGLMesh
  81. Material.MaterialLibrary = GLMaterialLibrary1
  82. Material.LibMaterialName = 'Transparent'
  83. Direction.Coordinates = {FFFF7F3F000000002CBD3BB300000000}
  84. Position.Coordinates = {000080BE000000000000003F0000803F}
  85. Scale.Coordinates = {00000040000000400000004000000000}
  86. TurnAngle = 90.000000000000000000
  87. Up.Coordinates = {00000000FFFF7F3F0000000000000000}
  88. Mode = mmTriangleStrip
  89. VertexMode = vmVNC
  90. end
  91. object GLMesh2: TGLMesh
  92. Material.MaterialLibrary = GLMaterialLibrary1
  93. Material.LibMaterialName = 'Transparent'
  94. Direction.Coordinates = {D7B35D3F00000000010000BF00000000}
  95. Position.Coordinates = {000080BF000000000000003F0000803F}
  96. Scale.Coordinates = {00000040000000400000004000000000}
  97. TurnAngle = 120.000000000000000000
  98. Up.Coordinates = {00000000FFFF7F3F0000000000000000}
  99. Mode = mmTriangleStrip
  100. VertexMode = vmVNC
  101. end
  102. object GLMesh3: TGLMesh
  103. Material.MaterialLibrary = GLMaterialLibrary1
  104. Material.LibMaterialName = 'Transparent'
  105. Direction.Coordinates = {D7B35DBF00000000010000BF00000000}
  106. Position.Coordinates = {0000003F000000000000003F0000803F}
  107. Scale.Coordinates = {00000040000000400000004000000000}
  108. TurnAngle = -120.000000000000000000
  109. Up.Coordinates = {00000000FFFF7F3F0000000000000000}
  110. Mode = mmTriangleStrip
  111. VertexMode = vmVNC
  112. end
  113. object GLMesh4: TGLMesh
  114. Material.MaterialLibrary = GLMaterialLibrary1
  115. Material.LibMaterialName = 'Transparent'
  116. Direction.Coordinates = {6E61D83E00000000C903683F00000000}
  117. Position.Coordinates = {0000803E000000009A9999BE0000803F}
  118. Scale.Coordinates = {00000040000000400000004000000000}
  119. TurnAngle = 25.000000000000000000
  120. Mode = mmTriangleStrip
  121. VertexMode = vmVNC
  122. end
  123. object GLMesh5: TGLMesh
  124. Material.MaterialLibrary = GLMaterialLibrary1
  125. Material.LibMaterialName = 'Transparent'
  126. Direction.Coordinates = {010080A7000000000000803F00000000}
  127. Position.Coordinates = {0000003F00000000000080BF0000803F}
  128. Scale.Coordinates = {00000040000000400000004000000000}
  129. Mode = mmTriangleStrip
  130. VertexMode = vmVNC
  131. end
  132. end
  133. object LayeredFrameBuffer: TGLFBORenderer
  134. Active = False
  135. ColorTextureName = 'ColorLayers'
  136. DepthTextureName = 'DepthLayers'
  137. MaterialLibrary = GLMaterialLibrary1
  138. BackgroundColor.Color = {00000000DFDEDE3EA5A4243F0000803F}
  139. ClearOptions = []
  140. Camera = GLCamera1
  141. RootObject = CustomRederer
  142. TargetVisibility = tvFBOOnly
  143. EnabledRenderBuffers = []
  144. PostGenerateMipmap = False
  145. end
  146. object CustomRederer: TGLDirectOpenGL
  147. Visible = False
  148. UseBuildList = False
  149. OnRender = CustomRedererRender
  150. Blend = False
  151. end
  152. object ScreenQuad: TGLHUDSprite
  153. Material.MaterialLibrary = GLMaterialLibrary1
  154. Material.LibMaterialName = 'Final'
  155. Visible = False
  156. Rotation = 0.000000000000000000
  157. end
  158. object GLHUDText1: TGLHUDText
  159. Position.Coordinates = {0000A0400000A040000000000000803F}
  160. BitmapFont = GLWindowsBitmapFont1
  161. Text = '1'
  162. Rotation = 0.000000000000000000
  163. end
  164. end
  165. object GLCadencer1: TGLCadencer
  166. Scene = GLScene1
  167. OnProgress = GLCadencer1Progress
  168. Left = 24
  169. Top = 80
  170. end
  171. object GLMaterialLibrary1: TGLMaterialLibrary
  172. Materials = <
  173. item
  174. Name = 'Transparent'
  175. Tag = 0
  176. Material.DepthProperties.DepthCompareFunction = cfAlways
  177. Material.BlendingMode = bmCustom
  178. Material.MaterialOptions = [moNoLighting]
  179. end
  180. item
  181. Name = 'Surround'
  182. Tag = 0
  183. Material.MaterialOptions = [moNoLighting]
  184. Material.Texture.ImageClassName = 'TGLCompositeImage'
  185. Material.Texture.Image.Width = 256
  186. Material.Texture.Image.Height = 256
  187. Material.Texture.Image.Depth = 0
  188. Material.Texture.TextureWrap = twSeparate
  189. Material.Texture.TextureWrapS = twMirrorRepeat
  190. Material.Texture.TextureWrapR = twMirrorRepeat
  191. Material.Texture.Disabled = False
  192. TextureScale.Coordinates = {000080400000803F0000803F00000000}
  193. end
  194. item
  195. Name = 'ColorLayers'
  196. Tag = 0
  197. Material.Texture.ImageClassName = 'TGLBlankImage'
  198. Material.Texture.Image.Depth = 6
  199. Material.Texture.Image.ColorFormat = 6408
  200. Material.Texture.MagFilter = maNearest
  201. Material.Texture.MinFilter = miNearest
  202. Material.Texture.Disabled = False
  203. end
  204. item
  205. Name = 'DepthLayers'
  206. Tag = 0
  207. Material.Texture.ImageClassName = 'TGLBlankImage'
  208. Material.Texture.Image.Depth = 6
  209. Material.Texture.Image.ColorFormat = 6408
  210. Material.Texture.MagFilter = maNearest
  211. Material.Texture.MinFilter = miNearest
  212. Material.Texture.TextureFormat = tfExtended
  213. Material.Texture.TextureFormatEx = tfDEPTH_COMPONENT24
  214. Material.Texture.Disabled = False
  215. end
  216. item
  217. Name = 'Final'
  218. Tag = 0
  219. Shader = GLSLShader1
  220. end>
  221. Left = 104
  222. Top = 24
  223. end
  224. object GLSLShader1: TGLSLShader
  225. Enabled = False
  226. OnApply = GLSLShader1Apply
  227. ShaderStyle = ssReplace
  228. Left = 104
  229. Top = 80
  230. end
  231. object GLSimpleNavigation1: TGLSimpleNavigation
  232. Form = Owner
  233. GLSceneViewer = GLSceneViewer1
  234. ZoomSpeed = 1.000000000000000000
  235. FormCaption = 'Transparency Advanced - %FPS'
  236. Options = [snoShowFPS]
  237. KeyCombinations = <
  238. item
  239. ShiftState = [ssLeft]
  240. Action = snaMoveAroundTarget
  241. end
  242. item
  243. ShiftState = [ssRight]
  244. Action = snaMoveAroundTarget
  245. end>
  246. Left = 24
  247. Top = 136
  248. end
  249. object GLWindowsBitmapFont1: TGLWindowsBitmapFont
  250. Font.Charset = DEFAULT_CHARSET
  251. Font.Color = clWhite
  252. Font.Height = -11
  253. Font.Name = 'Tahoma'
  254. Font.Style = []
  255. Left = 24
  256. Top = 192
  257. end
  258. end