I am using #'lispbuilder-sdl:draw-surface-at-* to copy 16x16 PNG tiles
to an offscreen surface (it's a tile-based roguelike game), then copying
the whole composed image to the screen. I am loading the pngs with
#'lispbuilder-sdl-image:load-image. In the old version of the engine,
the transparent parts of the PNGs (i.e. the outline around the object)
was not drawn, and everything looked proper. But since rewriting the
engine the transparency no longer works, and i get ugly black borders
around all my objects instead of seeing through to the previously drawn
tile at that location.

Before and after comparison videos:

http://dto.mamalala.org/rlx.ogv   --- old version with proper
transparency

http://dto.mamalala.org/rlx2.ogv  --- new version with transparency
issues

I've verified in GIMP that the tiles backgrounds are transparent. (The
checkerboard shows through in gimp.) So what gives? Maybe the save
options? There's one that asks whether to save color values of
transparent pixels when you save as PNG...

The PNG files are available here:

http://svn.mamalala.org/listing.php?repname=rlx&path=%2Ftrunk%2Fvm0%
2F&rev=0&sc=0

_______________________________________________
application-builder mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to