Blocky sprite thing...

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Induna
Posts: 34
Joined: Sun Jul 23, 2006 17:39
Location: England

Blocky sprite thing...

Post by Induna »

Can somebody tell me why this is this happening?


blocky


It happens with a few other monsters too.
Extreme
Posts: 15
Joined: Sun Mar 30, 2008 15:50

Post 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
User avatar
Induna
Posts: 34
Joined: Sun Jul 23, 2006 17:39
Location: England

Post 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?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

No. PNGs define a transparent color. If that is not defined you will get this effect.
Extreme
Posts: 15
Joined: Sun Mar 30, 2008 15:50

Post by Extreme »

not png.. but BMP.. but can't u load pictures in ps2 and save as transulent png filw?
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post 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
User avatar
Induna
Posts: 34
Joined: Sun Jul 23, 2006 17:39
Location: England

Post 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?
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post 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.
User avatar
Induna
Posts: 34
Joined: Sun Jul 23, 2006 17:39
Location: England

Post by Induna »

Thanks.
Locked

Return to “GZDoom”