2
0

Camera.dpr 953 B

12345678910111213141516171819202122232425262728
  1. {: This sample illustrates basic user-driven camera movements.
  2. I'm using the GLScene built-in camera movement methods. The camera object is
  3. a child of its target dummy cube (this means that the camera is translated
  4. when its target is translate, which is good for flyover/scrolling movements).
  5. Movements in this sample are done by moving the mouse with a button
  6. pressed, left button will translate the dummy cube (and the camera),
  7. right button will rotate the camera around the target, shift+right will
  8. rotate the object in camera's axis.
  9. Mouse Wheel allows zooming in/out.
  10. '7', '9' rotate around the X vector (in red, absolute).
  11. '4', '6' rotate around the Y vector (in green, absolute).
  12. '1', '3' rotate around the Z vector (in blue, absolute).
  13. }
  14. program Camera;
  15. uses
  16. Forms,
  17. fCamera in 'fCamera.pas' {FormCamera};
  18. {$R *.RES}
  19. begin
  20. Application.Initialize;
  21. Application.CreateForm(TFormCamera, FormCamera);
  22. Application.Run;
  23. end.