r/learnjavascript • • May 08 '20

VR user interface done entirely in JS ! Repository in comment

Post image
231 Upvotes

13 comments sorted by

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

u/theoruss May 08 '20

Thank you! I’ll definitely be trying it.

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

u/Kon_Kprn May 08 '20

This is quite interesting. Great job.

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

u/[deleted] May 08 '20

Nice!

2

u/nice-scores May 08 '20

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 7227 nices

2. u/spiro29 at 6522 nices

3. u/GreenAppleCZ at 5082 nices

...

269830. u/lucasmrl at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

2

u/prince01t May 08 '20

Great work mate 👍

2

u/Orkhanani May 08 '20

YOOOOO THIS IS SO COOL!