Problem with Sprites - Solved

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
lukas
Posts: 586
Joined: Sun Apr 04, 2010 10:37 am
Location: Belgrade, Serbia

Problem with Sprites - Solved

Post by lukas »

This problem is solved. Thanks Gez, Enjay and Zippy for your help.

While working on my first mod - Operation Super Soldat - http://forum.zdoom.org/viewtopic.php?f=19&t=25511, I encountered this problem.
When I import this sprite in the game, Image
It appears ingame like this:
Image

Any help with this will be greatly appreciated.
Last edited by lukas on Tue Apr 06, 2010 7:41 am, edited 2 times in total.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Problem with Sprites

Post by Gez »

Cyan is not transparent.

Use something like the Gimp or Irfanview to make the cyan area actually transparent, and save as a PNG. Then import that PNG again.
User avatar
lukas
Posts: 586
Joined: Sun Apr 04, 2010 10:37 am
Location: Belgrade, Serbia

Re: Problem with Sprites

Post by lukas »

Cyan is not transparent.

Use something like the Gimp or Irfanview to make the cyan area actually transparent, and save as a PNG. Then import that PNG again.
Thanks. I'll try that.

EDIT - Didn't work. Here's the PNG with transparency (I made the background transparent with GIMP) and how it appears ingame

Image
Image

EDIT 2 - I didn't mention it before, but maybe it has something to do with the fact that the sprites were made in Wolf3d palette. I don't know how to make them work with Doom palette.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Problem with Sprites

Post by Gez »

It works for me:
User avatar
Enjay
 
 
Posts: 27140
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Problem with Sprites

Post by Enjay »

Looks like whatever you are using to put it into your WAD/zip is forcing it into the Doom palette and ruining the transparency at the same time.

Try the attached (obviously I only has one frame so they don't do anything).

Image
nazi.zip
Of course, although I used a WAD, you don't have to put things into WADs at all. If you use the zip structure, you may find it easier.

[edit] Dammit Gez :P [/edit]
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Problem with Sprites

Post by Gez »

Powered by Slade 3! :mrgreen:
User avatar
lukas
Posts: 586
Joined: Sun Apr 04, 2010 10:37 am
Location: Belgrade, Serbia

Re: Problem with Sprites

Post by lukas »

Thanks for the help, both of you. :)

Your sprites work, which is very strange because they seem almost identical to mine. :?

I will compare your and my sprites in GIMP to see what's the difference.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Problem with Sprites

Post by Gez »

I made no changes to it, except to give it offsets with SLADE3 (that's the [wiki]grAb[/wiki] chunk). Image data is unmodified.
User avatar
lukas
Posts: 586
Joined: Sun Apr 04, 2010 10:37 am
Location: Belgrade, Serbia

Re: Problem with Sprites

Post by lukas »

I made no changes to it, except to give it offsets with SLADE3 (that's the grAb chunk). Image data is unmodified.
:? I just don't get it. The sprites are the same.

:bang: I've tried everything, and still my sprites just won't work.

If it's not too much trouble, could you describe step-by-step how to make the background transparent with Gimp. Maybe I'm doing something wrong there.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Problem with Sprites

Post by Gez »

But, as I tell you, I have used your sprite.

The question is not about how to make it transparent, it IS transparent. The question is actually "how to you import this graphic into a wad file". Because it is there that the problem happens.

I'm going to guess that you're not using Slumped or Slade3.
User avatar
lukas
Posts: 586
Joined: Sun Apr 04, 2010 10:37 am
Location: Belgrade, Serbia

Re: Problem with Sprites

Post by lukas »

I use XWE for importing graphics. But I'll try slade and slumped - maybe that's the problem.

EDIT - I tried using slumped and it works! :biggrin:
Thanks for the help, Gez.
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: Problem with Sprites

Post by Zippy »

For the record, to load PNGs in XWE you need to use Entry->Load (Raw). Once it's loaded like that XWE will recognize it as a PNG and tell you so when you select it in the lump list, and let you change the offsets, etc.
User avatar
lukas
Posts: 586
Joined: Sun Apr 04, 2010 10:37 am
Location: Belgrade, Serbia

Re: Problem with Sprites

Post by lukas »

Oh, so that's the problem. I always import sprites with Entry->Load.
:) Thanks Zippy.
User avatar
Enjay
 
 
Posts: 27140
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Problem with Sprites

Post by Enjay »

Gez wrote:I made no changes to it, except to give it offsets with SLADE3 (that's the [wiki]grAb[/wiki] chunk). Image data is unmodified.
And just for the record

I made no changes to it, except to give it offsets with grabPNG. Image data is unmodified.



Also @ lukas for future reference, it is preferred if you do not edit your first post to remove the question. someone else may come along with the same question as you but now they can't easily see what you asked.
User avatar
lukas
Posts: 586
Joined: Sun Apr 04, 2010 10:37 am
Location: Belgrade, Serbia

Re: Problem with Sprites

Post by lukas »

Also @ lukas for future reference, it is preferred if you do not edit your first post to remove the question. someone else may come along with the same question as you but now they can't easily see what you asked.
OK, I'll edit the first post and put back the question along with a note that the problem is solved.
Locked

Return to “Editing (Archive)”