Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha issue: inverted geometry #543

Open
tkoolen opened this issue Aug 7, 2017 · 3 comments
Open

Alpha issue: inverted geometry #543

tkoolen opened this issue Aug 7, 2017 · 3 comments

Comments

@tkoolen
Copy link
Contributor

tkoolen commented Aug 7, 2017

When alpha is one, all is good:
image

But if I set alpha to 0.99, the geometry becomes inverted:
image

As a side note, there's an additional alpha under the 'Color' part of the properties panel that ranges from 0 to 255. It seems to do nothing.

I believe @siyuanfeng-tri and @TristanThrush were experiencing similar inversion issues, but possibly unrelated to alpha.

This is with version 0.1.0-130-g4109097.

@patmarion
Copy link
Member

The geometry does not look natural with alpha=0.99 because of the drawing order of triangles. To correctly visualize transparent geometry Director needs to enable VTK's depth peeling rendering feature. It is currently disabled for 1) support of antialiasing on more systems 2) performance. It would be nice to add a toggle to enable depth peeling, currently it can only be done by modifying C++ code and recompiling.

If you set alpha to something much lower like 0.10 the effect will not be very bad. alpha=0.99 is the worst case scenario.

Sorry for the confusing about the 4-component color property editor. Only the 3 RGB components are actually used.

@patmarion
Copy link
Member

I think there is also a bug where the alpha value can get set to 0.999 but the spinbox editor rounds it up and displays 1.0. If you manually enter 1.0 then it takes the correct value.

@tkoolen
Copy link
Contributor Author

tkoolen commented Aug 7, 2017

Thanks for the quick response.

I think there is also a bug where the alpha value can get set to 0.999 but the spinbox editor rounds it up and displays 1.0. If you manually enter 1.0 then it takes the correct value.

That could explain why Siyuan and Tristan were having these issues.

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

No branches or pull requests

2 participants