Hacker Newsnew | past | comments | ask | show | jobs | submit | risons's commentslogin

share it with us :)


The other projects did most of the heavy lifting. jsmpeg-vnc does the screen capture and sending the data over websocket to jsmpeg which renders it to canvas without buffering. I then took the canvas and used it as a texture in webvr-boilerplate. I needed to make sure the texture was a power of 2 and set texture.needsUpdate to true on each render update. Three.js made it easy to switch the cube out for a plane which I moved a bit closer to the camera. The command arguments I used for jsmpeg-vnc: -b 1000 -s 1024×512 -f 60 -p 9999 "desktop". jsmpeg-vnc doesn't support sound which doesn't bother me since I can use the computer speakers but I'd like to add mouse capture for when the headset is on. And here's a screenshot of it on my Moto G (2nd gen): http://imgur.com/a/uhRuN


Definitely an interesting approach.


Absolutely. You should try it. :)


Thanks for the overwhelming support guys. The entire code is also available on github at https://github.com/viewportvr/daysinvr

You can also ask me any questions, if you have any.


So where you going from here? It would also be great if you could do a little write up of what you learned!


Absolutely! Once the 30 days is over, I'll be writing about what I learned.

I'm also building a product to make VR dev easier at https://viewportvr.co


I would like to learn more about viewport but when you click docs it requires you to make an account first... if I have to make an account just to find out what your product does I leave and never look back.


it doesn't ask you to create account. It asks you to give your email address so that we can send you the docs :) You can also try the 360 photos demo at https://viewportvr.co/demo


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: