From 6ef1fa4618e08426b874529619a66adbd3d1fcf0 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 12:07:59 +0100 Subject: unslug ja: move --- .../api/vrdisplay/cancelanimationframe/index.html | 104 +++++++++++++ files/ja/web/api/vrdisplay/capabilities/index.html | 62 ++++++++ files/ja/web/api/vrdisplay/depthfar/index.html | 99 +++++++++++++ files/ja/web/api/vrdisplay/depthnear/index.html | 99 +++++++++++++ files/ja/web/api/vrdisplay/displayid/index.html | 58 ++++++++ .../web/api/vrdisplay/geteyeparameters/index.html | 104 +++++++++++++ .../web/api/vrdisplay/getimmediatepose/index.html | 101 +++++++++++++ files/ja/web/api/vrdisplay/getlayers/index.html | 53 +++++++ files/ja/web/api/vrdisplay/getpose/index.html | 101 +++++++++++++ files/ja/web/api/vrdisplay/index.html | 129 ++++++++++++++++ files/ja/web/api/vrdisplay/isconnected/index.html | 97 ++++++++++++ files/ja/web/api/vrdisplay/ispresenting/index.html | 97 ++++++++++++ .../api/vrdisplay/requestanimationframe/index.html | 109 ++++++++++++++ .../ja/web/api/vrdisplay/requestpresent/index.html | 162 +++++++++++++++++++++ files/ja/web/api/vrdisplay/resetpose/index.html | 105 +++++++++++++ .../web/api/vrdisplay/stageparameters/index.html | 49 +++++++ files/ja/web/api/vrdisplay/submitframe/index.html | 106 ++++++++++++++ 17 files changed, 1635 insertions(+) create mode 100644 files/ja/web/api/vrdisplay/cancelanimationframe/index.html create mode 100644 files/ja/web/api/vrdisplay/capabilities/index.html create mode 100644 files/ja/web/api/vrdisplay/depthfar/index.html create mode 100644 files/ja/web/api/vrdisplay/depthnear/index.html create mode 100644 files/ja/web/api/vrdisplay/displayid/index.html create mode 100644 files/ja/web/api/vrdisplay/geteyeparameters/index.html create mode 100644 files/ja/web/api/vrdisplay/getimmediatepose/index.html create mode 100644 files/ja/web/api/vrdisplay/getlayers/index.html create mode 100644 files/ja/web/api/vrdisplay/getpose/index.html create mode 100644 files/ja/web/api/vrdisplay/index.html create mode 100644 files/ja/web/api/vrdisplay/isconnected/index.html create mode 100644 files/ja/web/api/vrdisplay/ispresenting/index.html create mode 100644 files/ja/web/api/vrdisplay/requestanimationframe/index.html create mode 100644 files/ja/web/api/vrdisplay/requestpresent/index.html create mode 100644 files/ja/web/api/vrdisplay/resetpose/index.html create mode 100644 files/ja/web/api/vrdisplay/stageparameters/index.html create mode 100644 files/ja/web/api/vrdisplay/submitframe/index.html (limited to 'files/ja/web/api/vrdisplay') diff --git a/files/ja/web/api/vrdisplay/cancelanimationframe/index.html b/files/ja/web/api/vrdisplay/cancelanimationframe/index.html new file mode 100644 index 0000000000..51d0f31164 --- /dev/null +++ b/files/ja/web/api/vrdisplay/cancelanimationframe/index.html @@ -0,0 +1,104 @@ +--- +title: VRDisplay.cancelAnimationFrame() +slug: Web/API/VRDevice/cancelAnimationFrame +translation_of: Web/API/VRDisplay/cancelAnimationFrame +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの cancelAnimationFrame() メソッドは, {{domxref("Window.cancelAnimationFrame")}} の特別な実装で, {{domxref("VRDisplay.requestAnimationFrame()")}} で登録したコールバックを登録解除します.

+ +

シンタックス

+ +
vrDisplayInstance.cancelAnimationFrame(handle);
+
+ +

パラメータ

+ +
+
handle
+
登録解除したいハンドルを与えます.ハンドルは {{domxref("VRDisplay.requestAnimationFrame()")}} を呼出した時に戻り値として取得できます.
+
+ +

戻り値

+ +

