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

Question about GDBLTFAST_COLORIZE


Question about GDBLTFAST_COLORIZE

Postby ppcStudios » Jul 15, 2003 @ 1:20pm

I have an animated selection cursor (you know, a spinning box that shows what unit is selected) that has 2 colors - black and the basic color of the playerside.

I created the basic cursor using 2 colors - black and grey (128,128,128) with a transparent color of magenta, and figured I would use GDBLTFAST_COLORIZE to alter the color of grey to the current playerside color (white, yellow, orange, red, green, dark blue, light blue or remain grey), but I find that trying to colorize to white doesn't alter the cursor color at all, and colorizing to yellow simply presents a 'muddy' yellow color.

I tried adjusting the dwColorizeOpacity value, but I see no effect beyond a value of 128 (probably due to the value for my base color grey).

My guess is that the problem revolves around my selection of a base color (in this case grey (128, 128, 128), resulting in problems blending to colors lighter than that - white or yellow. I tried using a ligher base color, but found that darker colors were being washed out.

What base color should I be using for colorization? I thought the mid-range grey would be perfect for this, but it seems I was wrong. Is there some combination of base color/colorization opacity that gives the best results?

I'll keep playing with the combo to try and find something that works well with all colors, but if anyone knows offhand it would be greaty appreciated. :D
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby ppcStudios » Jul 15, 2003 @ 1:42pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby Johan » Jul 15, 2003 @ 2:56pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby ppcStudios » Jul 15, 2003 @ 3:34pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby Johan » Jul 15, 2003 @ 4:07pm

Actually, the colorize function of GapiDraw is quite advanced and works in the HSV color space. I'll add some pictures to the documentation to show how they all work...

Image

Basically what's white will stay white when colorizing. If you want white to change color hue you want a color overlay filter, something GapiDraw does not support.
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby ppcStudios » Jul 15, 2003 @ 4:22pm

Yep, I understood that white and black will remain unchanged, but shouldn't the other colors blend according to the dwColorizeOpacity setting? Shouldn't 255 equal essentially no blend with the dwColorizeColor being blitted for everything other than white and black? I'm not seeing that - I'm seeing the blend get no stronger than 50% (at least with the colors I'm using).
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby Johan » Jul 15, 2003 @ 10:51pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby ppcStudios » Jul 16, 2003 @ 12:08am

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby okku » Nov 13, 2003 @ 6:48pm

okku
pm Member
 
Posts: 58
Joined: Nov 11, 2002 @ 8:51am
Location: Sweden


Postby Johan » Nov 13, 2003 @ 10:27pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby okku » Nov 14, 2003 @ 9:40am

okku
pm Member
 
Posts: 58
Joined: Nov 11, 2002 @ 8:51am
Location: Sweden


Postby Johan » Nov 14, 2003 @ 10:01am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby InexorableTash » Nov 15, 2003 @ 11:16pm

User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

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