Low range of blitting transparency

Started by Irony, December 25, 2012, 09:34:35 PM

Previous topic - Next topic

Irony

Hi,
first of all, thank you Egon for the great Engine. I am using it for a Wing-Commander-like space game (quite a niche on Android), which is making good progress.

My question: When I do a blit, and set the transparency value higher than ~ 10, the blit is fully opaque. Below that, it varies from fully transparent to opaque like it should. But it seems strange that the range of transparency is so low, like only 3 or 4 bits from transValue are actually used.
Is this caused by the engine, or the hardware I am using? I kinda shudder at the thought that my blits will have a different transparency on each end user device...

EgonOlsen

#1
That behaviour mimics the behaviour of the hardware renderer of desktop jPCT, which itself mimics the behaviour of the software renderer. It's like it is for historical/compatibility reasons. You can adjust this with http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#glTransparencyMul and http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#glTransparencyOffset.

Irony

Cool! You even work on christmas day :)
thx a lot