doc: how to bring stuff into XRSH scene #4
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some feedback from jonathan:
Perhaps we can include a chapter on this in the 'Getting Started'-section of https://xrsh.isvery.ninja
So far there's various ways of getting things into XRSH scene:
index.htmlin this xrsh repo (regular AFRAME app, easiest for including background)cm index.htmlto live-edit the scenewget): https://xrsh.isvery.ninja/#Unixy%20URLsMaybe some code snippets too..like in the manual: https://forgejo.isvery.ninja/xrsh/xrsh-buildroot/src/branch/main/buildroot-v86/board/v86/rootfs_overlay/root/manual.md#calling-terminal-from-javascript
Based on quick conversation with Fabien:
Drag and drop off images works on PC. Drag and drop of files doesn't stop work on quest 3.
upload command didn't work on either
Haven't managed to build my own image with qemu or docker yet so I can have the files in there from start.
But then I couldn't get aframe to use an equirectangular image as sky? Whole scene is just black. Same file works on glitch.
A-Sky
Is there a way to access the error messages?
js console.log just returns "undefined"
Expected output
suggestions from AFRAME's discord regarding mixed grabbables: https://glitch.com/edit/#!/aframe-xr-starterkit?path=index.html%3A201%3A49
I'm not really convinced.
The obvious behaviour to me seems..just add
grabbableand be done with it.You're trying to load a file from your harddrive (
src="/mnt/....) while you actually want to load it from your terminal filesystem (src="file://xrsh/mnt/....."see manualtail -f /var/log/messages /dev/browser/consolesee http://localhost:8080/#Polyglot%20debugging%20%26%20loggingIf you press ctrl+a+1 you'll switch to the logging window in the terminal
its because
console.logdoes not return anything (tryjs 'return 123')Here's the error I got when I tried to use the upload command
I did it twice. Before I went into VR and after.
I got that file link working thanks to your comments but it still goes black and apparently its because the WebGLRenderer in three doesn't like the file. Maybe it was corrupted during upload.
Yeah unfortunately even with the new version it has the image incomplete issue.
Same code works fine on glitch
thanks for reporting this, I'll have to investigate this (I'm a bit busy with ironing out the bugs in the latest release)
UPDATE: I've spent this afternoon debugging the issue.
What works in the latest version:
However, the webrequest TO the filesystem (via
<a-sky src="....">) was blocked by the browser-sandbox.So I'm now in the process of refactoring things to make this possible:
That way the browser-sandbox won't get in the way.
However, I've noticed that your 35MB equirect is partially sent from the webworker..so there's still some shenanigans there.
For the time being it's better to just include them locally via a webserver.
So:
and then in index.html add your AFRAME stuff as usual
btw. don't use
<a-assets>because that only works at page-load (with xrsh the AFRAME scene is loaded later on, so Im not sure whether that works at all). Just include urls inline (<a-sky src='/mnt/clipboard/....'>in the future..I should write that somewhere in the docs prolly.