void.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-cancelanimationframe', 'cancelAnimationFrame()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/capabilities/index.html b/files/ja/web/api/vrdisplay/capabilities/index.html new file mode 100644 index 0000000000..8aa2d49549 --- /dev/null +++ b/files/ja/web/api/vrdisplay/capabilities/index.html @@ -0,0 +1,62 @@ +--- +title: VRDisplay.capabilities +slug: Web/API/VRDevice/capabilities +tags: + - API + - Experimental + - Property + - Reference + - VR + - VRDisplay + - Virtual Reality + - WebVR + - capabilities +translation_of: Web/API/VRDisplay/capabilities +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの capabilities 読取専用プロパティは,VRDisplay の様々な利用可能な機能を示す {{domxref("VRDisplayCapabilities")}} オブジェクトを返します。

+ +

構文

+ +
var myCapabilities = vrDisplayInstance.capabilities;
+ +

+ +

{{domxref("VRDisplayCapabilities")}} オブジェクト。

+ +

+ +

{{page("/Web/API/VRDisplayCapabilities", "Examples")}}

+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-capabilities', 'capabilities')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{Compat("api.VRDisplay.capabilities")}}

+ +
+ +
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/depthfar/index.html b/files/ja/web/api/vrdisplay/depthfar/index.html new file mode 100644 index 0000000000..dc1c8a44e2 --- /dev/null +++ b/files/ja/web/api/vrdisplay/depthfar/index.html @@ -0,0 +1,99 @@ +--- +title: VRDisplay.depthFar +slug: Web/API/VRDevice/depthFar +translation_of: Web/API/VRDisplay/depthFar +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの depthFar プロパティは,eye view frustum(ビューフラスタム;つまりシーンの可視領域の境界) のfar平面を定義しているz-depthの取得と設定を行います.

+ +

シンタックス

+ +
var mydepthFar = vrDisplayInstance.depthFar;
+
+vrDisplayInstance.depthFar = 7500.0;
+
+ +

+ +

z-depth をメートル単位で表すdouble値; 初期値は 10000.0 です.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-depthfar', 'depthFar')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/depthnear/index.html b/files/ja/web/api/vrdisplay/depthnear/index.html new file mode 100644 index 0000000000..bbb4e9f739 --- /dev/null +++ b/files/ja/web/api/vrdisplay/depthnear/index.html @@ -0,0 +1,99 @@ +--- +title: VRDisplay.depthNear +slug: Web/API/VRDevice/depthNear +translation_of: Web/API/VRDisplay/depthNear +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの depthNear プロパティは, eye view frustum(ビューフラスタム;つまりシーンの可視領域の境界) のnear平面を定義しているz-depthの取得と設定を行います.

+ +

シンタックス

+ +
var mydepthNear = vrDisplayInstance.depthNear;
+
+vrDisplayInstance.depthNear = 1.0;
+
+ +

+ +

z-depth をメートル単位で表すdouble値; 初期値は 0.01 です.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-depthnear', 'depthNear')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/displayid/index.html b/files/ja/web/api/vrdisplay/displayid/index.html new file mode 100644 index 0000000000..8b1dd9b244 --- /dev/null +++ b/files/ja/web/api/vrdisplay/displayid/index.html @@ -0,0 +1,58 @@ +--- +title: VRDisplay.displayId +slug: Web/API/VRDevice/displayId +tags: + - API + - Experimental + - Property + - Reference + - VR + - VRDisplay + - Virtual Reality + - WebVR + - displayId +translation_of: Web/API/VRDisplay/displayId +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの displayId 読み取り専用プロパティは、この特定の VRDisplay の識別子を返します。これは、 Gamepad API の関連付けポイントとしても使用されます( {{domxref("Gamepad.displayId")}} を参照)。

+ +

構文

+ +
var myDisplayID = vrDisplayInstance.displayId;
+ +

+ +

特定の VRDisplay のIDを表す番号。

+ +

+ +

{{page("/Web/API/VRDisplayCapabilities", "Examples")}}

+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('WebVR 1.1', '#dom-vrdisplay-displayid', 'displayId')}}{{Spec2('WebVR 1.1')}}初回定義
+ +

ブラウザー実装状況

+ +

{{Compat("api.VRDisplay.displayId")}}

