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

How many levels of opacity?


How many levels of opacity?

Postby Pejo Software - Per » Mar 6, 2004 @ 6:39pm

How many levels of opacity/alpha does GapiDraw use?

If one is satisfied with 64 levels one can reduce the number of multiplications from 3 to 2 per pixel (if you operate on one pixel).

If you operate on 2 pixels you could do the same and reduce the number of multiplications from 1.5 to 1 per pixel but then you have to use only 32 levels.
Is that enough? How does GapiDraw do it?
User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Pejo Software - Per » Mar 6, 2004 @ 7:44pm

After doing some more thinking I realized that I probably was wrong.
I don't see how it is possible to use reduce it to only one multiplication, I think that the way I came up with would lead to overflow.
User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby StephC » Mar 7, 2004 @ 12:27am

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby bluescrn » Mar 7, 2004 @ 9:58am

User avatar
bluescrn
pm Member
 
Posts: 107
Joined: Jul 6, 2003 @ 4:20pm
Location: Manchester, England


Postby Pejo Software - Per » Mar 7, 2004 @ 10:20am

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Johan » Mar 7, 2004 @ 10:56am

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 Johan » Mar 7, 2004 @ 10:59am

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 Pejo Software - Per » Mar 7, 2004 @ 11:34am

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby bluescrn » Mar 7, 2004 @ 11:44am

User avatar
bluescrn
pm Member
 
Posts: 107
Joined: Jul 6, 2003 @ 4:20pm
Location: Manchester, England


Postby Johan » Mar 7, 2004 @ 11:56am

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


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