home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Homebrewer's Handbook / vr.iso / rend386 / doc / coords.doc < prev    next >
Text File  |  1996-03-19  |  2KB  |  34 lines

  1.  
  2.                       Coordinate Systems in REND386
  3.                    Written by Bernie Roehl, August 1992
  4.  
  5. REND386 uses what's called a "left-handed" coordinate system.  If the X axis
  6. points to your right, and the Y axis points up, then the Z axis points away
  7. from you into the screen.  A horizontal plane extends out in X and Z, and
  8. has a constant Y value.
  9.  
  10. In order to achieve good performance, REND386 uses 32 bit integer
  11. coordinates.  Because of internal precision requirements, you should not use
  12. the full 32 bits; in fact, you should not allow any coordinate value to be
  13. greater than 2^24 (i.e. about 4 million).
  14.  
  15. Rotation angles are specified in floating-point on input, but are stored
  16. internally as 32-bit values scaled values.  Angles are always given in
  17. degrees, not radians.  
  18.  
  19. As mentioned above, we use a left-handed coordinate system.  What this means
  20. is that if you were to wrap your left hand around any of the three axes (X,
  21. Y or Z) with your thumb pointing in the positive direction along that axis,
  22. your fingers would curl in the direction of a positive rotation around that
  23. axis.  Put another way, a positive rotation around X of 90 degrees would
  24. transform the positive Y axis into the positive Z axis (and so on).
  25.  
  26. Note that releases of REND386 prior to late August of 1992 (the second release
  27. of version 4 of the demo) used a slightly different coordinate system; this
  28. has since been corrected.  Exisiting .plg files will not be affected; however,
  29. .fig files that specify rotations may have to be modified and .wld files will
  30. almost certainly have to be.
  31.  
  32. The advantage of the change is that we are now using a system that is
  33. consistent with other graphics packages (such as POV-Ray, for example).
  34.