ThatOpen / engine_components

MIT License
338 stars 130 forks source link

VR viewer #282

Closed danieleCTM closed 8 months ago

danieleCTM commented 9 months ago

Is it possible to use WebXR to develop a BIM enabled VR viewer that allows to see informations about the model? I might be wrong, but I seem to understand that the rendering engine is somehow limited to this day? I am referring to this issue

HoyosJuan commented 9 months ago

Yes, it's completely possible. ThreeJS has a built-in WebXRManager in the WebGLRenderer. If you're using either of the built-in renderers in components (SimpleRenderer and PostproductionRenderer), then you can access the WebGLRenderer with the get method.

christiandimitri commented 9 months ago

@HoyosJuan i tired to set it up, at sessionInit the camera stereo gets confused and the navigator doesn't connect with the webxr emulator api

HoyosJuan commented 9 months ago

@christiandimitri. do you get any errors?

danieleCTM commented 8 months ago

Yes, it's completely possible. ThreeJS has a built-in WebXRManager in the WebGLRenderer. If you're using either of the built-in renderers in components (SimpleRenderer and PostproductionRenderer), then you can access the WebGLRenderer with the get method.

what do you mean with "get method" ?

christiandimitri commented 8 months ago

@HoyosJuan i get no errors at all, let me check my project and let u know, i have left behins since that thread is opened, thanks for your assistance.