Home Adobe Substance

Opacity map isn't working?

christopheduron
polycounter lvl 2
Offline / Send Message
christopheduron polycounter lvl 2
I'm using the 'pbr-metal-roud-with-alpha-blending' shader in substance painter 1 and i want to use an opacity map to make gemstones slightly see-through and also to give the border of my fur clothing a more natural feel to it. I quickly made this just to test and i'm having some issues with it:



For some reason when i rotate my camera the opacity map doesn't work anymore and turns into an alpha based one. As for my gemstones i can't even get them to use opacity, it's either completely visible or completely invisible. Any reason for this?

I tested it on 'Hans' aswel and it works there.

Replies

  • Jerc
    Offline / Send Message
    Jerc interpolator
    The transparency shader in Painter doesn't work very well, I would recommend trying this one: https://share.allegorithmic.com/libraries/1740
    I'm not sure it will work great for the gemstones, but it will definitely work much better for the fur.
  • christopheduron
    Offline / Send Message
    christopheduron polycounter lvl 2
    I installed it (for SP1) and it turns my model completely pink.

    I read the comments on the substance share page and some guy had the exact same problem and solved it by doing this:

    "@Froyok, had to rewrite the matrix as one dimensional array and it worked, thanks for the shader! Maybe for compability you shouldn't use multidimensional arrays?"

    I have no clue how to do this however, perhaps you do? :)
  • Froyok
    Offline / Send Message
    Froyok greentooth
    I already fixed the shader (but didn't tested it with Substance Painter 1). An error should appear in the log window, what do you get ?
  • christopheduron
    Offline / Send Message
    christopheduron polycounter lvl 2

    [GenericMaterial] FS Shader parameters/states log:

    [GenericMaterial] ------------------

    [GenericMaterial] File index:

    [GenericMaterial] 0: shader-skeleton.frag.glsl

    [GenericMaterial] 1: shader-common.frag.glsl

    [GenericMaterial] 2: lib-utils.glsl

    [GenericMaterial] 3: pbr-alpha-test-dithering.glsl

    [GenericMaterial] 4: lib-sampler.glsl

    [GenericMaterial] 5: lib-defines.glsl

    [GenericMaterial] 6: lib-pbr.glsl

    [GenericMaterial] 7: lib-env.glsl

    [GenericMaterial] 8: lib-normal.glsl

    [GenericMaterial] 9: lib-random.glsl

    [GenericMaterial] 10: lib-alpha.glsl

    [GenericMaterial]

    [GenericMaterial] pbr-alpha-test-dithering.glsl:13 | Special comment that is not a 'state', a 'param', or a 'stacks' definition

    [GenericMaterial] pbr-alpha-test-dithering.glsl:14 | Special comment that is not a 'state', a 'param', or a 'stacks' definition

    [GenericMaterial] pbr-alpha-test-dithering.glsl:15 | Special comment that is not a 'state', a 'param', or a 'stacks' definition

    [GenericMaterial] Auto params infos:

    [GenericMaterial] ------------------

    [GenericMaterial] The uniform 'dither[0][0]' will never be set.

    [GenericMaterial] The uniform 'dither[1][0]' will never be set.

    [GenericMaterial] The uniform 'dither[2][0]' will never be set.

    [GenericMaterial] The uniform 'dither[3][0]' will never be set.

    [GenericMaterial] The uniform 'dither[4][0]' will never be set.

    [GenericMaterial] The uniform 'dither[5][0]' will never be set.

    [GenericMaterial] The uniform 'dither[6][0]' will never be set.

    [GenericMaterial] The uniform 'dither[7][0]' will never be set.

    [GenericMaterial] Creation of the shader pbr-alpha-test-dithering failed



    This :)

  • Froyok
    Offline / Send Message
    Froyok greentooth
    Okay, I see the problem. I published an updated version, you can download it again from the Substance Share page. :)
  • christopheduron
    Offline / Send Message
    christopheduron polycounter lvl 2
    Yup, it's working now! I really appreciate the instantaneous trouble shooting! :+1:
Sign In or Register to comment.