fHFPickD.dfm 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. object FormHFPick: TFormHFPick
  2. Left = 133
  3. Top = 72
  4. Caption = 'Heightfield Pick'
  5. ClientHeight = 449
  6. ClientWidth = 577
  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. OnCreate = FormCreate
  14. TextHeight = 13
  15. object GLSceneViewer: TGLSceneViewer
  16. Left = 0
  17. Top = 0
  18. Width = 475
  19. Height = 449
  20. Camera = GLCamera1
  21. Buffer.BackgroundColor = clTeal
  22. FieldOfView = 154.888351440429700000
  23. PenAsTouch = False
  24. Align = alClient
  25. OnMouseDown = GLSceneViewerMouseDown
  26. OnMouseMove = GLSceneViewerMouseMove
  27. TabOrder = 0
  28. end
  29. object Panel1: TPanel
  30. Left = 475
  31. Top = 0
  32. Width = 102
  33. Height = 449
  34. Align = alRight
  35. BevelOuter = bvLowered
  36. Font.Charset = DEFAULT_CHARSET
  37. Font.Color = clWindowText
  38. Font.Height = -11
  39. Font.Name = 'Arial'
  40. Font.Style = []
  41. ParentFont = False
  42. TabOrder = 1
  43. object Label1: TLabel
  44. Left = 8
  45. Top = 8
  46. Width = 82
  47. Height = 18
  48. Caption = 'Last Coord.'
  49. Font.Charset = DEFAULT_CHARSET
  50. Font.Color = clWindowText
  51. Font.Height = -15
  52. Font.Name = 'Arial'
  53. Font.Style = [fsBold]
  54. ParentFont = False
  55. end
  56. object Label2: TLabel
  57. Left = 24
  58. Top = 32
  59. Width = 32
  60. Height = 18
  61. Caption = 'X Y'
  62. Font.Charset = DEFAULT_CHARSET
  63. Font.Color = clWindowText
  64. Font.Height = -15
  65. Font.Name = 'Arial'
  66. Font.Style = [fsBold]
  67. ParentFont = False
  68. end
  69. object Label3: TLabel
  70. Left = 8
  71. Top = 168
  72. Width = 89
  73. Height = 145
  74. AutoSize = False
  75. Caption =
  76. 'This demo uses a crude method for heightfield picking based on t' +
  77. 'he Z-Buffer. This method can be easily adapted for a variety of ' +
  78. 'objects and 2.5D problems.'
  79. WordWrap = True
  80. end
  81. object RBPaint: TRadioButton
  82. Left = 16
  83. Top = 80
  84. Width = 49
  85. Height = 17
  86. Caption = 'Paint'
  87. Checked = True
  88. TabOrder = 0
  89. TabStop = True
  90. end
  91. object RadioButton2: TRadioButton
  92. Left = 16
  93. Top = 112
  94. Width = 57
  95. Height = 17
  96. Caption = 'Rotate'
  97. TabOrder = 1
  98. end
  99. end
  100. object GLScene1: TGLScene
  101. Left = 40
  102. Top = 32
  103. object GLLightSource1: TGLLightSource
  104. Ambient.Color = {9A99193E9A99193E9A99193E0000803F}
  105. ConstAttenuation = 1.000000000000000000
  106. Diffuse.Color = {9A99593F9A99593F9A99593F0000803F}
  107. Position.Coordinates = {0000E040000070410000A0400000803F}
  108. SpotCutOff = 180.000000000000000000
  109. end
  110. object GLCamera1: TGLCamera
  111. DepthOfView = 100.000000000000000000
  112. FocalLength = 50.000000000000000000
  113. TargetObject = HeightField
  114. Position.Coordinates = {0000A04000008040000040400000803F}
  115. end
  116. object HeightField: TGLHeightField
  117. Direction.Coordinates = {000000000000803F0000000000000000}
  118. Scale.Coordinates = {9A99193F9A99193F0000003F00000000}
  119. Up.Coordinates = {0000000000000000000080BF00000000}
  120. XSamplingScale.Min = -5.500000000000000000
  121. XSamplingScale.Max = 5.500000000000000000
  122. XSamplingScale.Step = 0.200000002980232200
  123. YSamplingScale.Min = -5.500000000000000000
  124. YSamplingScale.Max = 5.500000000000000000
  125. YSamplingScale.Step = 0.200000002980232200
  126. ColorMode = hfcmAmbientAndDiffuse
  127. OnGetHeight = HeightFieldGetHeight
  128. end
  129. end
  130. end