Projector.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <div class="desc">Projects points between spaces.</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]()</h3>
  14. <div>
  15. todo
  16. </div>
  17. <h2>Properties</h2>
  18. <h2>Methods</h2>
  19. <h3>.projectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]</h3>
  20. <div>
  21. [page:Vector3 vector] — vector to project.<br />
  22. [page:Camera camera] — camera to use in the projection.<br />
  23. </div>
  24. <div>
  25. Projects a vector with the camera. Caution, this method changes 'vector'.
  26. </div>
  27. <h3>.unprojectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]</h3>
  28. <div>
  29. [page:Vector3 vector] — vector to unproject.<br />
  30. [page:Camera camera] — camera to use in the projection.<br />
  31. </div>
  32. <div>
  33. Unprojects a vector with the camera. Caution, this method changes 'vector'.
  34. </div>
  35. <h3>.pickingRay( [page:Vector3 vector], [page:Camera camera] ) [page:Raycaster]</h3>
  36. <div>
  37. Translates a 2D point from NDC (<em>Normalized Device Coordinates</em>) to a [page:Raycaster] that can be used for picking. NDC range from [-1..1] in x (left to right) and [1.0 .. -1.0] in y (top to bottom).
  38. </div>
  39. <h3>.projectScene( [page:Scene scene], [page:Camera camera], [page:Boolean sort] ) [page:Object]</h3>
  40. <div>
  41. [page:Scene scene] — scene to project.<br />
  42. [page:Camera camera] — camera to use in the projection.<br />
  43. [page:Boolean sort] — select whether to sort elements using the <a href="http://en.wikipedia.org/wiki/Painter%27s_algorithm">Painter's algorithm</a>.
  44. </div>
  45. <div>
  46. Transforms a 3D [page:Scene scene] object into 2D render data that can be rendered in a screen with your renderer of choice, projecting and clipping things out according to the used camera.
  47. </div>
  48. <div>
  49. If the <em>scene</em> were a real scene, this method would be the equivalent of taking a picture with the <em>camera</em> (and developing the film would be the next step, using a Renderer).
  50. </div>
  51. <h2>Source</h2>
  52. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  53. </body>
  54. </html>