So I have this odd error where a mesh is drawing over itself. It’s a simple wall with a lip running around on the floor. But that floor-lip is being drawn over the wall, and although it doesn’t show in this pic, the wall will draw over the capstone on the top of the wall.
So here’s how I got to this point:
This wall comes from a package I bought, and everything in said package is working perfectly. But I was trying to figure out how to get the walls on the bottom of the screen to not block the view of the player. Since the camera doesn’t rotate, I decided to just make a copy of the wall where I delete the edges I don’t want to see, keeping faces like the trim around the floor. But for some reason my version of Maya crashes when I try to load the fbx file.
So instead I thought: why not change the material so the bits I don’t want are transparent? So I made a copy of the texture with some transparency. And I decided to make the corner edges fade out, since I thought that would look like a nice touch.
The original material used on the walls was a mobile-diffuse. It didn’t seem to support transparency so I just changed it to the standard (specular setup) shader instead. I set the rendering mode to transparent and set the specular to pure black. That’s it; that’s all I did for this material.
What’s going on here, and how do I fix it?