-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Description
Issue by jcarpenter
Friday Nov 20, 2015 at 23:32 GMT
Originally opened as https://github.com/aframevr/aframe-core/issues/498
It will be common to superimpose images w/ alpha channels. There is a currently a footgun where order of declaration in the DOM must be carefully managed, or transparent elements will cull each other.
For example, in the AnimeUI test scene in A-Frame, I have a series of transparent images arranged on the z-axis. I must declare them in order of depth, furthest from camera to closest, or I get blending problems.
<vr-image src="images/schematic1.png" width="7" height="7" position="0 0 -6"></vr-image>
<vr-image src="images/ring2.png" width="3" height="3" position="0 0 -2"></vr-image>
<vr-image src="images/ring1.png" width="0.5" height="0.5" position="0 0 0"></vr-image>This is what it looks like when the user takes the correct steps:
This is problematic because:
- The failure state is obvious and ugly
- The cause will not be obvious to users
- The resolution is sometimes not feasible. The point of A-Frame is grouping elements to fit your scene layout and mental model. The current resolution forces you to group things by z-axis.
We should solve this automatically for users.
Metadata
Metadata
Assignees
Labels
No labels
