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

T63489: Wrong transparent node setup in GLTF import #424

Closed
julienduroure opened this issue Apr 11, 2019 · 9 comments
Closed

T63489: Wrong transparent node setup in GLTF import #424

julienduroure opened this issue Apr 11, 2019 · 9 comments
Labels
enhancement New feature or request importer This involves or affects the import process Material

Comments

@julienduroure
Copy link
Collaborator

See Blender issue tracker for info / file / screenshots:
https://developer.blender.org/T63489

@julienduroure julienduroure added the importer This involves or affects the import process label Apr 11, 2019
@julienduroure
Copy link
Collaborator Author

I not agree with the analysis.
Factor of the mixShader node will do the following : 1 for transparent, 0 for opaque.
The Add node is used as factor. So if you have an alpha of 0.2, you have to set factor to 0.8.
The second image is wrong, because add 0.8 and 0.2 --> full transparent because of factor of 1.0

@julienduroure julienduroure added the invalid This doesn't seem right label Apr 15, 2019
@nurbs999
Copy link

nurbs999 commented Apr 15, 2019

Hmm, strange. My threejs scene, where I do the gltf export from, has an almost full transparent object.

Bildschirmfoto von 2019-04-15 12-06-28

@Zool1987
Copy link

I have the same problem ... And another question on the topic is it possible to use a gradient in texture? Now I only have a blend mode without texture in my shader Principle BSDF...I want to get a glass with a transparency gradient (opaque at the bottom, transparent at the top) With the old shader I did it, but with Principle BSDF does not work = (If you can do this, you can share the node scheme?

@julienduroure julienduroure added enhancement New feature or request and removed invalid This doesn't seem right labels Apr 26, 2019
@julienduroure
Copy link
Collaborator Author

I have to check if we can use transmission value of principled shader instead of mix with transparent node.
Set as enhancement

@julienduroure
Copy link
Collaborator Author

This very recent change in Blender will maybe help us :
https://developer.blender.org/rB8f71a84496a95528303fbe0bb7c1406060353425

See #462

@Zool1987
Copy link

It's great that these entrances have appeared, but GLTF exports are not working as expected. Gradient texture with transparency, after export, loses the alpha channel. We are waiting for this fix.
alpha_test.zip
test
screen

@julienduroure
Copy link
Collaborator Author

@Zool1987 These new entrances are not taken into account in this addon yet, so please be patient, we will work on it

@Zool1987
Copy link

Thank you very much for your work, you are doing a great job!

@scurest
Copy link
Contributor

scurest commented Feb 23, 2020

I think the original setup was already correct, but anyway the Alpha socket is used now. Might be able to close this.

mat12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request importer This involves or affects the import process Material
Projects
None yet
Development

No branches or pull requests

4 participants