+ +

関連項目

+ + diff --git a/files/ja/web/api/vrdisplay/geteyeparameters/index.html b/files/ja/web/api/vrdisplay/geteyeparameters/index.html new file mode 100644 index 0000000000..1f7240d523 --- /dev/null +++ b/files/ja/web/api/vrdisplay/geteyeparameters/index.html @@ -0,0 +1,104 @@ +--- +title: VRDisplay.getEyeParameters() +slug: Web/API/VRDevice/getEyeParameters +translation_of: Web/API/VRDisplay/getEyeParameters +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの getEyeParameters() メソッドは,指定下側の眼のeyeパラメータを持っている {{domxref("VREyeParameters")}} オブジェクトを返します.

+ +

シンタックス

+ +
var myEyeParameters = vrDisplayInstance.getEyeParameters(whichEye);
+
+ +

パラメータ

+ +
+
whichEye
+
取得したい側のeyeパラメータの眼を表す {{domxref("DOMString")}} です.指定できる値は (VREye enum で定義されている) leftright です.
+
+ +

戻り値

+ +

 {{domxref("VREyeParameters")}} オブジェクトか,VRコンテンツを表示できない場合(例えば {{domxref("VRDisplayCapabilities.canPresent")}} が false を返す場合)は null です.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-geteyeparameters', 'getEyeParameters()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/getimmediatepose/index.html b/files/ja/web/api/vrdisplay/getimmediatepose/index.html new file mode 100644 index 0000000000..c0a11c9363 --- /dev/null +++ b/files/ja/web/api/vrdisplay/getimmediatepose/index.html @@ -0,0 +1,101 @@ +--- +title: VRDisplay.getImmediatePose() +slug: Web/API/VRDevice/getImmediatePose +translation_of: Web/API/VRDisplay/getImmediatePose +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの getImmediatePose() メソッドは,予測が適用されていない状態の VRDisplay の現在のポーズを決める  {{domxref("VRPose")}} オブジェクトを返します.

+ +

シンタックス

+ +
var myImmediatePose = vrDisplayInstance.getImmediatePose();
+
+ +

パラメータ

+ +

なし.

+ +

戻り値

+ +

{{domxref("VRPose")}} オブジェクト.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-getimmediatepose', 'getImmediatePose()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/getlayers/index.html b/files/ja/web/api/vrdisplay/getlayers/index.html new file mode 100644 index 0000000000..01062a2e52 --- /dev/null +++ b/files/ja/web/api/vrdisplay/getlayers/index.html @@ -0,0 +1,53 @@ +--- +title: VRDisplay.getLayers() +slug: Web/API/VRDevice/getLayers +translation_of: Web/API/VRDisplay/getLayers +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの getLayers() メソッドは,VRDisplay で現在表示されているレイヤを返します.

+ +

シンタックス

+ +
var myLayers = vrDisplayInstance.getLayers();
+
+ +

パラメータ

+ +

なし.

+ +

戻り値

+ +

{{domxref("VRLayer")}} オブジェクトの配列.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-getlayers', 'getLayers()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{Compat("api.VRDisplay.getLayers")}}

+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/getpose/index.html b/files/ja/web/api/vrdisplay/getpose/index.html new file mode 100644 index 0000000000..d0457edd10 --- /dev/null +++ b/files/ja/web/api/vrdisplay/getpose/index.html @@ -0,0 +1,101 @@ +--- +title: VRDisplay.getPose() +slug: Web/API/VRDevice/getPose +translation_of: Web/API/VRDisplay/getPose +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの getPose() メソッドは,現在のフレームが実際に描画される時点の未来の VRDisplay の予測ポーズを決める {{domxref("VRPose")}} オブジェクトを返します.

+ +

シンタックス

+ +
var myPose = vrDisplayInstance.getPose();
+
+ +

パラメータ

+ +

なし.

+ +

戻り値

+ +

{{domxref("VRPose")}} オブジェクト.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-getpose', 'getPose()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/index.html b/files/ja/web/api/vrdisplay/index.html new file mode 100644 index 0000000000..7bf154bccf --- /dev/null +++ b/files/ja/web/api/vrdisplay/index.html @@ -0,0 +1,129 @@ +--- +title: VRDisplay +slug: Web/API/VRDevice +tags: + - API + - DOM + - Experimental + - Interface + - Media + - Reference + - VR + - VRDisplay + - Virtual Reality + - WebVR +translation_of: Web/API/VRDisplay +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

