r/learnjavascript • u/felixmariotto • May 08 '20
VR user interface done entirely in JS ! Repository in comment
8
u/theoruss May 08 '20
Woah. I’m still new in learning JS but this is amazing.
9
u/felixmariotto May 08 '20
I've made a little tutorial on how to do this, it's pretty quick : https://github.com/felixmariotto/three-mesh-ui/wiki/Getting-started
2
6
u/zolavt May 08 '20
This is sick man. I honestly didn't know you could pull something off like this with JavaScript. Was it pretty difficult? I'm still relatively new to programming and have been all web development based. I thought you had to know something like Python at the very least to do this sorta thing. Really cool. How long have you been learning programming? Or javascript specifically?
10
u/felixmariotto May 08 '20
Hey thanks ! I don't think it's very difficult to do this, but I've been coding in JS for almost three years specifically with three.js for 3D rendering, and I can't really say how it looks like from a pure web development perspective. However I believe that if you try my tutorial, you will find it easy to follow : https://github.com/felixmariotto/three-mesh-ui/wiki/Getting-started
VR is currently going forward very fast for the web, it's a matter of months before we can navigate between websites in immersion (see https://github.com/immersive-web/navigation/issues/9 ). But everything is still to be invented, Google for VR, Facebook for VR, nothing exists, and yet the number of HMD sales is exploding since last Christmas (with the help of Half Life Alyx)
10
1
u/pookage helpful May 09 '20
Just in-case anyone isn't aware of it yet - aframe.io is an absolute pleasure to use when it comes to developing VR (or even just 3D) applications, and it basically just extends THREE.js, so if you're familiar with that then you can carry over all y'er knowledge.
But yeah, give it a go - great fun!
1
u/felixmariotto May 09 '20
Well three-mesh-ui intent is not to compete with aframe.io or React360 (which are both excellent). Its phylosophy is the exact reverse: it's an add-on to three.js, which is the most used 3D engine for the web. aframe "extends three.js" as you said, it's an entirely new framework with its own syntax (which is far too declarative in my opinion, very "magic"), most of which only do calls to three.js API. With three-mesh-ui, you can continue using the most used web 3D engine as you would normally, and add a few 3D panels without learning too much new API.
2
May 08 '20
Nice!
2
u/nice-scores May 08 '20
𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)
Nice Leaderboard
1.
u/RepliesNiceat 7227 nices2.
u/spiro29at 6522 nices3.
u/GreenAppleCZat 5082 nices...
269830.
u/lucasmrlat 1 niceI AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS
2
2
7
u/felixmariotto May 08 '20 edited May 08 '20
Repository : https://github.com/felixmariotto/three-mesh-ui
Live demo : https://three-mesh-ui.herokuapp.com/#interactive_button
Tutorial : https://github.com/felixmariotto/three-mesh-ui/wiki/Getting-started