Page 1 of 1

Blocky sprite thing...

Posted: Mon Mar 31, 2008 23:57
by Induna
Can somebody tell me why this is this happening?


blocky


It happens with a few other monsters too.

Posted: Wed Apr 02, 2008 22:20
by Extreme
hmm, the black should be transparent, have u changed any of the sprites to the models? cause it must be a speciell colour to make it transparent. (no idea what name is for color soo called it speciell" :P

Posted: Fri Apr 04, 2008 18:05
by Induna
No, I haven't edited any of the sprites. They just came up like that.

I looked in the wad and they are png rather than the usual bmp. They do have a dark grey background. What makes that area of the sprite transparent ingame? Is it in the gzdoom cfg?

Posted: Fri Apr 04, 2008 19:56
by Graf Zahl
No. PNGs define a transparent color. If that is not defined you will get this effect.

Posted: Sat Apr 05, 2008 11:27
by Extreme
not png.. but BMP.. but can't u load pictures in ps2 and save as transulent png filw?

Posted: Sat Apr 05, 2008 11:59
by Enjay
If the sprites are OK, you could be playing with a version still affected by this bug.
http://forum.zdoom.org/viewtopic.php?f= ... &sk=t&sd=a
Induna wrote:...rather than the usual bmp.
Graphics in a Doom WAD are not in BMP format. They are their own format. Editing tools usually convert them to BMPs when exporting them for easy editing. They don't have to use BMP format for that though. Older Doom tools, from a time when BMP was a less common format, used other graphic types, eg gif. However, that doesn't change the fact that the graphics in the WAD were Doom format and not GIF, BMP or any other better known format.

http://doom.wikia.com/wiki/Picture_format

Posted: Sun Apr 06, 2008 20:08
by Induna
OK thanks. I've just upgraded to the lastest version of gzdoom as I was using 1.0.29. I played the level again and the problem seems to have gone.

To Enjay: Yeah, I just assumed they were BMP as that's how they show up in the wad editor. My mistake.

To Graf: Just one other question. You mentioned it's the PNG that sets the transparency colour in sprites. How does it do that, or rather, how do people make new sprites/monsters so that you don't get that blocky effect? I had a go at changing a sprites colour, just for curiosity sake and that block effect came up. Is there a thread or tutorial on how to do this properly?

Posted: Sun Apr 06, 2008 20:34
by Enjay
PNGs can have transparency set in them. This is done by the graphics editing tool you use. eg, I use Paint Shop Pro and when you save a PNG with it, you can click a "Run Optimizer" button an in there you set the colour that will be used to mark transparent areas of the graphic. Any decent graphics editor should have something similar. You will still have to use a tool to set offsets for sprites. XWE and Slumped can do it in a GUI and there is Randy's setpng command line tool.

Posted: Mon Apr 07, 2008 8:46
by Induna
Thanks.