Unit1.dfm 3.6 KB

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