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

Pages: 1-

SDL question

Name: Anonymous 2012-09-29 14:54

I'm learning SDL right now.
What are the advantages of color keying? Isn't it better to use transparent PNGs instead? It's easier and you can even have semi-transparency.

Name: Anonymous 2012-09-29 15:01

It's probably either quicker or not.

Name: Anonymous 2012-09-29 15:08

>>1
It's useful for pixelart graphics and takes less bandwidth.

Name: Anonymous 2012-09-29 15:09

>>2
It probably is. I wonder how much quicker though.
Will I run into problems when trying to move around 100+ animated sprites? Actually, I guess I'll just try.

Name: Anonymous 2012-09-29 15:12

>>1
You love flowers?  You know who else loved flowers?  HITLER

Name: Anonymous 2012-09-29 15:15

Lower filesizes. You have one less channel because you're just using eye burning pink instead of alpha.

Name: Anonymous 2012-09-29 15:15

It doesn't require an alpha channel. I doubt there's any noticeable difference in speed.

Name: sage 2012-09-29 15:16

>>6
Hm, okay. Thanks. So if I don't care about some extra kilobytes, using transparent PNGs is fine.

Name: Anonymous 2012-09-29 15:17

Last I checked, SDL didn't support transparency.

Name: Anonymous 2012-09-29 15:22

>>8
Sure. And I could be wrong on this, but you might need to set it to a different color mode that supports alpha transparency. If you only need "binary" transparency (opaque or transparent) color keying may be faster and use less memory.

Name: Anonymous 2012-09-29 15:27

SDL
making toy programs, I see

Name: Anonymous 2012-09-29 15:31

>>11
SDL is perfectly fine for small projects.

Name: Anonymous 2012-09-29 15:36

>using open source
ISHYGDDT

Name: Anonymous 2012-09-29 15:38

>>13
+1 upgoated

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