Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

What should happen when applying opacity less than 1 to a node with descendants? #231

Closed
trusktr opened this issue Sep 27, 2016 · 1 comment

Comments

@trusktr
Copy link

trusktr commented Sep 27, 2016

Hello David and contributors,

I'd like your opinion:

If we have a node in a 3D scene, and it has many descendants (a sub tree), what should happen when we apply opacity with a value less than 1 to it?

  1. It, and all of it's children should become transparent, multiplying opacities down the scene graph.
  2. It's content should become transparent but not that of its descendants.
  3. Same as (1), but the whole object should be flattened into a plane.

The reason I want your opinion is because the new specs for CSS 3D (css-transforms) state here that the answer is (3).

To see what I mean, view these two examples in Chrome 53 or higher:

The second example has opacity applied to the node that contains all the sub-nodes which compose the car. The opacity, according to spec, flattens the car into a plane (turns it into paper!).

I'm asking various 3D engine authors for opinions of what the correct or most expected behavior should be.

All the best,
~ Joe

@deltakosh
Copy link
Contributor

Hello I completely missed this question :)
can you please our forum: http://www.html5gamedevs.com/forum/16-babylonjs/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants