Solved Alpha Transparency bug

Discussion in 'Mod Support' started by Bakasan, Feb 4, 2018.

  1. Bakasan

    Bakasan
    Expand Collapse

    Joined:
    Dec 3, 2013
    Messages:
    1,488
    So I have a material/texture to which the vehicle lights and bits of trim are mapped. I've used aplha transparenct to make the headlight glass see-through as it should be, however there are a few bugs.
    screenshot_00037.png
    first you can see the back of the headlight is visible through the crome trim on the grille (both are the same material), even though the chrome part of the texture is not transparent.
    screenshot_00038.png
    the rear fascia is also part of this material (and ATM has no trasparency) however the badge and lock (which are alpha mask meshes of a different material) are not visible.

    Is there any way to correct these errors (ideally without making non-transparent parts of the texture a different material)
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,698
    That looks like a hole. Hence why you can see the headlight.
    How does it look with no transparency (or in Blender?)

    Same for the second.

    Also how does the material settings look?


    Usually, if you have stuff overlapping (and some of them are not supposed to be transparent), it's better to use different materials.
    Using the same material can cause trouble in sorting their transparencies.
     
  3. Bakasan

    Bakasan
    Expand Collapse

    Joined:
    Dec 3, 2013
    Messages:
    1,488
    With no transparency it appears as it should (no headlight visible, rear badge visible)
    in that case, would the only solution be to make non-transparent parts of the texture a different material?
     
  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,698
    If you just need the headlights to be transparent, I advice to create a separate material with transparency just for those. Alpha sorting should be working fine with that.
     
  5. Bakasan

    Bakasan
    Expand Collapse

    Joined:
    Dec 3, 2013
    Messages:
    1,488
    Yeah that's what I ended up doing
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice