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">{ <pre><code class="language-json">{
&quot;#&quot;: &quot;#-penguin&quot;, &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;: { &quot;room/chair&quot;: {
href: &quot;#penguin&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> </blockquote>
<pre><code class="language-javascript"> scene.userData['#'] = &quot;#chair&amp;penguin&quot; <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; 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 // 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 ```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

View File

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

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[{ <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