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">{
|
||||
"#": "#-penguin",
|
||||
"aria-description": "this scene shows an chair and a hidden penguin",
|
||||
"aria-description": "description of scene",
|
||||
"room/chair": {
|
||||
href: "#penguin"
|
||||
}
|
||||
|
@ -318,6 +318,7 @@ This can be done via a JSON <a href="https://en.wikipedia.org/wiki/Sidecar_file"
|
|||
</blockquote>
|
||||
|
||||
<pre><code class="language-javascript"> scene.userData['#'] = "#chair&penguin"
|
||||
scene.userData['aria-description'] = "description of scene"
|
||||
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
||||
|
||||
// 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
|
||||
{
|
||||
"#": "#-penguin",
|
||||
"aria-description": "this scene shows an chair and a hidden penguin",
|
||||
"aria-description": "description of scene",
|
||||
"room/chair": {
|
||||
href: "#penguin"
|
||||
}
|
||||
|
@ -245,6 +245,7 @@ So when loading `experience.glb` the existence of `experience.json` is detected,
|
|||
|
||||
```javascript
|
||||
scene.userData['#'] = "#chair&penguin"
|
||||
scene.userData['aria-description'] = "description of scene"
|
||||
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
||||
|
||||
// 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",
|
||||
"aria-description": "this scene shows an chair and a hidden penguin",
|
||||
"aria-description": "description of scene",
|
||||
"room/chair": {
|
||||
href: "#penguin"
|
||||
}
|
||||
|
@ -400,6 +400,7 @@ Internet-Draft XR Fragments September 2024
|
|||
| In THREE.js-code this would boil down to:
|
||||
|
||||
scene.userData['#'] = "#chair&penguin"
|
||||
scene.userData['aria-description'] = "description of scene"
|
||||
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
||||
|
||||
// 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]
|
||||
|
||||
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[{
|
||||
"#": "#-penguin",
|
||||
"aria-description": "this scene shows an chair and a hidden penguin",
|
||||
"aria-description": "description of scene",
|
||||
"room/chair": {
|
||||
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>
|
||||
<sourcecode type="javascript"><![CDATA[ scene.userData['#'] = "#chair&penguin"
|
||||
scene.userData['aria-description'] = "description of scene"
|
||||
scene.getObjectByName("room").getObjectByName("chair").userData.href = "#penguin"
|
||||
|
||||
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene
|
||||
|
|
Loading…
Reference in New Issue