Author Topic: Can one set the opacity of an object, not texture in GLES 1.0?  (Read 2586 times)

Offline Terrabus

  • byte
  • *
  • Posts: 7
    • View Profile
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/

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
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

Offline Terrabus

  • byte
  • *
  • Posts: 7
    • View Profile
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!