transparency

Started by raft, August 05, 2010, 03:39:54 PM

Previous topic - Next topic

raft

i've problem with transparent objects on nexus one. they seem rigid, not transparent.

this is how it looks on emulator:


and on N1:


it was ok on G1 too. is there anything i can try ?

EgonOlsen

Strange...is this always the case or just on some objects? Have you tried to use additive transparency instead? Does an alpha channel in the texture has any effect?

raft

seems as happens for all objects. alpha channel in texture seem to have effect
additive transparency also works, as in the screenshot

EgonOlsen

What kind of effect does a texture's alpha has? Does it help to make things transparent even in default mode? What's the value you are using for transparency?

raft

after you asked, i applied color-to-alpha conversion in gimp. i'm not sure what it did exactly ::) i'll send it with email
yes, it works in default mode. i didnt try additive mode for that.

values are below. but it didnt working with default Config values either

Config.glTransparencyMul = 1f / 1000;
Config.glTransparencyOffset = 0.0f;

Object3D.setTransparency(500);         

EgonOlsen

Have you tried disabling the conversion to 16bit for these textures?

raft


EgonOlsen

There's a method in Texture..enable4bpp(..) or similar. Just set that to false on that texture right after loading. In addition, could you try to adjust transparency in additive mode and when using a texture with alpha, please? My guess is, that this will show no effect...

raft

you mean enabling it. doc says it's false by default. didnt help, tried both true and false.
and yes, setting transparency value has no effect in additive mode as you expected

EgonOlsen

Yes, default is indeed false. I'm always setting it to true, so i somehow thought that this was default...anyway...

Just to be 100% sure: The AE-jar that you are using on the N1 is the most current, isn't it? I'm asking because there was a bug in a earlier version that had exactly this effect.

raft

yes it's latest. to be 100% sure, i just downloaded it again. diff returns no result

EgonOlsen


raft

partially solved. transparency came back with this jar, but object still seem rigid from some distance. ie, if you come closer it becomes transparent.

additive mode:


default mode same camera distance


in emulator, same camera distance. only difference is screen resolution but shouldnt differ i suppose

EgonOlsen

Is there some light source in that scene? If so, please try to disable it to see if that changes something.

raft

yes, there is a light source inside the ball. disabling it helped.