.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old November 11th, 2009, 07:06 AM
Swan's Avatar

Swan Swan is offline
Second Lieutenant
 
Join Date: Mar 2008
Location: Treviso; Italy
Posts: 420
Thanks: 22
Thanked 19 Times in 13 Posts
Swan is on a distinguished road
Default 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
Reply With Quote
  #2  
Old November 11th, 2009, 09:19 AM
Stavis_L's Avatar

Stavis_L Stavis_L is offline
Second Lieutenant
 
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
Stavis_L is on a distinguished road
Default 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.
Reply With Quote
  #3  
Old November 11th, 2009, 09:38 AM
Swan's Avatar

Swan Swan is offline
Second Lieutenant
 
Join Date: Mar 2008
Location: Treviso; Italy
Posts: 420
Thanks: 22
Thanked 19 Times in 13 Posts
Swan is on a distinguished road
Default Re: Black background sprite

Well yes, i edited them recently, but just mirrored them(x=-x)
so, there is a way to fix it?
Reply With Quote
  #4  
Old November 11th, 2009, 10:11 AM
Stavis_L's Avatar

Stavis_L Stavis_L is offline
Second Lieutenant
 
Join Date: Sep 2008
Posts: 466
Thanks: 35
Thanked 95 Times in 60 Posts
Stavis_L is on a distinguished road
Default Re: Black background sprite

Quote:
Originally Posted by Swan View Post
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).
Reply With Quote
  #5  
Old November 11th, 2009, 01:51 PM
Swan's Avatar

Swan Swan is offline
Second Lieutenant
 
Join Date: Mar 2008
Location: Treviso; Italy
Posts: 420
Thanks: 22
Thanked 19 Times in 13 Posts
Swan is on a distinguished road
Default 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.
Reply With Quote
  #6  
Old November 15th, 2009, 01:04 PM
Swan's Avatar

Swan Swan is offline
Second Lieutenant
 
Join Date: Mar 2008
Location: Treviso; Italy
Posts: 420
Thanks: 22
Thanked 19 Times in 13 Posts
Swan is on a distinguished road
Default Re: Black background sprite

Found how to fix it: save sprite as jpg, work on them, resave as tga and voilĂ*
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:26 PM.


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