Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VR mode: Support for Steroscopic viewing and head tracking #53

Open
toysrtommy opened this issue Feb 16, 2016 · 16 comments
Open

VR mode: Support for Steroscopic viewing and head tracking #53

toysrtommy opened this issue Feb 16, 2016 · 16 comments

Comments

@toysrtommy
Copy link

Termux is awesome, when combined with a foldable bluetooth keyboard. It becomes a full workstation powerhouse on the go.

Except the screen size is still tiny for code editing even on a Nexus 6p. The proposal is to support Cardboard VR mode / render terminal content in steroscopic, potentailly using Cardboard API (but other options fine too).

Imagine carrying just your smartphone and a small keyboard and a cardboard Goggle, with infinite terminal windows by just moving around your ahead.

https://developers.google.com/cardboard/android/get-started

@InsideBall
Copy link

Do you know what would be really damn cool:

If you combine witih a gesture recognition engine, or something like a powerglove to make a 3d floating keyboard for a virtual terminal.

Imagine this: typing in a faithful representation of a VT100, entirely in 3d space.

@kabbi
Copy link

kabbi commented Aug 17, 2016

I've made a simple POC here: kabbi/termux-app. Looks and feels somewhat cool, although there is a lot to consider: when virtual terminal screen is too large, it's difficult to focus on it and 3d effect is sometimes screwed up, when it is too small and far away, screen resolution becomes the bottleneck and terminal letters begin to filcker near the pixel boundaries.
Anyway, it's really fun to play with, and I'll continue to work on this feature, and if it works out I'll try to make a PR. There is also a lot of UI possibilities in 3D space, we can place several terminal sessions at once, make some virtual tools to work with terminals, walk in the space between if we want to, etc.
Some screenshots:
screenshot_20160814-223800
screenshot_20160817-122808
screenshot_20160817-122844
(although the terminal seems really small on last ones, it's really pretty readable in cardboard)

Sorry for large images.

@chasingmaxwell
Copy link

I know this is an old issue, but I'm very interested in this functionality. I'm happy to help with testing. I'm no Android developer, just want to be able to do development on Android.

Another interesting alternative would be an app that serves as a VR wrapper for any application. Native SBS did that for earlier android versions, but seems to no longer be maintained. Anyone know of anything else like that?

@RangerMauve
Copy link
Contributor

I can't get this to run on my Daydream View with the Pixel 2. It's saying that "This cardboard application is not compatible with Daydream headsets"

@RangerMauve
Copy link
Contributor

Reconfiguring my headset to think it's a cardboard worked. :D

Gonna look into creating a Unity plugin for rendering these terminals so that people can have a higher level API.

@inter1965
Copy link

Any updates?

@RangerMauve
Copy link
Contributor

I've started on my unity plugin, but I haven't had much time to work on it. So far I've got keyboard input and I have it rendering to a text field in VR.

I need to set up the environment variables stuff next.

@inter1965
Copy link

The Oculus TV app on the Oculus Go supports running normal Android apps via a virtual screen. Apps that have an existing Android TV UI (leanback) are displayed in the "Unknown Sources" list at the bottom of the UI. Maybe people can try sideload termux via adb and see if it works?

@maidenone
Copy link

maidenone commented Jul 11, 2018

This is what i wanted to do since i got my first Gear VR for my Note1, A lot have happened since then... I will follow this closely. I work a lot with embedded C, and spend a fair amount of time on the train, would be awesome to get a "bigger screen" on the move ;) only lacking a PDF viewer and WebKit integration then i could be fully productive.
Have poked around a bit with this: https://github.com/wadetb/shellspace
but depending on remote connections is a deal breaker for me..

@maidenone
Copy link

maidenone commented Jul 31, 2018

I have built termux vr, Termux runs fine. but Termux vr just promts "Termux has stopped", how do i debug "Termux vr"? by default the debugger launches Termux...

Would also like to highlight those forks:
https://github.com/brysgo/termux-app/commits/master
https://github.com/staltz/termux-app/commits/master

@abraxas86
Copy link

I'm dying laughing here... It's like the 1980's imagining where we are today.

"In the future, VTI users will simply wear a helmet and communicate virtually with an endless realm of terminal windows!" -Some retro Osbourne science book, probably.

I love the fact that this exists. It's a perfect trifecta of novelty, comedy, and "because you can".

@victor141516
Copy link

I would love to see this on the official app. I get the "Termux has stopped" error too with the staltz fork.

@daniellandau
Copy link

Now that there is an open source cardboard SDK from Google it would be really nice to use that and have a VR terminal on a phone without Play Services.

@RangerMauve
Copy link
Contributor

What I ended up doing is instead of making a native app and figuring out how to render Termux terminals in VR, I put together a basic web app instead.

https://github.com/RangerMauve/aframe-xterm-component

Basically, you can start a local websocket server on the phone, then use this library to connect to it. Since it's JS it's a lot faster to iterate and get different layouts working and stuff. :)

@RangerMauve
Copy link
Contributor

RangerMauve commented Nov 8, 2019

Also, I've been using UserLAnd in combination with Firefox Reality for this. Works great on the Oculus Quest, too!

@jussty
Copy link

jussty commented Apr 5, 2020

Also, I've been using UserLAnd in combination with Firefox Reality for this. Works great on the Oculus Quest, too!

Termux (the normal 2D APK) can be sideloaded on the Quest, it shows up as an (actually pretty convenient!) Android TV app. I've been using it productively to check out Git repos and start local NodeJS development servers on the Quest for WebXR development. Even VIM is pretty usable...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests