(SOLVED) Alpha is black on texture (QUESTION)
Posted:
12 Mar 2022, 20:29
by Mortimer
I'm trying to make a 2d-ish kart, but the alpha doesn't seem to work in-game.
Re: Alpha is black on texture (QUESTION)
Posted:
13 Mar 2022, 13:40
by tempAnon093
In Blender, there should be an option for selecting the SuperTuxKart shader of each material. I can't check right now, but I think it's at the bottom in the Materials tab.
The Shader subheadings on this page which have Transparency should help:
https://supertuxkart.net/Materials
Re: Alpha is black on texture (QUESTION)
Posted:
13 Mar 2022, 16:31
by Mortimer
I looked at another person's 2D kart (Toon Marcel), and they put all the transparent materials into the materials.xml file:
- {l Code}: {l Select All Code}
<material name="main.png" shader="alphatest"/>
Now the alpha works in-game!
Re: Alpha is black on texture (QUESTION)
Posted:
13 Mar 2022, 23:24
by tempAnon093
Nice work! I think it's also good to know about the settings that I mentioned, which automatically generate that .xml file when you export a track or kart.