added xrfragment documentation-scene file + localized redbean

This commit is contained in:
Leon van Kammen 2026-11-05 12:33:53 +01:00
parent 54fcb95a35
commit dcf90a4205
6 changed files with 71 additions and 5 deletions

View file

@ -9,7 +9,7 @@ An open, seamless XR web built from simple URLs and directories, without gatekee
## Usage / Radical Opensource
Download [xrforge.com](releases) and open your windows/mac/linux terminal:
Download [xrforge.com](releases) and open your windows/mac/linux/android terminal:
```bash
$ ./xrforge.com
@ -23,7 +23,7 @@ Usage: ./xrforge.com <cmd> [opts]
./xrforge.com test run testsuite (selftest)
```
> NOTE: mac/linux-users need to do an additional `chmod +x xrforge.com`
> NOTE: mac/linux/android-users need to do an additional `chmod +x xrforge.com`
Profit! now run `xrforge.com admin` and XRForge will be launched in a webbrowser

2
run.sh
View file

@ -1,9 +1,9 @@
#!/bin/sh
source ./.env
rebuild
test -d myverse && {
read -p "delete ./myverse? [y/n] " ok
test "$ok" = y && rm -rf myverse
}
rebuild
rm result/bin/xrforge.lua || true
DEBUG=1 result/bin/xrforge.com -c 0 "$@" --nobrowser

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View file

@ -0,0 +1,62 @@
<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 is a shrine dedicated to the XR Fragment's deeplinking spec.<br>
Without linking 3D files, there would be no selfsovereign virtual worlds.<br>
<br>
<b>Credits/Shoutouts</b>: <a href="https://nlnet.nl" target="_blank">nlnet</a>, <a href="https://ngi.eu" target="_blank">NGI</a>, <a href="https://coderofsalvation.github.io/janus-guide/" target="_blank">JanusXR</a>

View file

@ -0,0 +1,4 @@
[Desktop Entry]
Type=Link
Name=XR Fragments deeplink spec
URL=https://xrfragment.org/index.glb

View file

@ -1,7 +1,7 @@
#!/usr/bin/env sh
OUTDIR=result/bin
REDBEAN_URL="https://redbean.dev/redbean-3.0.0.com"
REDBEAN_URL="https://codeberg.org/coderofsalvation/xrforge/releases/download/redbean-3/redbean"
REDBEAN_CRC="382f1288bb96ace4bab5145e7df236846c33cc4f1be69233710682a9e71e7467 $OUTDIR/xrforge.com"
get(){
@ -19,7 +19,7 @@ get(){
cp /tmp/xrforge.com $OUTDIR/xrforge.com
test -n "$ARCH" && {
test -f /tmp/assimilate || {
wget https://cosmo.zip/pub/cosmos/bin/assimilate-x86_64.elf -O /tmp/assimilate
wget 'https://codeberg.org/coderofsalvation/xrforge/releases/download/redbean-3/assimilate-x86_64.elf' -O /tmp/assimilate
chmod +x /tmp/assimilate
}
rm $OUTDIR/*.bak || true