Transcluencies


Imerion

Member
Joined
Feb 24, 2005
Messages
218
How do I make objects transcluent? Is there a simple way to do it or do I have to use Blendops?
 
You can use the local 'flags' variable if you want 50% transparency, value 4 will give you that. For a more specific transparancy percentages you can use the local 'alpha' variable, which can have a value ranging from 0 to 255. This is much more CPU intensive though than using 'flags', so use them only when absolutely necessary.

Blendops are only for the real fancy effects, I don't know if they work on the Gp32/Gp2x, but if they do they will probably be too costly CPU/memory wise anyway.
 
Imerion posted on Mar 9 2006 at 02:59 AM said:
How do I make objects transcluent? Is there a simple way to do it or do I have to use Blendops?

I don't know Fenix but it is allowing inline assembler?

If so then I could help perhaps...

If we are talking about fast transcluent routines then there are 4 choices:
- lockuptables for palettized modes (the 8bpp is such one)
- color addition
- color substraction
- logical bitwise OR (it doesn't look correct but it's interesting effect)

For full aplhablending there is need of multiplications and some trick with ALU are gone too. So it will be much slower.

How many transluent object do you plan to use? Perhaps using just those "blendops" will be sufficient. There is also support of hardware transluency in the GP2x's chipset but it wasn't figured out (yet).
 
Last edited by a moderator:
Thanks for the help. Flags and alpha will do for now. Radek, I might return to you if I need any of those methods explained (if its ok), but for the moment, the built in functions are enough, since its only a few objects.
 
i'm afraid radek's functions are not usable in fenix ^^, it's way too high level for that, and i hope for you the translucencies work, on the gp32 they're very bugged, dunno how it is on the gp2x
 
Racemaniac posted on Mar 12 2006 at 09:08 AM said:
i'm afraid radek's functions are not usable in fenix ^^, it's way too high level for that, and i hope for you the translucencies work, on the gp32 they're very bugged, dunno how it is on the gp2x
It seems a few bugs are fixed on gp2x, including mode7.
 
Last edited by a moderator:
Those arents bugs fixed, it is a completely new port. while alpha, etc are bugged in Chuis gp32 version, they work fine in Puck2099s gp2x version. I`m happy about that.

And thanks for the tip with the flags, Moogle, didn`t know that it`s less hardware intense. Will come in handy ^^
 
Quiest posted on Mar 18 2006 at 12:46 AM said:
Those arents bugs fixed, it is a completely new port. while alpha, etc are bugged in Chuis gp32 version, they work fine in Puck2099s gp2x version. I`m happy about that.

And thanks for the tip with the flags, Moogle, didn`t know that it`s less hardware intense. Will come in handy ^^
I thought as much, due to the way they both ran slightly differently.
 
Last edited by a moderator:
Back
Top