[SOLVED] Transparent textures are opaque.

Started by Brawling Moi, March 29, 2014, 02:41:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

March 29, 2014, 02:41:08 PM Last Edit: April 03, 2014, 05:48:49 PM by Brawling Moi
Hello, one of my textures are transparent, but in the game is opaque (black or white). Tried importing it as CMPR and RGBA53, but no luck. Besides, in HasPalette is set to False. I made sure it has an Alpha channel in Gimp too.

Real Texture:
http://s1293.photobucket.com/user/elaaviaports/media/HACA01_a6001a4d_2_zps60003854.png.html

In the game: http://s1293.photobucket.com/user/elaaviaports/media/alpha_zps975e2862.png.html

There are two options for transparency in brawl. The first is the transparency you'd get from like erasing with gimp and the other is the darker the color is the more transparent it is.

Anyways, I noticed that if you hit re-encode on the pictures that use black as a transparency base, up in info is says "Transparency: 0" while for the ones that use the normal transparency it says "Transparency: 1"

I think with the black transparency it makes anything normally transparent black.

Anyways, I found that this isn't something you can change with brawlbox. Maybe there's an option to change it in gimp?

If you can't find it, try exporting an image from brawlbox that uses normal transparency (has the option already set) and copy and pasting your image onto that. Just another idea I had.

I suppose, alternatively, you could try coloring all of the transparency on your picture to black and see what that does.
¸´............Êrîçô>9000............`¸
'‹,¸¸,«^*^›,,¸¸,,‹^*^»,¸¸,‹'

The problem is because of the model, not the texture.
Go to the properties of the material that uses that texture and set these values accordingly.

Under "Alpha Function":
128
GreaterOrEqual
And
255
LessOrEqual

Under "Material"
ZCompareLoc: True

Also, make sure EnableBlend under "Blend Mode" is set to False.

Now go to the shader attached to that material.
Go to Stage0's properties.
Assuming you're using the Brawlbox default shader, change these values under "c TEV Alpha Env":
AlphaSelectionC: Zero
AlphaSelectionD: TextureAlpha

Use CMPR or whatever Brawlbox recommends for the texture format.

Quote from: BlackJax96 on March 29, 2014, 06:00:44 PM
The problem is because of the model, not the texture.
Go to the properties of the material that uses that texture and set these values accordingly.

Under "Alpha Function":
128
GreaterOrEqual
And
255
LessOrEqual

Under "Material"
ZCompareLoc: True

Also, make sure EnableBlend under "Blend Mode" is set to False.

Now go to the shader attached to that material.
Go to Stage0's properties.
Assuming you're using the Brawlbox default shader, change these values under "c TEV Alpha Env":
AlphaSelectionC: Zero
AlphaSelectionD: TextureAlpha

Use CMPR or whatever Brawlbox recommends for the texture format.
Wow, thanks! I guess it is possible to make my sword's texture partially transparent if I just reverse the process!
¸´............Êrîçô>9000............`¸
'‹,¸¸,«^*^›,,¸¸,,‹^*^»,¸¸,‹'

If you want something partially transparent, just turn EnableBlend to true.
Don't set any of the alpha settings I described above, that's only for full transparency.

I'm trying to turn something partially transparent that uses alpha as transparency.

I erased the image to partial transparency with gimp and had to change the format of the texture to cl4 for it to show the partial transparency in brawl box. With blend either on or off it looks like this in-game.


While it originally looks like this
¸´............Êrîçô>9000............`¸
'‹,¸¸,«^*^›,,¸¸,,‹^*^»,¸¸,‹'

Quote from: BlackJax96 on March 29, 2014, 06:00:44 PM
The problem is because of the model, not the texture.
Go to the properties of the material that uses that texture and set these values accordingly.

Under "Alpha Function":
128
GreaterOrEqual
And
255
LessOrEqual

Under "Material"
ZCompareLoc: True

Also, make sure EnableBlend under "Blend Mode" is set to False.

Now go to the shader attached to that material.
Go to Stage0's properties.
Assuming you're using the Brawlbox default shader, change these values under "c TEV Alpha Env":
AlphaSelectionC: Zero
AlphaSelectionD: TextureAlpha

Use CMPR or whatever Brawlbox recommends for the texture format.
Thank you, textures are fine now! :)

Quote from: Erico9001 on March 29, 2014, 07:10:10 PM
I'm trying to turn something partially transparent that uses alpha as transparency.

I erased the image to partial transparency with gimp and had to change the format of the texture to cl4 for it to show the partial transparency in brawl box. With blend either on or off it looks like this in-game.


While it originally looks like this


Are you trying to make the original semi-transparent? Like, see-through, but not invisible.
What's the texture look like (not in Brawlbox, the original file)?

I didn't create the model so I don't have that. However, I'm pretty sure the person that made the model got the texture from this picture

While in-game it looks like this
¸´............Êrîçô>9000............`¸
'‹,¸¸,«^*^›,,¸¸,,‹^*^»,¸¸,‹'

I don't really understand what you're trying to do. The original seems to match, aside from that symbol in the middle.

I'm trying to make it more like how it looks in xenoblade, the second picture. That's the best picture I could find of it online, but you can see it if you zoom in. It's semi-transparent, kind of like blue glass. The model/texture I'm using in brawl right now is just a solid blue, and I want to make it semi-see through.
¸´............Êrîçô>9000............`¸
'‹,¸¸,«^*^›,,¸¸,,‹^*^»,¸¸,‹'

Oh. Take the original and set the texture to CMPR and set EnableBlend to True on the material. Keep the settings you have the same.

Then all you have to do is make the actual texture semi-transparent and it should show like that. If you want it to "glow", you can also go to the material properties -> LightChannel1 -> Color and set Enabled to False.


March 31, 2014, 01:28:14 AM #12 Last Edit: March 31, 2014, 01:58:45 AM by Erico9001
Oh! It worked, I just had to do rgba8 instead of cmpr :)

Edit: Wow, looks really good. I think the glow is helping too.
¸´............Êrîçô>9000............`¸
'‹,¸¸,«^*^›,,¸¸,,‹^*^»,¸¸,‹'

Quote from: Brawling Moi on March 29, 2014, 07:48:37 PM
Thank you, textures are fine now! :)
Quote from: Erico9001 on March 31, 2014, 01:28:14 AM
Oh! It worked, I just had to do rgba8 instead of cmpr :)

Edit: Wow, looks really good. I think the glow is helping too.

Glad I could help out.