WebVR API の VRDisplay インターフェイスは,このAPIがサポートしているVRデバイスを現します.VRDisplayにはデバイスIDやデスクリプションのような汎用的な情報が含まれていて,VRシーンの表示を開始するためのメソッドや,目のパラメータやディスプレイの備える機能の取得,その他の重要な機能を含んでいます。

+ +

{{domxref("Navigator.getVRDisplays()")}} を呼び出すことで,すべての接続されているVRのデバイスの配列が返されます。

+ +

プロパティ

+ +
+
{{domxref("VRDisplay.capabilities")}} {{readonlyInline}}
+
VRDisplayの備える機能を示す {{domxref("VRDisplayCapabilities")}} オブジェクトを返します.
+
{{domxref("VRDisplay.depthFar")}}
+
eye view frustum(ビューフラスタム;つまりシーンの可視領域の境界) のfar平面を定義しているz-depthの取得と設定を行います.
+
{{domxref("VRDisplay.depthNear")}}
+
eye view frustum(ビューフラスタム;つまりシーンの可視領域の境界) のnear平面を定義しているz-depthの取得と設定を行います.
+
{{domxref("VRDisplay.displayId")}} {{readonlyInline}}
+
このVRDisplay固有のIDを返します.このIDはGamepad API (参照 {{domxref("Gamepad.displayId")}}) の関連付けのために使用されます.
+
{{domxref("VRDisplay.displayName")}} {{readonlyInline}}
+
VRDisplayを識別するための人間が読める形式の名前を返します.
+
{{domxref("VRDisplay.isConnected")}} {{readonlyInline}}
+
VRDisplayがコンピュータに接続されているか否かを示す {{domxref("Boolean")}} を返します.
+
{{domxref("VRDisplay.isPresenting")}} {{readonlyInline}}
+
VRDisplayが現在コンテンツを表示中であるか否かを示す {{domxref("Boolean")}} を返します.
+
{{domxref("VRDisplay.stageParameters")}} {{readonlyInline}}
+
VRDisplayがルームスケール体験をサポートしている場合に,ルームスケールパラメータを含んだ {{domxref("VRStageParameters")}} オブジェクトを返します.
+
+ +

メソッド

+ +
+
{{domxref("VRDisplay.getEyeParameters()")}}
+
指定した側の眼のパラメータを含む {{domxref("VREyeParameters")}} オブジェクトを返します.
+
{{domxref("VRDisplay.getLayers()")}}
+
VRDisplay に表示中のレイヤーを返します.
+
{{domxref("VRDisplay.getPose()")}}
+
現在のフレームが実際に描画される時点の未来の VRDisplay の予測ポーズを決める {{domxref("VRPose")}} オブジェクトを返します.
+
{{domxref("VRDisplay.getImmediatePose()")}}
+
(予測なしの)VRDisplay のポーズを決める {{domxref("VRPose")}} オブジェクトを返します.
+
{{domxref("VRDisplay.resetPose()")}}
+
現在の {{domxref("VRPose.position")}} と {{domxref("VRPose.orientation")}} を"原点/ゼロ"位置の値として扱うように,VRDisplay のポーズをリセットします.
+
{{domxref("VRDisplay.cancelAnimationFrame()")}}
+
{{domxref("Window.cancelAnimationFrame")}} の特別な実装で,{{domxref("VRDisplay.requestAnimationFrame()")}} を未登録状態にすることをコールバック可能にしています.
+
{{domxref("VRDisplay.requestAnimationFrame()")}}
+
{{domxref("Window.requestAnimationFrame")}} の特別な実装で,VRDisplayの新しいフレームが描画される際に毎回呼出されるコールバック関数を持っています.
+
{{domxref("VRDisplay.requestPresent()")}}
+
VRDisplay へのシーン描画を開始します.
+
{{domxref("VRDisplay.exitPresent()")}}
+
VRDisplay のシーン描画を停止します.
+
{{domxref("VRDisplay.submitFrame()")}}
+
{{domxref("VRLayer")}} の現在の状態をキャプチャし,VRDisplay 上にそれを表示します.
+
+

