FxyD.dpr 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. (* Basic demo for the TGLHeightField and TGLXYZGrid objects.
  2. HeightFields are used to materialize z=f(x, y) surfaces, you can use it to
  3. render anything from math formulas to statistics. Most important properties
  4. of an height field are its sampling scales (X & Y) that determine the extents
  5. and the resolution of the base grid.
  6. The component will then invoke it OnGetHeight event to retrieve Z values for
  7. all of the grid points (values are retrieved only once for each point). Each
  8. point may have an additionnal color and texture coordinate.
  9. Three XYZ grids are used to materialize planes, and have been colored to match
  10. the axis colors. Two controls have been provided to move the XY grid (blue)
  11. up or down, and center or bound-align the XZ and YZ grids.
  12. The heightfield component takes care of all the tessellation, so there is not
  13. much in the code of the unit. Check the advanced "heightfield" sample for
  14. more dynamic uses.
  15. *)
  16. program FxyD;
  17. uses
  18. Forms,
  19. fdFxy in 'fdFxy.pas' {FormFxy};
  20. {$R *.RES}
  21. begin
  22. Application.Initialize;
  23. Application.CreateForm(TFormFxy, FormFxy);
  24. Application.Run;
  25. end.