WebXRDepthSensing.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>WebXRDepthSensing - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <h1 translate="no">WebXRDepthSensing</h1>
  13. <section>
  14. <header>
  15. <div class="class-description"><p>A XR module that manages the access to the Depth Sensing API.</p></div>
  16. </header>
  17. <article>
  18. <div class="container-overview">
  19. <h2>Constructor</h2>
  20. <h3 class="name name-method" id="WebXRDepthSensing" translate="no">new <a href="#WebXRDepthSensing">WebXRDepthSensing</a><span class="signature">()</span> </h3>
  21. <div class="method">
  22. <div class="description">
  23. <p>Constructs a new depth sensing module.</p>
  24. </div>
  25. </div>
  26. </div>
  27. <h2 class="subsection-title">Properties</h2>
  28. <div class="member">
  29. <h3 class="name" id="depthFar" translate="no">.<a href="#depthFar">depthFar</a><span class="type-signature"> : number</span> </h3>
  30. <div class="description">
  31. <p>The depth near far.</p>
  32. </div>
  33. </div>
  34. <div class="member">
  35. <h3 class="name" id="depthNear" translate="no">.<a href="#depthNear">depthNear</a><span class="type-signature"> : number</span> </h3>
  36. <div class="description">
  37. <p>The depth near value.</p>
  38. </div>
  39. </div>
  40. <div class="member">
  41. <h3 class="name" id="mesh" translate="no">.<a href="#mesh">mesh</a><span class="type-signature"> : <a href="Mesh.html">Mesh</a></span> </h3>
  42. <div class="description">
  43. <p>A plane mesh for visualizing the depth texture.</p>
  44. </div>
  45. </div>
  46. <div class="member">
  47. <h3 class="name" id="texture" translate="no">.<a href="#texture">texture</a><span class="type-signature"> : <a href="ExternalTexture.html">ExternalTexture</a></span> </h3>
  48. <div class="description">
  49. <p>An opaque texture representing the depth of the user's environment.</p>
  50. </div>
  51. </div>
  52. <h2 class="subsection-title">Methods</h2>
  53. <h3 class="name name-method" id="getDepthTexture" translate="no">.<a href="#getDepthTexture">getDepthTexture</a><span class="signature">()</span><span class="type-signature"> : <a href="ExternalTexture.html">ExternalTexture</a></span> </h3>
  54. <div class="method">
  55. <div class="description">
  56. <p>Returns a texture representing the depth of the user's environment.</p>
  57. </div>
  58. <dl class="details">
  59. <dt class="tag-returns"><strong>Returns:</strong> The depth texture.</dt>
  60. </dl>
  61. </div>
  62. <h3 class="name name-method" id="getMesh" translate="no">.<a href="#getMesh">getMesh</a><span class="signature">( cameraXR : <span class="param-type"><a href="ArrayCamera.html">ArrayCamera</a></span> )</span><span class="type-signature"> : <a href="Mesh.html">Mesh</a></span> </h3>
  63. <div class="method">
  64. <div class="description">
  65. <p>Returns a plane mesh that visualizes the depth texture.</p>
  66. </div>
  67. <table class="params">
  68. <tbody>
  69. <tr>
  70. <td class="name">
  71. <strong>cameraXR</strong>
  72. </td>
  73. <td class="description last">
  74. <p>The XR camera.</p>
  75. </td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. <dl class="details">
  80. <dt class="tag-returns"><strong>Returns:</strong> The plane mesh.</dt>
  81. </dl>
  82. </div>
  83. <h3 class="name name-method" id="init" translate="no">.<a href="#init">init</a><span class="signature">( depthData : <span class="param-type">XRWebGLDepthInformation</span>, renderState : <span class="param-type">XRRenderState</span> )</span> </h3>
  84. <div class="method">
  85. <div class="description">
  86. <p>Inits the depth sensing module</p>
  87. </div>
  88. <table class="params">
  89. <tbody>
  90. <tr>
  91. <td class="name">
  92. <strong>depthData</strong>
  93. </td>
  94. <td class="description last">
  95. <p>The XR depth data.</p>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td class="name">
  100. <strong>renderState</strong>
  101. </td>
  102. <td class="description last">
  103. <p>The XR render state.</p>
  104. </td>
  105. </tr>
  106. </tbody>
  107. </table>
  108. </div>
  109. <h3 class="name name-method" id="reset" translate="no">.<a href="#reset">reset</a><span class="signature">()</span> </h3>
  110. <div class="method">
  111. <div class="description">
  112. <p>Resets the module</p>
  113. </div>
  114. </div>
  115. <h2 class="subsection-title">Source</h2>
  116. <p>
  117. <a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/webxr/WebXRDepthSensing.js" translate="no" target="_blank" rel="noopener">src/renderers/webxr/WebXRDepthSensing.js</a>
  118. </p>
  119. </article>
  120. </section>
  121. <script src="../scripts/linenumber.js"></script>
  122. <script src="../scripts/page.js"></script>
  123. </body>
  124. </html>
粤ICP备19079148号