This site is no longer active and is available for archival purposes only. Registration and login is disabled.

About Alpha


About Alpha

Postby BrandG » Jul 5, 2002 @ 3:26pm

I found the alpha setting (SetBlending), and I'm trying to use it to shade a sprite (blit an image, then blit a translucent black square over it). However, the SetBlending seems to make the images fade in over time, and they all come up red. Am I using the wrong function? Has anybody tried to do this shading before?
BrandG
 


Postby Conan » Jul 5, 2002 @ 5:16pm

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby BrandG » Jul 5, 2002 @ 9:04pm

BrandG
 


what I'm using the alpha blend for

Postby Conan » Jul 5, 2002 @ 10:20pm

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby Kzinti » Jul 5, 2002 @ 10:35pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby BrandG » Jul 6, 2002 @ 4:34pm

Actually, I found an even better way (at least, I THINK it's better).

I created a pixel shader based on the ir_shader that you guys were talking about in a previous thread. My pixel shader just takes the current light value, and ramps down all RGB values for each pixel. It's no real framerate hit, and gets great-looking results.

Thanks guys.
BrandG
 


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron