www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Terrabus on July 09, 2012, 03:55:27 pm

Title: Can one set the opacity of an object, not texture in GLES 1.0?
Post by: Terrabus on July 09, 2012, 03:55:27 pm
I'm hoping to do some independent but parallel fade transitions on multiple billboards sharing a single texture in GLES 1.0.
Does this sound doable? If so, can someone please point me in the right direction.

This is (not) exactly what I'm trying to do:
http://jsfiddle.net/Ar96M/ (http://jsfiddle.net/Ar96M/)
Title: Re: Can one set the opacity of an object, not texture in GLES 1.0?
Post by: EgonOlsen on July 09, 2012, 07:53:24 pm
No problem. Object3D has this method to set the transparency: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#setTransparency(int) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Object3D.html#setTransparency(int))

You might as well consider adjusting the default values for the transparency calculations in Config (glTransparencyOffset and glTransparencyMul): http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#glTransparencyOffset (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#glTransparencyOffset)
Title: Re: Can one set the opacity of an object, not texture in GLES 1.0?
Post by: Terrabus on July 11, 2012, 01:57:55 pm
That worked. I misunderstood what that function did. Thanks again EgonOlsen!