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

Importing textures with alpha #4

Open
MattTheLegoman opened this issue Aug 19, 2019 · 7 comments
Open

Importing textures with alpha #4

MattTheLegoman opened this issue Aug 19, 2019 · 7 comments

Comments

@MattTheLegoman
Copy link

MattTheLegoman commented Aug 19, 2019

This is a very small issue. While Feliwir was explaining to me his attempt to add alpha it seemed like he missed the Blend Mode setting which I have circled in the screenshot.

Here is an example of the shader material nodes and settings that I use to display alpha in Blender. The default render engine in Blender 2.8 is Eeevee and this setting is only available for Eevee.

demostration of alpha setting

I recommend using either the Alpha Clip or Alpha Blend setting.

@Tarcontar
Copy link
Collaborator

Should be fixed with 07186b8

@Tarcontar
Copy link
Collaborator

Can not set the blend mode for all materials equal, since this causes issues with materials and textures without alpha. Need to track down a material/shader property that is responsible for this.

@Tarcontar Tarcontar reopened this Aug 20, 2019
@feliwir
Copy link
Collaborator

feliwir commented Jan 4, 2020

Screenshot from 2020-01-04 13-40-38

This is the node setup how we need to do it

@Tarcontar
Copy link
Collaborator

blend mode is now set to alpha mode per default, but havent figured yet out how to set the alpha value from the texture properly, or use the texture as a alpha mask.

@Tarcontar
Copy link
Collaborator

Setting the Alpha texture of the PrincipledBSDFWrapper does not really solve the problem, since then we have the same texture node twice in the shader instead of connecting the Alpha value of the first texture directly.

For reference:
https://github.com/sobotka/blender/blob/master/release/scripts/modules/bpy_extras/node_shader_utils.py

@Tarcontar Tarcontar changed the title w3d Material with alpha does not import in Blender with alpha set up in shader material Importing w3d material with alpha Jan 7, 2020
@Tarcontar Tarcontar added the help wanted Extra attention is needed label Jan 17, 2020
@Tarcontar Tarcontar changed the title Importing w3d material with alpha Importing textures with alpha Jan 30, 2020
@Tarcontar
Copy link
Collaborator

image
this could work if we could extract the 'alpha mask' from a texture

@Tarcontar
Copy link
Collaborator

image
this might be the corresponding shader value (Is Zero for other materials)

@Tarcontar Tarcontar removed the help wanted Extra attention is needed label Sep 17, 2020
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

3 participants