main: work in progress [might break]

This commit is contained in:
Leon van Kammen 2024-09-25 16:03:59 +02:00
parent 0dc2b1f2e4
commit 457935a426
4 changed files with 8 additions and 5 deletions

View File

@ -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">{
&quot;#&quot;: &quot;#-penguin&quot;,
&quot;aria-description&quot;: &quot;this scene shows an chair and a hidden penguin&quot;,
&quot;aria-description&quot;: &quot;description of scene&quot;,
&quot;room/chair&quot;: {
href: &quot;#penguin&quot;
}
@ -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['#'] = &quot;#chair&amp;penguin&quot;
scene.userData['aria-description'] = &quot;description of scene&quot;
scene.getObjectByName(&quot;room&quot;).getObjectByName(&quot;chair&quot;).userData.href = &quot;#penguin&quot;
// now the XR Fragments parser can process the XR Fragments userData 'extras' in the scene

View File

@ -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

View File

@ -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

View File

@ -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