非推奨のメソッド

+
+
{{domxref("VRDisplay.getPose()")}} {{deprecated_inline}}
+
Returns a {{domxref("VRPose")}} object defining the future predicted pose of the VRDisplay as it will be when the current frame is actually presented. This method is deprecated — instead, you should use {{domxref("VRDisplay.getFrameData()")}}, which also provides a {{domxref("VRPose")}} object.
+
+

廃止されたメソッド

+
+
{{domxref("VRDisplay.getImmediatePose()")}} {{obsolete_inline}}
+
Returns a {{domxref("VRPose")}} object defining the current pose of the VRDisplay, with no prediction applied. This is no longer needed, and has been removed from the spec.
+
{{domxref("VRDisplay.hardwareUnitId")}} {{obsolete_inline}}
+
Returns a {{domxref("DOMString")}} defining the shared ID of the display, and any other devices that are part of that hardware set (e.g. controllers). This is no longer needed, and has been removed from the spec. Displays now use {{domxref("VRDisplay.displayId")}}, and corresponsing controllers will now return the same ID under {{domxref("Gamepad.displayId")}}.
+
+ +

+ +
if(navigator.getVRDisplays) {
+  console.log('WebVR 1.1 supported');
+  // Then get the displays attached to the computer
+  navigator.getVRDisplays().then(function(displays) {
+    // If a display is available, use it to present the scene
+    if(displays.length > 0) {
+      vrDisplay = displays[0];
+      // Now we have our VRDisplay object and can do what we want with it
+    }
+  });
+}
+ +
+

Note: この完全なコードは raw-webgl-example で確認できます。

+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('WebVR', '#interface-vrdisplay', 'VRDisplay')}}{{Spec2('WebVR')}}初回定義
+ +

ブラウザー実装状況

+ +

{{Compat("api.VRDisplay")}}

+ + + +
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/isconnected/index.html b/files/ja/web/api/vrdisplay/isconnected/index.html new file mode 100644 index 0000000000..c8739dc720 --- /dev/null +++ b/files/ja/web/api/vrdisplay/isconnected/index.html @@ -0,0 +1,97 @@ +--- +title: VRdisplay.isConnected +slug: Web/API/VRDevice/isConnected +translation_of: Web/API/VRDisplay/isConnected +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの isConnected 読取専用プロパティは, VRDisplay がコンピュータに接続されているかどうかを示す {{domxref("Boolean")}} を返します.

+ +

シンタックス

+ +
var isItConnected = vrDisplayInstance.isConnected;
+
+ +

+ +

{{domxref("Boolean")}}; true の場合はディスプレイが接続されていることを意味します;  それ以外は false.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-isconnected', 'isConnected')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/ispresenting/index.html b/files/ja/web/api/vrdisplay/ispresenting/index.html new file mode 100644 index 0000000000..4fe6132069 --- /dev/null +++ b/files/ja/web/api/vrdisplay/ispresenting/index.html @@ -0,0 +1,97 @@ +--- +title: VRDisplay.isPresenting +slug: Web/API/VRDevice/isPresenting +translation_of: Web/API/VRDisplay/isPresenting +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの isPresenting 読取専用プロパティは, VRDisplay が現在コンテンツを表示中かどうかを示します.

+ +

シンタックス

+ +
var isItPresenting = vrDisplayInstance.isPresenting;
+
+ +

+ +

{{domxref("Boolean")}}; true の場合はそのディスプレイが表示中であることを意味します;  false は表示されていないことを意味します.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-ispresenting', 'isPresenting')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/requestanimationframe/index.html b/files/ja/web/api/vrdisplay/requestanimationframe/index.html new file mode 100644 index 0000000000..0865966016 --- /dev/null +++ b/files/ja/web/api/vrdisplay/requestanimationframe/index.html @@ -0,0 +1,109 @@ +--- +title: VRDisplay.requestAnimationFrame() +slug: Web/API/VRDevice/requestAnimationFrame +translation_of: Web/API/VRDisplay/requestAnimationFrame +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの requestAnimationFrame() メソッドは,{{domxref("Window.requestAnimationFrame")}} の特別な実装です.このメソッドは VRDisplay がレンダリングされている間,新しいフレーム毎に呼出されるコールバック関数を持ちます:

