felixmariotto / three-mesh-ui

⏹ Make VR user interfaces for Three.js
https://felixmariotto.github.io/three-mesh-ui/#basic_setup
MIT License
1.26k stars 134 forks source link

Three-mesh-ui is not displayed on mirroring camera #234

Closed IJohnDean closed 1 year ago

IJohnDean commented 1 year ago

Hi! Faced with such a problem that if the cameras are transferred to Mirror (using scale.x), then the blocks are not displayed

No mirror image

Mirror image

Scale camera if mirror image

swingingtom commented 1 year ago

Hi @IJohnDean ,

Thats actually a common issue. When using plane and camera scale x -1, be sure its material is rendered backSide. Or DoubleSide if you need both sides.

Solution is already detailed here #233 and you got a sandbox too. https://codesandbox.io/s/camera-scale-x-requires-doubleside-rl7ygf?file=/src/index.js

IJohnDean commented 1 year ago

Thanks for the quick response. I didn't find any similar Issues by searching. Successful development!