.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   Bug: Black background sprite (http://forum.shrapnelgames.com/showthread.php?t=44312)

Swan November 11th, 2009 07:06 AM

Black background sprite
 
Yesterday i had a strange bug: some of my own sprite, which all worked perfectly until then, begun to show
their black background during battle.
Someone have an idea on how to fix it

Stavis_L November 11th, 2009 09:19 AM

Re: Black background sprite
 
This probably belongs in the modding sub-forum...

Did you edit the graphics recently (perhaps indirectly, via an automated tool or indexer?) In my experience, the black background (when you've verified that the RGB values are all correct) is due to an alpha channel having been added. Some graphics tools don't let you easily select whether to add the alpha channel to .tga or not.

Swan November 11th, 2009 09:38 AM

Re: Black background sprite
 
Well yes, i edited them recently, but just mirrored them(x=-x)
so, there is a way to fix it?

Stavis_L November 11th, 2009 10:11 AM

Re: Black background sprite
 
Quote:

Originally Posted by Swan (Post 717873)
Well yes, i edited them recently, but just mirrored them(x=-x)
so, there is a way to fix it?

Well...it depends on your graphics editing program. If you can save it again without the alpha channel, and that's the reason (rather than invalid RGB value for black, for instance) then you should be good. If the program doesn't explicitly indicate alpha channel, it might say something like 24bit (no alpha) vs. 32bit (with alpha).

Swan November 11th, 2009 01:51 PM

Re: Black background sprite
 
ok, i tried to save it again, but it never let me choose alpha channel or not, not even 32/24 bit.
I use GIMP.

Swan November 15th, 2009 01:04 PM

Re: Black background sprite
 
Found how to fix it: save sprite as jpg, work on them, resave as tga and voilĂ*


All times are GMT -4. The time now is 06:22 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.