WBuffer.htm 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>WBuffer enable</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. enable - True to enable w-buffering rendering, False to disable. <br />
  13. <br />
  14. The default WBuffer mode is True for 16-bit colour mode, False for 24-bit and 32-bit.
  15. </td>
  16. </tr>
  17. </table>
  18. <h1>Description</h1>
  19. <table>
  20. <tr>
  21. <td>
  22. Enables or disables w-buffering. <br />
  23. <br />
  24. W-buffering is a technique used to draw 3D object in order of their depth - i.e. the ones furthest away from the camera first, then the ones closer to the camera, and so on. <br />
  25. <br />
  26. Normally, z-buffering is used to perform such a technique, but a z-buffer can be slightly inaccurate in 16-bit colour mode, for which the level of precision is less than in 24-bit or 32-bit colour modes. This means that in some situations, objects will appear to overlap each other when they shouldn't and so on. <br />
  27. <br />
  28. To compensate for this, you can use w-buffering. This is a slightly more accurate technique than z-buffering, although it may be less compatible on some set-ups than z-buffering.
  29. </td>
  30. </tr>
  31. </table>
  32. <br>
  33. <a target=_top href=../index.htm>Index</a><br>
  34. <br>
  35. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=WBuffer&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  36. </html>