updated techdemos with xr hints ar-in-vr etc

This commit is contained in:
Leon van Kammen 2026-11-20 11:24:38 +01:00
parent 067f64382b
commit 7502841577
22 changed files with 55 additions and 61 deletions

View file

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

View file

@ -3,3 +3,7 @@
This is an AR-experience which demonstrates a 'hidden' plane (with cutout),<br> This is an AR-experience which demonstrates a 'hidden' plane (with cutout),<br>
which creates the illusion of a VR-in-AR.<br> which creates the illusion of a VR-in-AR.<br>
A great usecase is displaying VR (glTF) animations with variable immersion. A great usecase is displaying VR (glTF) animations with variable immersion.
A more flexible approach are [AR occluders](https://coderofsalvation.github.io/janus-guide/#/wiki/ARoccludermeshes) which
use [XR hints](https://xrfragment.org/#%F0%9F%93%9Clevel3%3A%20XR%20hints).

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View file

@ -0,0 +1,15 @@
# Multimodal XR hints
How to make a scene optimized for VR, AR but also other projections (rendered in portal, or as embedded room)?<br>
<br>
<b>Answer:</b> [XR hints](https://xrfragment.org/#%F0%9F%93%9Clevel3%3A%20XR%20hints)<br>
<br>
&lt;!-- should not show up in 'ar' mode --&gt;<br>
&lt;text text="hello VR" class='vr portal embed'/&gt;<br>
<br>
&lt;!-- should not show up in 'vr' mode --&gt;<br>
&lt;text text="hello AR" class='ar'/&gt;<br>
<br>
This scene will show/hide objects based on the viewermode (AR/VR/portal/embedded room), and also shows an [AR occluder](https://coderofsalvation.github.io/janus-guide/#/wiki/ARoccludermeshes); all using
[XR hints](https://xrfragment.org/#%F0%9F%93%9Clevel3%3A%20XR%20hints).

View file

@ -0,0 +1,30 @@
<fireboxroom>
<assets>
</assets>
<room use_local_asset="room_plane" skybox='false'>
<!-- sky sphere -->
<object id="sphere" cull_face="front" col='1 0 1' scale='100 100 100'/>
<!-- occluder xrhint -->
<object id="plane" js_id="plane" scale="3 6 1" rotation='0 90 0' class="ar occludable"/>
<!-- equivalent of use_local_asset="room_plane" only in vr & portal -->
<object id="room_plane" collider_id="cube" collider_scale="100 100 1" class="vr portal"/>
<!-- should not show up in 'ar' mode -->
<text text="hello VR" billboard="true" pos='-2 2 2' col='0 0 0' class='vr portal embed' layer='50'/>
<!-- should not show up in 'vr' mode -->
<text text="hello AR" billboard="true" pos='2 2 -2' col='0 0 0' class='ar'/>
<!-- should only show up in nested room -->
<object>
<text text="hello Nested" billboard="true" pos='-2 2 -2' col='0 0 0' class='embed'/>
</object>
<!-- should only show up in portal projection -->
<text text="hello Portal" billboard="true" pos='2 2 2' col='0 0 0' class='portal'/>
</room>
</fireboxroom>

View file

@ -1 +0,0 @@
../tronverse

View file

@ -0,0 +1 @@
tiny-huge-worlds/tron/tron.png

View file

Before

Width:  |  Height:  |  Size: 315 KiB

After

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

View file

@ -1,60 +0,0 @@
<h1>Hi there! 👋</h1>
Welcome to this XR experience.<br/>
<br/>
<div class="btn script">
<button class="btn secondary" onclick="document.querySelector('#tips').style.display = ''">Tips for navigating in XR</button>
</div>
<div id="tips" style="display:none">
<br/>
<table>
<tr>
<td>
<b>Keyboard+Mouse</b>
</td>
<td>
use the WASD-keys and mousedrag to navigate
</td>
</tr>
<tr>
<td width="200">
<b>AR/VR headset</b>
</td>
<td>
walk around / use right-longpinch (or thumbstick) for local teleports<br/>
</td>
</tr>
<tr>
<td>
<b>PhoneVR</b>
</td>
<td>
use gaze or bluetooth/mouse to navigate
</td>
</tr>
<tr>
<td>
<b>PhoneAR</b>
</td>
<td>
walk around and tap screen to click
</td>
</tr>
<tr>
<td>
<b>Mobile</b>
</td>
<td>
use the WASD-keys and mousedrag to navigate
</td>
</tr>
</table>
<br/>
You've got this!
</div>
<br/>
This virtual world is generated in realtime via <a href='https://icosa.gallery' target='_blank'>icosa.gallery</a>.
You can add/create parcels in icosa.gallery, by publishing via <a href='https://openbrush.app'>OpenBrush</a>, <a href='https://openblocks.app'>OpenBlocks</a>, or <a href='https://blender.org' target='_blank'>Blender</a>.<br>
> NOTE: Make sure to add hashtag **#tronverse-icosagallery** to the title (and re-run xrforge for fast re-sync).

View file

@ -0,0 +1 @@
xrfragments/xrfragments-deeplink-spec.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View file

@ -0,0 +1 @@
../janusxr_tutorial/multimodal-xrhints

View file

@ -0,0 +1 @@
../janusxr_tutorial/multimodal-xrhints.jpg

View file

@ -0,0 +1 @@
../../xrfragments-deeplink-spec

View file

@ -0,0 +1 @@
../../xrfragments-deeplink-spec.jpg