Canvatorium Lab 007
Can I console.log in VR? YES!
✅ Override console.log and to copy the message to a reactive variable.
✅ Watch this var and update a text object in a scroll view.
This is just proof of concept, but it's awesome to see console data in VR. It would take a lot more work to make into a full featured console.
Just refactored Lab 007 into a tool that I can use across many labs. It still needs a lot of work, but it's good enough to use when I just need to log something while working in a lab.
Code:
https://github.com/vrhermit/Canvatorium/blob/main/src/lab-shared/LabConsole.js
Here is the issue for the Tool, just in case you have any ideas
https://github.com/vrhermit/Canvatorium/issues/10
Working on this console log control so early in the Canvatorium project seems like a good call. There are many features that I want to build for it that I can reuse on other UIs later.
Today: toggle visibility and update position, with a few rough edges…
Better positioning and rotation when showing the console.
I’m a little confused about getWorldPointerRayToRef 🙃
Super early demo of a grab bar to manually move the card.
Originally tweeted by Joseph Simpson (@vrhermit) on January 24, 2022.
One Comment