aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.42k stars 3.91k forks source link

Two webxr projection layers? #4880

Open vtrykoz opened 3 years ago

vtrykoz commented 3 years ago

Is it possible in current build of A-Frame to render two projection layers somehow?

I mean, quality of images in webxr layers is mind-blowing, but practically useless while hands/controllers are invisible as they drawn behind quad/cylindrical layer. The second most wanted feature after layers will be second projection layer on top of others (from second scene?).

dmarcos commented 3 years ago

@rcabanier Do you have any examples available of using two layers? One with controllers over imposed over the compositor layer. Thank you!

vtrykoz commented 2 years ago

@rcabanier , any updates here? No real need in example, just a hint how (or what) to push as a second projection layer in context of a-frame and three.js

cabanier commented 2 years ago

I don't have any examples where 2 projection layers are drawn at the same time. Three.js needs to be updated so it can draw to multiple targets at once. After that is implemented, we should be able to implement this. For now, it might be easier to do some tricks (ie add a quad in the scene to create a punchout) to get the same effect.