+ + + +

シンタックス

+ +
var handle = vrDisplayInstance.requestAnimationFrame(callback);
+
+ +

パラメータ

+ +
+
callback
+
描画されている VRDisplay の新しいフレーム描画の度に呼出されるコールバック関数.
+
+ +

戻り値

+ +

requestAnimationFrame()呼出しのハンドルを表す long値.この値は,コールバックを登録解除するために {{domxref("VRDisplay.cancelAnimationFrame()")}} 呼出しへ渡すのに使えます.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-requestanimationframe', 'requestAnimationFrame()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/requestpresent/index.html b/files/ja/web/api/vrdisplay/requestpresent/index.html new file mode 100644 index 0000000000..3429a3e6a8 --- /dev/null +++ b/files/ja/web/api/vrdisplay/requestpresent/index.html @@ -0,0 +1,162 @@ +--- +title: VRDisplay.requestPresent() +slug: Web/API/VRDevice/requestPresent +tags: + - API + - Experimental +translation_of: Web/API/VRDisplay/requestPresent +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの requestPresent() メソッドは,VRDisplay へのシーン表示を開始します.

+ +

シンタックス

+ +
vrDisplayInstance.requestPresent(layers).then(function() {
+  // Do something after the presentation has begun
+});
+
+ +

パラメータ

+ +
+
layers
+
表示したいシーンを表す {{domxref("VRLayer")}} オブジェクトの配列.なお現時点では,指定できるのは最小0要素,最大1要素です.
+
+ +

戻り値

+ +

表示が開始されたかを解決するpromise.

+ +
+

注記: {{domxref("VRDisplayCapabilities.canPresent")}} が false,あるいは VRLayer 配列数が {{domxref("VRDisplayCapabilities.maxLayers")}} レイヤより多い場合, promiseはリジェクトされます.

+
+ +
+

注記:   requestPresent() を呼出した時にVRDisplay が表示中の場合,VRDisplay は表示する VRLayer 配列を更新します.VRDisplayが表示中で requestPresent() がリジェクトされたら,VRDisplay は表示を終了します.

+
+ +

+ +
if(navigator.getVRDisplays) {
+  console.log('WebVR 1.1 supported');
+  // Then get the displays attached to the computer
+  navigator.getVRDisplays().then(function(displays) {
+    // If a display is available, use it to present the scene
+    if(displays.length > 0) {
+      vrDisplay = displays[0];
+      console.log('Display found');
+      // Starting the presentation when the button is clicked: It can only be called in response to a user gesture
+      btn.addEventListener('click', function() {
+        if(btn.textContent === 'Start VR display') {
+          vrDisplay.requestPresent([{ source: canvas }]).then(function() {
+            console.log('Presenting to WebVR display');
+
+            // Set the canvas size to the size of the vrDisplay viewport
+
+            var leftEye = vrDisplay.getEyeParameters('left');
+            var rightEye = vrDisplay.getEyeParameters('right');
+
+            canvas.width = Math.max(leftEye.renderWidth, rightEye.renderWidth) * 2;
+            canvas.height = Math.max(leftEye.renderHeight, rightEye.renderHeight);
+
+            // stop the normal presentation, and start the vr presentation
+            window.cancelAnimationFrame(normalSceneFrame);
+            drawVRScene();
+
+            btn.textContent = 'Exit VR display';
+          });
+        } else {
+          vrDisplay.exitPresent();
+          console.log('Stopped presenting to WebVR display');
+
+          btn.textContent = 'Start VR display';
+
+          // Stop the VR presentation, and start the normal presentation
+          vrDisplay.cancelAnimationFrame(vrSceneFrame);
+          drawScene();
+        }
+      });
+    }
+  });
+}
+ +
+

Note: You can see this complete code at raw-webgl-example.

+
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-requestpresent', 'requestPresent()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/resetpose/index.html b/files/ja/web/api/vrdisplay/resetpose/index.html new file mode 100644 index 0000000000..ae067cf0db --- /dev/null +++ b/files/ja/web/api/vrdisplay/resetpose/index.html @@ -0,0 +1,105 @@ +--- +title: VRDevice.resetPose() +slug: Web/API/VRDevice/resetPose +translation_of: Web/API/VRDisplay/resetPose +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの resetPose() メソッドは,VRDisplay のポーズをリセットして,現在の {{domxref("VRPose.position")}} と {{domxref("VRPose.orientation")}} を "原点/ゼロ位置" の値として扱います.

