vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.49k stars 803 forks source link

Anybody has used 3D Force Graph with ar.js? do i need to use Aframe VR? #247

Open 413x-p opened 4 years ago

413x-p commented 4 years ago

I was wondering if anybody has a working example of the 3D chart combined with ar.js.

I presume that it is possible because ar.js supports three.js. To skip a bit of research i was just curious if anybody has already tried.

Thanks.

vasturiano commented 4 years ago

@EPurpl3 there is an aframe force graph component: https://github.com/vasturiano/aframe-forcegraph-component

And also a convenience VR stand-alone component that internally imports the aframe component: https://github.com/vasturiano/3d-force-graph-vr

It would be great to have an AR version of the above. I believe it would be relatively straight-forward to do so using the aframe-forcegraph-component with ar.js.

Would you like to volunteer for putting that together?

413x-p commented 4 years ago

Wow, awesome. Until now i have managed to do everything that i have planned to do with your library (except cleaning up GPU memory 😄 without refresh) and i am sure that AR will work flawless as well. Really powerful tool, extremely well designed.

It would be my pleasure to create a AR working example. If i will manage to make it work with ar.js i will create a Glitch.com project (because works better for AR than JSFiddle). I will tell you when it is ready and than you will be able to move it on GitHub.

Thanks again.

raghumadhavan commented 4 years ago

@EPurpl3 did you manage to make it work?

I did try embedding arjs to the scene but I'm getting

'navigator.mediadevices not present in your browser'

Thanks!

vasturiano commented 4 years ago

I've just put together a repo that lets you render a 3D force directed graph in an AR environment, using AR.js. Please check out: https://github.com/vasturiano/3d-force-graph-ar

And feel free to send any feedback if you do get to use it, or if you run into any snags.

413x-p commented 4 years ago

Wow, brilliant. I was just about to tell you that i am working on another project right now and that i will return to my 3D Force Graph project to implement the AR but it seams that Vasturiano did it already.

Thank you!