Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Can one set the opacity of an object, not texture in GLES 1.0?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Can one set the opacity of an object, not texture in GLES 1.0? (Read 2845 times)
Terrabus
byte
Posts: 7
Can one set the opacity of an object, not texture in GLES 1.0?
«
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/
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Can one set the opacity of an object, not texture in GLES 1.0?
«
Reply #1 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)
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
Logged
Terrabus
byte
Posts: 7
Re: Can one set the opacity of an object, not texture in GLES 1.0?
«
Reply #2 on:
July 11, 2012, 01:57:55 pm »
That worked. I misunderstood what that function did. Thanks again EgonOlsen!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Can one set the opacity of an object, not texture in GLES 1.0?