updated techdemos with xr hints ar-in-vr etc
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
|
|
@ -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).
|
||||||
|
|
||||||
|
|
|
||||||
BIN
src/myverse/tech-demos/janusxr_tutorial/multimodal-xrhints.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
|
|
@ -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>
|
||||||
|
<!-- should not show up in 'ar' mode --><br>
|
||||||
|
<text text="hello VR" class='vr portal embed'/><br>
|
||||||
|
<br>
|
||||||
|
<!-- should not show up in 'vr' mode --><br>
|
||||||
|
<text text="hello AR" class='ar'/><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).
|
||||||
|
|
||||||
|
|
@ -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>
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
../tronverse
|
|
||||||
1
src/myverse/tech-demos/tiny-huge-worlds.png
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
tiny-huge-worlds/tron/tron.png
|
||||||
|
Before Width: | Height: | Size: 315 KiB After Width: | Height: | Size: 315 KiB |
|
Before Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
|
@ -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).
|
|
||||||
1
src/myverse/tech-demos/xrfragments.jpg
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
xrfragments/xrfragments-deeplink-spec.jpg
|
||||||
BIN
src/myverse/tech-demos/xrfragments/XRF-microformat.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
1
src/myverse/tech-demos/xrfragments/multimodal-xrhints
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../janusxr_tutorial/multimodal-xrhints
|
||||||
1
src/myverse/tech-demos/xrfragments/multimodal-xrhints.jpg
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../janusxr_tutorial/multimodal-xrhints.jpg
|
||||||
1
src/myverse/tech-demos/xrfragments/xrfragments-deeplink-spec
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../../xrfragments-deeplink-spec
|
||||||
1
src/myverse/tech-demos/xrfragments/xrfragments-deeplink-spec.jpg
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../../xrfragments-deeplink-spec.jpg
|
||||||