Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Palette effects


Palette effects

Postby Squirrel » Jun 30, 2006 @ 1:30pm

Since PF surface contains RGB values and not indexes of palette table, I see no way to change palette during run-time, exept changing system palette. I can't find the way to do this on PPC. Did someone do this?
Squirrel
pm Member
 
Posts: 26
Joined: Jun 2, 2006 @ 3:56pm
Location: Rus


Postby fast_rx » Jun 30, 2006 @ 3:09pm

I use a lookup table for fire/smoke effects in Assaultaire.

I use an additive blit to a temporary surface. Then I scan through the pixels and use the color value as a lookup into my color table.
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Kzinti » Jun 30, 2006 @ 3:18pm

You can also check the "Firework" sample that comes with PocketHAL... It uses a palette to render the fire particles.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Squirrel » Jun 30, 2006 @ 4:23pm

fast_rx wrote:I use an additive blit to a temporary surface. Then I scan through the pixels and use the color value as a lookup into my color table.


I do the same for now, and it works quite fast, but I need it work even faster. Remember Warcraft2, unit in there has colors of the player which owns it. When there are a lot of units on the screen, changing pixels can take a lot of time. And I have the same problem.
Squirrel
pm Member
 
Posts: 26
Joined: Jun 2, 2006 @ 3:56pm
Location: Rus


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