(SOLVED) Alpha is black on texture (QUESTION)

(SOLVED) Alpha is black on texture (QUESTION)

Postby Mortimer » 12 Mar 2022, 20:29

I'm trying to make a 2d-ish kart, but the alpha doesn't seem to work in-game.
Attachments
unknown (5).png
In Blender
unknown (4).png
In-game
Last edited by Mortimer on 13 Mar 2022, 16:28, edited 1 time in total.
Mortimer
Mortimer
 
Posts: 7
Joined: 04 Mar 2022, 21:22

Re: Alpha is black on texture (QUESTION)

Postby tempAnon093 » 13 Mar 2022, 13:40

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
aka. GumballForAPenny
User avatar
tempAnon093
 
Posts: 416
Joined: 02 Feb 2019, 12:09

Re: Alpha is black on texture (QUESTION)

Postby Mortimer » 13 Mar 2022, 16:31

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! :D
Attachments
mort fixed.png
Working in-game!
Mortimer
Mortimer
 
Posts: 7
Joined: 04 Mar 2022, 21:22

Re: Alpha is black on texture (QUESTION)

Postby tempAnon093 » 13 Mar 2022, 23:24

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.
aka. GumballForAPenny
User avatar
tempAnon093
 
Posts: 416
Joined: 02 Feb 2019, 12:09

Who is online

Users browsing this forum: No registered users and 1 guest