aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/xrboundedreferencespace
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/xrboundedreferencespace
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/xrboundedreferencespace')
-rw-r--r--files/ja/web/api/xrboundedreferencespace/boundsgeometry/index.html85
-rw-r--r--files/ja/web/api/xrboundedreferencespace/index.html70
2 files changed, 155 insertions, 0 deletions
diff --git a/files/ja/web/api/xrboundedreferencespace/boundsgeometry/index.html b/files/ja/web/api/xrboundedreferencespace/boundsgeometry/index.html
new file mode 100644
index 0000000000..ac3f9331bf
--- /dev/null
+++ b/files/ja/web/api/xrboundedreferencespace/boundsgeometry/index.html
@@ -0,0 +1,85 @@
+---
+title: XRBoundedReferenceSpace.boundsGeometry
+slug: Web/API/XRBoundedReferenceSpace/boundsGeometry
+tags:
+ - API
+ - AR
+ - Boundary
+ - Edges
+ - Geometry
+ - Property
+ - Read-only
+ - Reality
+ - Reference
+ - VR
+ - Virtual
+ - WebXR
+ - WebXR API
+ - WebXR Device API
+ - XR
+ - XRBoundedReferenceSpace
+ - augmented
+ - boundsGeometry
+ - space
+translation_of: Web/API/XRBoundedReferenceSpace/boundsGeometry
+---
+<p>{{APIRef("WebXR Device API")}}{{secureContext_header}}{{draft}}</p>
+
+<p><span class="seoSummary">{{domxref("XRBoundedReferenceSpace")}} の <strong><code>boundsGeometry</code></strong> 読み取り専用プロパティは、ビューアーが移動できる多角形の内部を構成する点を指定する {{domxref("DOMPointReadOnly")}} オブジェクトの配列です。</span> 各点は2次元の点として扱われ、地面レベルに配置する必要があります(つまり、その <code>y</code> 座標は 0 である必要があります)。</p>
+
+<p>この境界は通常、XR ハードウェアを制御するソフトウェアを使用してユーザーが構成します。 これは、使用したい空間の境界を歩くか、XR 入力デバイスを使用して部屋の形状を描くことによって行うことができます。 理論的には、より高度なシステムでは、センサーやその他の検出方法を使用して、専用の XR ルーム(それを慎重にホロデッキとは呼んでいないことに気づきましたか?)の境界を決定する場合があります。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox notranslate"><em>bounds</em> = <em>xrReferenceSpace</em>.boundsGeometry;</pre>
+
+<h3 id="Value" name="Value">値</h3>
+
+<p><code>boundsGeometry</code> プロパティは、{{domxref("DOMPointReadOnly")}} オブジェクトの配列であり、各オブジェクトは、ビューアーが留まる必要がある多角形(polygon、ポリゴン)内の1つの頂点を定義します。 各点は床レベルにあり、<code>y</code> 座標の値は 0 に設定されている必要があります。 さらに、<code>w</code> の値は、配列内のすべての点で常に 1 です。 さらに、点は時計回りにリストする<em>必要があります</em>。</p>
+
+<p><code>boundsGeometry</code> の各エントリーは、部屋のネイティブの境界ジオメトリー点のリストのエントリーと同じであり、原点オフセットの逆数が事前に乗算されています。 言い換えると、境界は使用可能な空間の物理的な制限であり、参照空間の境界点がすべて <code>XRBoundedReferenceSpace</code> の実際の原点に対して定義されるようにシフトされます。</p>
+
+<h2 id="Usage_notes" name="Usage_notes">使用上の注意</h2>
+
+<p>制限付き参照空間の原点は常に地面レベルにあり、<code>y</code> は 0 です。 原則として、基盤となるプラットフォームまたは XR ハードウェアに応じたものとして、<code>x</code> と <code>z</code> の原点は空間の中心またはその近くにあり、向きは論理的前方を向いています。</p>
+
+<p>部屋の境界がフィンガープリントの目的で使用されるリスクを減らすために、<code>boundsGeometry</code> 配列の各点は、丸められるか、ある程度調整される場合があります。 仕様では、ブラウザーが点を最も近い5センチメートルにシフトすることを推奨しています(ハードウェアの物理的な制限の外側に出ないようにしながら)。</p>
+
+<h3 id="Boundary_size" name="Boundary_size">境界の大きさ</h3>
+
+<p><code>XRBoundedReferenceSpace</code> は、非常に大きな制限付き領域に使用することを目的としていません。 それよりも、ネイティブの原点から任意の方向に使用可能な移動空間が約 15 メートル以下の1部屋の空間に使用することを目的としています。 とはいえ、境界は2次元でのみ定義されるため、境界は無限に上向きに拡張されます。</p>
+
+<p>複数部屋の空間を作成する必要がある場合、または非常に大きい空間やさまざまな床レベルが必要な場合は、代わりに無制限の {{domxref("XRReferenceSpace")}} を使用し、必要に応じて独自に境界を適用する必要があります。</p>
+
+<h3 id="Boundary_shape" name="Boundary_shape">境界の形状</h3>
+
+<p><code>boundsGeometry</code> によって定義される形状は、正方形のように単純な場合もあれば、必要に応じて複雑な場合もあり、凹部や凸部を含む可能性があります。 ただし、<code>XRBoundedReferenceSpace</code> を使用して、床レベルが不均一な空間を表すことはできません。 地面は<em>常に</em> <code>y</code> = 0 にあります。</p>
+
+<p>ユーザーが <code>boundsGeometry</code> で指定された境界から出る必要があるようにコンテンツを設計していないことが重要です。 ただし、ユーザーの周囲が定義された境界を超えるように移動することを許可している場合、コンテンツはその状況を適切に処理できる必要があり、これはエラー状態とは見なされません。</p>
+
+<p>一部のサンプルは、メッシュまたはその他の形状をレンダリングしてユーザーに境界を表示しますが、実際のアプリケーションでは、これを行うべきではありません。 ただし、ブラウザーは、リスク(移動し続けると、物理的な壁にぶつかる恐れなど)についてユーザーに適切な警告を提供する必要があります。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('WebXR','#dom-xrboundedreferencespace-boundsgeometry','boundsGeometry')}}</td>
+ <td>{{Spec2('WebXR')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("api.XRBoundedReferenceSpace.boundsGeometry")}}</p>
diff --git a/files/ja/web/api/xrboundedreferencespace/index.html b/files/ja/web/api/xrboundedreferencespace/index.html
new file mode 100644
index 0000000000..f4cddb2955
--- /dev/null
+++ b/files/ja/web/api/xrboundedreferencespace/index.html
@@ -0,0 +1,70 @@
+---
+title: XRBoundedReferenceSpace
+slug: Web/API/XRBoundedReferenceSpace
+tags:
+ - API
+ - AR
+ - Boundary
+ - Interface
+ - Reference
+ - VR
+ - Virtual
+ - WebXR
+ - WebXR API
+ - WebXR Device API
+ - XR
+ - XRBoundedReferenceSpace
+ - augmented
+translation_of: Web/API/XRBoundedReferenceSpace
+---
+<p>{{APIRef("WebXR Device API")}}{{secureContext_header}}</p>
+
+<p>.<span class="seoSummary"><a href="/ja/docs/Web/API/WebXR_Device_API">WebXR Device API</a> の <strong><code>XRBoundedReferenceSpace</code></strong> インターフェイスは、事前設定された境界を持つ仮想世界の<a href="/ja/docs/Web/API/WebXR_Device_API/Geometry">参照空間</a>を記述します。 これは {{domxref("XRReferenceSpace")}} を拡張して、ビューアーの位置の周囲の本質的に制限のない空間を記述します。</span> これらの境界は、点の配列を使用して定義し、各点は、ユーザーがその中で移動することができる多角形の頂点を定義します。</p>
+
+<p>これは通常、XR システムがユーザーの開始位置から限られた距離内でユーザーの物理的な移動を追跡できる場合に使用します。 指定された境界は、実際には、WebXR サイトまたはアプリケーションがユーザーが現実世界の壁やその他の障害物と衝突するのを防ぐために、ユーザーがいる部屋の形状とサイズを表す場合があります。 少なくとも、境界は、XR デバイスがユーザーの移動を追跡できる領域を示します。 制限付き空間の仕組みとその有用性の詳細については、<a href="/ja/docs/Web/API/WebXR_Device_API/Bounded_reference_spaces">制限付き参照空間の使用</a>の記事を参照してください。</p>
+
+<h2 id="Properties" name="Properties">プロパティ</h2>
+
+<p><em>{{domxref("XRReferenceSpace")}} のプロパティに加えて、<code>XRBoundedReferenceSpace</code> には次のものが含まれています。</em></p>
+
+<dl>
+ <dt>{{domxref("XRBoundedReferenceSpace.boundsGeometry", "boundsGeometry")}} {{ReadOnlyInline}}</dt>
+ <dd>{{domxref("DOMPointReadOnly")}} オブジェクトの配列。 各オブジェクトは、ユーザーが留まる必要がある境界を定義する多角形の頂点を定義します。 これらの頂点は、ビューアーの位置の周囲を<em>時計回り</em>に移動するように並べ替える<em>必要があります</em>。</dd>
+</dl>
+
+<h2 id="Methods" name="Methods">メソッド</h2>
+
+<p><em><code>XRBoundedReferenceSpace</code> は、その親インターフェイスである {{domxref("XRReferenceSpace")}} のメソッドを継承します。 それ以上のメソッドはありません。</em></p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('WebXR','#xrboundedreferencespace-interface','XRBoundedReferenceSpace')}}</td>
+ <td>{{Spec2('WebXR')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("api.XRBoundedReferenceSpace")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li><a href="/ja/docs/Web/API/WebXR_Device_API">WebXR Device API</a></li>
+ <li><a href="/ja/docs/Web/API/WebXR_Device_API/Geometry">WebXR の幾何学と参照空間</a></li>
+ <li><a href="/ja/docs/Web/API/WebXR_Device_API/Cameras">視点とビューアー: WebXR でのカメラのシミュレーション</a></li>
+</ul>