Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Per pixel alpha?

Author
Message
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 26th Feb 2008 06:50
I know that you can set an alpha value for an entire sprite. Is there a means for setting an alpha on select points in a bitmap? Some of the things I want to do require a bit of layering where my bitmap needs to show some see-through.

Thanks,

Lilith, Night Butterfly
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 26th Feb 2008 10:47
This question is more likely to be aswered here:

http://forum.thegamecreators.com/?m=forum_read&i=4
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 26th Feb 2008 14:33
Make you piccy in photoshhop/paintshop/whatever with transparent bits, translucent bits, anti-aleased edges - whatever. Then export as PNG and use this rather than a BMP.


The word "Gullible" cannot be found in any English Dictionary.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 26th Feb 2008 19:05
Quote: "Make you piccy in photoshhop/paintshop/whatever with transparent bits, translucent bits, anti-aleased edges - whatever. Then export as PNG and use this rather than a BMP."


Not quite workable. Some effects (at least the ones I'm looking at doing) require per pixel alpha on points that are somewhat mobile. The alpha value changes either over time or over distance. Not all points would have the same fade as the other points.

Lilith

Lilith, Night Butterfly
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 26th Feb 2008 23:05
Oh - then I would look into memblocks:
image->memblock
manipulate memblock alpha
memblock->image


The word "Gullible" cannot be found in any English Dictionary.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 26th Feb 2008 23:17
Kewlsome. I'll have a look. That's a section I skimmed over as something not pertinent to my immediate needs. I'm wondering, and may check later, to see if I can manipulate the MSDs of the colors in a bitmap with something like

dbRGB(255, 255, 192) + alpha << 24;

Lilith, Night Butterfly
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 26th Feb 2008 23:28
Quote: "Make you piccy in photoshhop/paintshop/whatever with transparent bits, translucent bits, anti-aleased edges - whatever. Then export as PNG and use this rather than a BMP."


BTW, for those without artistic capability but with a mathematical bent, I'm inclined to use a freeware program called POV-Ray for a lot of my graphics. With POV-Ray you can describe items geometrically, apply colors and textures, place lighting and create particle effects such as mist and fire. The results are 2D but it's good for backgrounds. It also supports alpha transparency and can output in .png format. It can be found at http://www.povray.org.

Lilith, Night Butterfly

Login to post a reply

Server time is: 2024-11-17 07:05:56
Your offset time is: 2024-11-17 07:05:56