Has anyone ever tried coding in VR? Not making a V...
# thinking-together
w
Has anyone ever tried coding in VR? Not making a VR app, but writing code within a VR workspace. Even keeping the standard 2D screen metaphor, it seems useful to have infinite screens placeable anywhere in the world. You’re not restricted to physical monitors.
☝🏻 2
Alternatively, I would love a “physical” programming language that you could arrange with your hands in VR. Something like Wiremod for Garry’s Mod with haptic feedback.
💯 2
a
It seems like an interesting idea, but I worry that it would be too much at once? I kinda stopped using two monitors recently because of that. But a documentation screen and a code screen seems like a good idea
c
I've wondered what this will be like; I have a text editor that could in theory render inside a 3D world easily enough; and I'd like to try having it be wrapped around the viewer, etc. The interesting part is the input. For me that would probably be fine, since I'm a touch typist and like to use Keystrokes/vim for navigation; but I'm not sure how anyone would cope without those things. I'm also not sure how tiring it would be ; I imagine being locked in a world like that would be become quite draining if you did it for the usual amount of hours.... The text editing isn't the only problem of course; you'd need debugger, etc; and presumably the application you were working on would have to present itself inside VR. I've spent quite a while thinking about live coding inside such a thing. I posted a link to Media Molecule's Dreams VR. I don't know how they handle such things; I haven't watched it all yet.
r
Eventhough just placing many screens in VR isn't really pushing the medium in very interesting way, I think I would find it incredibly useful. In much the same way an architect / graphic design can scatter their drawings across the table and pin the to the wall, and they can reference all that at once while creating something new. In contrast a software developer would be typically limited to the equivalent 1-3 pieces of paper. VR could be the more affordable version of Bret Victor's Seeing Spaces https://vimeo.com/97903574
1
👍 6
r
I've seen a couple of (very) primitive prototypes. I'd go with something like PS' Dreams. And if you could interact with something physical a la B. Victor, that would be just Star Trek stuff. In general, I think it would be incredibly useful for all the reasons mentioned; our visual bandwidth is much higher than our little screens provide. My biggest prejudgement is the physical ergonomics of user interaction. The same way touch screens across keyboards are only marginally useful.
o
I feel like the work being done at Dynamicland (which is for good reasons is focused on not locking us into isolated islands) could actually be quite compatible with VR. I definitely dream about it, being able to dynamically switch from 2D screens, 3D, spacial, even tactile modes of interaction with code or operating systems.
❤️ 1
1
💯 5
a
Having lots of text in VR is rough because the current gen hardware does not have enough pixel density, the words need to be enormous to be readable. But a physical-metaphor UI could be awesome.
c
That's a good point; I work on a 4K screen these days, and wouldn't want to go back!
o
Alternatively, I would love a “physical” programming language that you could arrange with your hands in VR. Something like Wiremod for Garry’s Mod with haptic feedback.
Vi Hart has worked on that, some objects in virtual reality that you arrange to create programs. I can't find the the article about this specifically (anyone?), but found this other one that talk about it in the beginning (first image in the introduction): https://theartofresearch.org/combination-physical-and-virtual-tools-for-spatial-computation/
And this article talks also about nice AR programming stuff! 🙂
s
The current attempts I'm aware of are safespaces:

https://www.youtube.com/watch?v=Js7Y1H5D8cY

and xrdesktop:

https://www.youtube.com/watch?v=RXQnWJpMLn4

Of course, these just kind of extend the traditional desktop metaphor, but you can already do some pretty neat stuff, for example, natural workspaces. I was watching a livestream by one of the devs working on wayland vr, drew devault, and he just casually puts background stuff like music players and chat clients to the side, vaugely in peripheral vision, and then turns his head when he wants to see them.
(Here is the stream in question, if anyone is interested (vim in vr!): https://spacepub.space/videos/watch/691f2bc1-d4bf-4051-a035-035388a059b0)
✔️ 2
👍 1
n
The moment a company releases a wireless AR/VR device that doesn't give you eyestrain when you're trying to look at small glyphs at close distances, I'll definitely be using it. We need varifocal devices with a pixel density equivalent to at least that of a 1080p monitor at typical viewing distances. But my ideal device is a pair of AR glasses complemented by an input device that allows me to work from anywhere (standing, sitting, indoors, outdoors...). I'd love to not be desk-bound whilst I work.
💯 1
Until then, I've stopped caring about the AR/VR space. The hardware just isn't good enough.
s
I completely missed this thread
but I was working on a VR programming language at Facebook for Facebook Horizon last year
😮 1
I've been meaning to write up notes, and share them
🙏 2
I've kind of been waiting for Horizon to actually ship... no idea when that will happen though
it's been almost a year since I've worked there so I imagine the actual programming tools look very different than what I was proposing anyway
As for coding in VR there are a lot of examples and things you can try
Dreams just shipped a VR mode
the interface is the same as Dreams outside of VR though, so it's kind of 2.5D with panels you interact with with a laser pointer
Check out RecRoom, AnyLand, ModBox, etc. if you want to see various attempts at visual scripting environments in VR
I was pushing for exactly this
It was designed to be a hybrid tangible\block based programming language, where you had a palette of blocks, I was pulled off interface development due to re-orgs and manager\director pressure
so we ended up with something that used the standard laser pointer driven 2D UI
and was extremely clunky
but it worked...
yeah I need to write up notes 🙂
I've been thinking about programming in VR for like 4 years and I've never written a public comprehensive collection of my thoughts
😥 1
For those of you interested in text based programming in VR there are some fun toys and prototypes https://store.steampowered.com/app/458200/Rumpus/
There are quite a few Javascript based things as well
I tried to find some more recent ones... but meh
I actually think text editing in VR will be reasonably good sooner rather than later
I give it a year or two for 4K displays (probably not with varifocal displays, sadly), and pretty good tracked keyboard support
At least in a future Oculus device
Also... even though this isn't coding in VR it's relevant to FOC

https://www.youtube.com/watch?v=ydyztGZnbNs

John Carmack built a live coding environment for Gear VR based on Racket, that ran an HTTP server on the phone
a prototype version was actually released as while ago
I imagine there are a lot of folks here that are interested, at least tangentially, in programming in VR, but it seems like people know very little about the space (there are Wiremod style systems in RecRoom, ModBox, Dreams and others)

https://www.youtube.com/watch?v=x3a76Q5a-n8

https://www.youtube.com/watch?v=fNXyKB8Qb2o

w
@Scott Anderson thanks for sharing all the insider details 🙂 would love to hear your extended thoughts whenever you get the chance.
👍 3
h
Maybe worth saying that the thing I am working on is planned to be AR/VR

https://www.youtube.com/watch?v=hR-MQm3c13Q

😅 lonely furrow I guess
🍰 1