+ +

resetPost() を呼出した後は, {{domxref("VRDisplay.getPose()")}}/{{domxref("VRDisplay.getImmediatePose()")}}  から返された未来予測ポーズは,resetPose() が最後に呼び出された時点からの相対的な VRDisplay の位置になります.また,resetPose() が最後に呼び出された時点のVRディスプレイのヨー(yaw)を前方として扱います.

+ +

重力の方向に対して決まるので,resetPose() が呼び出されたとしてもVRDisplayのレポートするロール(roll)とピッチ(pitch)は変更されません.resetPose() の呼出しによって {{domxref("VRStageParameters.sittingToStandingTransform")}} 行列が変化する場合があります.

+ +

シンタックス

+ +
vrDisplayInstance.resetPose();
+
+ +

パラメータ

+ +

なし.

+ +

戻り値

+ +

void.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-resetpose', 'resetPose()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/stageparameters/index.html b/files/ja/web/api/vrdisplay/stageparameters/index.html new file mode 100644 index 0000000000..dcd10d86b6 --- /dev/null +++ b/files/ja/web/api/vrdisplay/stageparameters/index.html @@ -0,0 +1,49 @@ +--- +title: VRDisplay.stageParameters +slug: Web/API/VRDevice/stageParameters +translation_of: Web/API/VRDisplay/stageParameters +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの stageParameters 読取専用プロパティは, VRDisplay がルームスケール体験をサポートしている場合に,ルームスケールパラメータを持つ {{domxref("VRStageParameters")}} オブジェクトを返します. 

+ +

シンタックス

+ +
var myStageParameters = vrDisplayInstance.stageParameters;
+
+ +

+ +

VRDisplay のルームスケールパラメータを持つ {{domxref("VRStageParameters")}} オブジェクトです.ルームスケール体験をサポートしていないVRDisplayでは null です.

+ +

+ +

{{page("/Web/API/VRStageParameters", "Examples")}}

+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR 1.1', '#dom-vrdisplay-stageparameters', 'stageParameters')}}{{Spec2('WebVR 1.1')}}Initial definition
+ +

ブラウザの互換性

+ +

{{Compat("api.VRDisplay.stageParameters")}}

+ +

参照

+ + diff --git a/files/ja/web/api/vrdisplay/submitframe/index.html b/files/ja/web/api/vrdisplay/submitframe/index.html new file mode 100644 index 0000000000..28eea26910 --- /dev/null +++ b/files/ja/web/api/vrdisplay/submitframe/index.html @@ -0,0 +1,106 @@ +--- +title: VRDisplay.submitFrame() +slug: Web/API/VRDevice/submitFrame +translation_of: Web/API/VRDisplay/submitFrame +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

{{domxref("VRDisplay")}} インターフェイスの submitFrame() メソッドは,VRDisplay 内に現在表示中の {{domxref("VRLayer")}} の現在の状態をキャプチャします.

+ +

オプションとして,{{domxref("VRLayer")}} をレンダリングするのに使うポーズの表す {{domxref("VRPose")}} を提供することもできます.この{{domxref("VRLayer")}} は,ブラウザが遅延を低減するためにレイヤコンテンツの操作に使われます. VRPose を与えない場合は, {{domxref("VRDisplay.getPose()")}} で最後に返されたポーズが代わりに使われます.

+ +

シンタックス

+ +
vrDisplayInstance.submitFrame(pose);
+
+ +

引数

+ +
+
pose {{optional_inline()}}
+
A {{domxref("VRPose")}} オブジェクト.これはレイヤ操作や遅延の低減のためにブラウザによって使用されます.
+
+ +

戻り値

+ +

Void.

+ +

+ +
TBD.
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR', '#dom-vrdisplay-submitframe', 'submitFrame()')}}{{Spec2('WebVR')}}Initial definition
+ +

ブラウザの互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

参照

+ + -- cgit v1.2.3-54-g00ecf