felixmariotto / three-mesh-ui

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

Alpha blend/fade #170

Open marwie opened 2 years ago

marwie commented 2 years ago

Hello,

is blending multiple UI elements supported?

https://user-images.githubusercontent.com/5083203/158365957-9e7ecd93-f374-4bfd-af3c-eaaa59f00e49.mp4

swingingtom commented 2 years ago

Hey @marwie, it looks like a threejs renderorder issue with transparent object. Which is relatively common IMO

As side note, we plan to allow native threejs materials to be use as font and frame materials on 7.x.x.

marwie commented 2 years ago

Hello @swingingtom thanks for the info. Maybe I can explicitly set the order that I get due to exporting from Unity 🤔

https://user-images.githubusercontent.com/5083203/159083698-5eb7cdfa-ed24-4905-9dbc-4484e3225c5b.mp4

(

swingingtom commented 2 years ago

Hello @marwie, is this issue okay on your side ?

marwie commented 2 years ago

Hello @swingingtom, i havent had time to working on that specific issue yet and figure out if producing a pre-sorted output (similar to how unity world ui canvas works) would solve that in three as well.

Do you have a timeframe for when 7.x would be ready?

swingingtom commented 2 years ago

Do you have a timeframe for when 7.x would be ready?

When it will be ready, I can't tell. But 7.x.x has already been started.