2
0

fcHFPick.dfm 3.4 KB

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