jagenjo / webglstudio.js

A full open source 3D graphics editor in the browser, with scene editor, coding pad, graph editor, virtual file system, and many features more.
MIT License
5.21k stars 605 forks source link

cardboard / webvr #24

Closed coderofsalvation closed 7 years ago

coderofsalvation commented 7 years ago

anybody did any experiments for (stereoscopic) cardboard headsets?

jagenjo commented 7 years ago

Is in my TO DO list to add VR support, it shouldnt take much time

coderofsalvation commented 7 years ago

Oh that is great to hear. Do you have any ideas on how to integrate it? I could imagine introducing an VR function in litescene.js

​ ​ ​player.loadScene("scene.json"); ​ player.enableVR(​{showbutton:true}​) ​

REASON: i would love to build stuff in webglstudio, but also distribute it as an litescene application

showbutton:false would immediately trigger VR-mode, whereas true would present a small clickable VR-logo in a screencorner to trigger it:

image

What do you think?

jagenjo commented 7 years ago

I was thinking more a Component called VRCamera but that would be a nice way to present it.

coderofsalvation commented 7 years ago

Oh my knowledge is still on tutorial-level, so a component would work too. Can components also be used in a standalone lightscene.js applcation?

On Tue, Mar 28, 2017 at 12:16 PM, Javi Agenjo notifications@github.com wrote:

I was thinking more a Component called VRCamera but that would be a nice way to present it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jagenjo/webglstudio.js/issues/24#issuecomment-289725878, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK_ZHuDeZn2AF_0mNuJT_U5eIAsTbi7ks5rqN3mgaJpZM4MrPkF .

-- /WEBSITE 2wa.isvery.ninja /MOBILE +31 6 13499604 /LOCATION Netherlands, Drachten. Hongarije, Budapest. /COMPANYNR. 08124656 /TAGS Rapid Prototyping of ideas/concepts using JavaScript, Node.js, OpenSource. Growth-hacking partnerships, lead scraping partnerships.

jagenjo commented 7 years ago

of course, thats the main point of all the system, that everything is done using components. From lights, to cameras to meshrenderers, everything is a component that can communicate with other components.