Jump to content
  • 0

Transparent mesh/texture issue?


Hot Shoe

Question

Here is something I've been battling with for far too long recently for my Mankato TNT track. I wanted to redo my fencing and use a different texture for the fencing. However, after trying to load the mesh/texture in RoR using the following code in the material file, the texture does not accept the "code" and does not appear as transparent between the links in the chain link fence. For an example:

 

Code used:

 

material Material.001/SOLID/TEX/RCSFencing.png
{
technique
{
pass
{
                        scene_blend alpha_blend
alpha_rejection greater 0
                        depth_write off
texture_unit
{
texture RCSFencing.png
}
}
}
}

Old texture w/o code:

screenshot_449_zps31796cb7.png

Old texture w/code:

screenshot_450_zpsa5881f5c.png

No matter what code I put in to the material file with the new texture seems to work. It always appears as it does in the first screenshot.

 

Old texture:

RCSFencing_zps2be61a97.png

New texture:

Racetrackfence_zps0bff635d.png

 

Bot images have transparency in between the links. I've have tried numerous changes and fixes in the codes I know of (including the code that came with the track of which I'm using the new texture from), trying to adjust the image in paint.net, and setting the meshes/faces to have the transparent properties of the texture in Blender itself (it works fine there).

 

I'm so stuck on this. Any help is much appreciated!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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
×
×
  • Create New...