Jump to content
Sim Monsters

Recommended Posts

Edy    5,694

This code for material file makes your stuff transparent ingame

Remember image needs to be transparent for it to work. Enjoy!

material YourImage.png
{
	technique
	{
		pass
		{
			scene_blend alpha_blend
			alpha_rejection greater 0
			depth_write off
			texture_unit
			{
				texture YourImage.png
			}
		}
	}
}

 

  • Upvote 1

Share this post


Link to post
Share on other sites
ChaoticMayhem    115
On 9/11/2015 at 0:14 PM, Edy said:

This code for material file makes your stuff transparent ingame

Remember image needs to be transparent for it to work. Enjoy!


material YourImage.png
{
	technique
	{
		pass
		{
			scene_blend alpha_blend
			alpha_rejection greater 0
			depth_write off
			texture_unit
			{
				texture YourImage.png
			}
		}
	}
}

 

Trying to make a body transparent and it's not working even with this. Changing the opacity makes the body black in game. I know that this is from a while ago as well.

Share this post


Link to post
Share on other sites
Edy    5,694
5 hours ago, ChaoticMayhem said:

Trying to make a body transparent and it's not working even with this. Changing the opacity makes the body black in game. I know that this is from a while ago as well.

The image also has to have transparency

Share this post


Link to post
Share on other sites
ChaoticMayhem    115
Just now, Mr. Self Destruct said:

Select the area you want to have transparency, and lower the opacity.

Whenever I do this, the body shows up black in game not clear-ish

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

×