Forums > Jitter

alpha blending in jit.gl.multiple (changing drawing order)


March 20, 2012 | 5:45 pm

Hi all,

I want to display several textures with alpha using jit.gl.multiple. This is ok.
The problem is that I’m not able to change the drawing order so that my "selected" texture is on top of the rest.
Actually I don’t know how to approach such drawing order in jit.gl.multiple since a [@layer] parameter is not accepted…

Is there any way to have depth_enable 1 and keeping the transparency working?

I attached a very clear example.

Any ideas will be highly appreciated!
Thanks!
j

Attachments:
  1. alphablending.zip
March 21, 2012 | 2:09 pm

OK just found out what the real issue is..
The problem is on the topic of alpha blending and depth buffering.

Here there is a nice thread giving some good answers.
http://cycling74.com/forums/topic.php?id=7428
and here:
http://www.cycling74.com/forums/topic.php?id=26102

It looks like the only solution is to be able to set the drawing order correctly (manually, so depthbuffer=0). Therefore I will probably have to switch from jit.gl.multiple to some poly~ solution…

wondering which would be the most optimal way to do it…

Nice interesting topic for openGL gurus :)

more insights are welcome!

May 31, 2015 | 8:01 am

Hi Jordi,

I’m encountering the very same issue – how to layer the child objects in jit.gl.multiple manually.

Did You eventually find the solution to this?

Kind Regards

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Jitter