7 posts in this topic

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
			}
		}
	}
}

 

1

Share this post


Link to post
Share on other sites
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.

0

Share this post


Link to post
Share on other sites
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

0

Share this post


Link to post
Share on other sites
3 hours ago, Edy said:

The image also has to have transparency

How do I make the image have transparency?

0

Share this post


Link to post
Share on other sites
1 hour ago, ChaoticMayhem said:

How do I make the image have transparency?

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

0

Share this post


Link to post
Share on other sites
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

0

Share this post


Link to post
Share on other sites
2 minutes ago, ChaoticMayhem said:

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

Then you probably didn't export the image/clone the truck right.

0

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