main: work in progress [might break]
This commit is contained in:
parent
0dc2b1f2e4
commit
457935a426
|
@ -300,7 +300,7 @@ This can be done via a JSON <a href="https://en.wikipedia.org/wiki/Sidecar_file"
|
||||||
|
|
||||||
<pre><code class="language-json">{
|
<pre><code class="language-json">{
|
||||||
"#": "#-penguin",
|
"#": "#-penguin",
|
||||||
"aria-description": "this scene shows an chair and a hidden penguin",
|
"aria-description": "description of scene",
|
||||||
"room/chair": {
|
"room/chair": {
|
||||||
href: "#penguin"
|
href: "#penguin"
|
||||||
}
|
}
|
||||||
|
@ -318,6 +318,7 @@ This can be done via a JSON <a href="https://en.wikipedia.org/wiki/Sidecar_file"
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<pre><code class="language-javascript"> scene.userData['#'] = "#chair&penguin"
|
<pre><code class="language-javascript"> scene.userData['#'] = "#chair&penguin"
|
||||||
|
scene.userData['aria-description'] = "description of scene"
|
||||||
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
||||||
|
|
||||||
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
||||||
|
|
|
@ -230,7 +230,7 @@ This can be done via a JSON [sidecar-file](https://en.wikipedia.org/wiki/Sidecar
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"#": "#-penguin",
|
"#": "#-penguin",
|
||||||
"aria-description": "this scene shows an chair and a hidden penguin",
|
"aria-description": "description of scene",
|
||||||
"room/chair": {
|
"room/chair": {
|
||||||
href: "#penguin"
|
href: "#penguin"
|
||||||
}
|
}
|
||||||
|
@ -245,6 +245,7 @@ So when loading `experience.glb` the existence of `experience.json` is detected,
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
scene.userData['#'] = "#chair&penguin"
|
scene.userData['#'] = "#chair&penguin"
|
||||||
|
scene.userData['aria-description'] = "description of scene"
|
||||||
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
||||||
|
|
||||||
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
||||||
|
|
|
@ -376,7 +376,7 @@ Internet-Draft XR Fragments September 2024
|
||||||
|
|
||||||
{
|
{
|
||||||
"#": "#-penguin",
|
"#": "#-penguin",
|
||||||
"aria-description": "this scene shows an chair and a hidden penguin",
|
"aria-description": "description of scene",
|
||||||
"room/chair": {
|
"room/chair": {
|
||||||
href: "#penguin"
|
href: "#penguin"
|
||||||
}
|
}
|
||||||
|
@ -400,6 +400,7 @@ Internet-Draft XR Fragments September 2024
|
||||||
| In THREE.js-code this would boil down to:
|
| In THREE.js-code this would boil down to:
|
||||||
|
|
||||||
scene.userData['#'] = "#chair&penguin"
|
scene.userData['#'] = "#chair&penguin"
|
||||||
|
scene.userData['aria-description'] = "description of scene"
|
||||||
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
||||||
|
|
||||||
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
||||||
|
@ -444,7 +445,6 @@ Internet-Draft XR Fragments September 2024
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
van Kammen Expires 29 March 2025 [Page 8]
|
van Kammen Expires 29 March 2025 [Page 8]
|
||||||
|
|
||||||
Internet-Draft XR Fragments September 2024
|
Internet-Draft XR Fragments September 2024
|
||||||
|
|
|
@ -221,7 +221,7 @@ This can be done via a JSON <eref target="https://en.wikipedia.org/wiki/Sidecar_
|
||||||
|
|
||||||
<sourcecode type="json"><![CDATA[{
|
<sourcecode type="json"><![CDATA[{
|
||||||
"#": "#-penguin",
|
"#": "#-penguin",
|
||||||
"aria-description": "this scene shows an chair and a hidden penguin",
|
"aria-description": "description of scene",
|
||||||
"room/chair": {
|
"room/chair": {
|
||||||
href: "#penguin"
|
href: "#penguin"
|
||||||
}
|
}
|
||||||
|
@ -234,6 +234,7 @@ This can be done via a JSON <eref target="https://en.wikipedia.org/wiki/Sidecar_
|
||||||
<blockquote><t>In THREE.js-code this would boil down to:</t>
|
<blockquote><t>In THREE.js-code this would boil down to:</t>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<sourcecode type="javascript"><![CDATA[ scene.userData['#'] = "#chair&penguin"
|
<sourcecode type="javascript"><![CDATA[ scene.userData['#'] = "#chair&penguin"
|
||||||
|
scene.userData['aria-description'] = "description of scene"
|
||||||
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
||||||
|
|
||||||
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
||||||
|
|
Loading…
Reference in New Issue