Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

More LibPng!

Name: Anonymous 2011-10-14 12:56

http://old.nabble.com/problem-using-png_set_tRNS-td13425379.html
the only way to add a transparent color using is ... to manually search and swap in IDAT.

PNG is the worst graphics format ever! Use GIF or TGA where possible.

Name: Anonymous 2011-10-14 13:03

Too bad GIF only supports 256 indexed-color palettes.

Name: Anonymous 2011-10-14 13:04

>>2
Invent a proprietary format. Release proprietary bowser plugin. Fuck open source, it produces only crap anyway.

Name: Anonymous 2011-10-14 13:08

To load a PNG image you cant just png *Png = loadPNG(Path), you have to create tons of senseless baroque structs. Reminds me of OpenGL, where before drawing a sprite on screen you have to write pages of boilerplate shit.

Name: Anonymous 2011-10-14 13:34

>>4
OpenGL, where before drawing a sprite on screen you have to write pages of boilerplate shit.
Oh, nothing prevents you from blitting your sprites with glDrawPixels, it will only be ridiculously slower and you won't get free blending, rotation and scaling.

Name: Anonymous 2011-10-14 14:35

>>5
No way you can call glDrawPixels without call 9000 init function before.

Name: Anonymous 2011-10-14 15:13

>>1
Wrong. PNG supports 32-bit RGBA. Note the A for Alpha channel. You implement full transparency by setting the desired pixels to have an Alpha component of zero.

PNG is in fact superior, as it supports fine-grained transparency as well as a full 8-bits of translucency.

Do not use GIF or TGA.

Name: Anonymous 2011-10-14 15:47

>>7
32-bit is 4-times slower than 8-bit. Alpha blending is 10-times slow than simple memcpy.

Name: Anonymous 2011-10-14 15:49

>>7
TGA too supports alpha, and TGA is faster, due to no crappy zlib. TGA also supports RLE (great for sprites).

Name: Anonymous 2011-10-14 15:50

>>8
GPUs are thousands of times faster at drawing transparent and translucent images than software routines running on a CPU.

Name: Anonymous 2011-10-14 16:21

>>10
GPUs are thousands of times more expensive than software routines running on a CPU.

Name: Anonymous 2011-10-14 16:22

>>11
And harder to + bugs + incompatibilities.

Don't change these.
Name: Email:
Entire Thread Thread List