Jump to content
Sim Monsters
  • 0
Sign in to follow this  
maxdman

Transparent Texture Help

Question

So I've had this issue since I started messing with transparent textures.  To sum it up its when one texture is in front of another that is transparent, they get all goofy shown below.

Cudspf1.png

If I can somehow resolve this I'd want to update my Monster Jam University as one big going away gift to the community.  Also I want to one-up the people who made the current one FELD has lol.  If someone has a suggestion on how to correct this please let me know

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

What material code are you using? I was having that issue back when i was doing crowd textures and did something in the material file that fixed it. Cant remember the code but if im not busy this weekend i can look for it

Share this post


Link to post
Share on other sites
  • 0
11 hours ago, RockCrwlr said:

What material code are you using? I was having that issue back when i was doing crowd textures and did something in the material file that fixed it. Cant remember the code but if im not busy this weekend i can look for it

I've been using this one for all of my tracks and have had the same issues when I try to do crowd textures, but that only happens sometimes so I'm not sure if it has to do with which material file the transparent texture is on (like a collidable one or not) or what.  But for the sake of this example this is whats in the .material file for the track shown above.

material TreeLine2/SOLID/TEX/TreeLine3.png/VertCol
{
    technique
    {
        pass
        {
            scene_blend alpha_blend
            alpha_rejection greater 0
            depth_write off
            texture_unit
            {
                texture TreeLine3.png
            }
        }
    }
}
material BlueDay/SOLID/TEX/treeline.png/VertCol
{
    technique
    {
        pass
        {
            scene_blend alpha_blend
            alpha_rejection greater 0
            depth_write off
            texture_unit
            {
                texture treeline.png
            }
        }
    }
}

 

5m5IVXC.png

Share this post


Link to post
Share on other sites
  • 0

Here try this. 

 

material ALPHA/TEX/WF15_crowd2.png
{
    receive_shadows off
    technique
    {
        pass
        {
            alpha_rejection greater 0
            //lighting off
            cull_hardware none
            cull_software none
            scene_blend alpha_blend
            alpha_rejection greater_equal 128
            //depth_write off
            texture_unit
            {
                texture WF15_crowd2.png
            }
        }
    }
}

Share this post


Link to post
Share on other sites
  • 0
7 hours ago, RockCrwlr said:

Here try this. 

 

material ALPHA/TEX/WF15_crowd2.png
{
    receive_shadows off
    technique
    {
        pass
        {
            alpha_rejection greater 0
            //lighting off
            cull_hardware none
            cull_software none
            scene_blend alpha_blend
            alpha_rejection greater_equal 128
            //depth_write off
            texture_unit
            {
                texture WF15_crowd2.png
            }
        }
    }
}

I'll give it a try the next time I export something and let you know.  Thanks I appreciate it!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×