Blend Modes with 3D text ... not working.

Noisey Parker's icon

I don't fully understand the blend modes in Jitter? Can anyone tell me why this patch isn't working? I can't get the letters to blend against each other - perhaps I have got the layers wrong? Or it doesn't work with the poly~ object?

3D Multi_Text2.zip
application/zip 10.64 KB

Any help massively appreciated.

Rob Ramirez's icon

steps to reproduce? what's not working as expected?

Noisey Parker's icon

I would expect to be able to see type from different iterations of a poly~ (and set to a different layer) to be visible through each other and / or respond to the blend modes in the way I am familiar. Currently, it just seems to change the colour. Is the patch working for you? Ultimately, what I really want to do is create partially transparent type. Like this ...
https://www.pinterest.co.uk/pin/423831014939747101/
https://www.pinterest.co.uk/pin/423831014939747109/

Rob Ramirez's icon

steps to reproduce? you've sent along an archive of 4 patches. i have no idea which one to open or what steps I need take to test the patch.

Rob Ramirez's icon

for proper blending make sure you're set @depth_enable 0 and @blend_enable 1 on your geometry objects. then you can adjust the @blend attribute to set the type of blending you want. additive is a good place to start.

Noisey Parker's icon

Ah, I was missing the @depth_enable 0. Is there a resources that full explains the relationship between the two numbers that control blend mode?

Rob Ramirez's icon

the blend attribute is a convenience wrapper around blend_mode, but if you want to learn more this article is a good resource - https://learnopengl.com/Advanced-OpenGL/Blending

Noisey Parker's icon

Thank you.

Noisey Parker's icon

I have a further issue with this... I can produce multiple iterations of type using the poly~ object & jit.gl.text3d and set individual colours. However, once I apply a texture to one text object, I then have two problems:
1. I can't remove the texture and go back to just a colour - it's stuck there. I can change the texture but not disassociate with that object.
2. All subsequent poly~ iterations no longer respond to the text colour attribute. even though they don't have a texture applied.
I would like to have have a dynamic system where I have a mixture of types - some with textures, some with colours - a kind of moving inDesign. The patch is attached. Hugely appreciative of any help. I also reposted this as a new thread in case you were busy and anyone else knows the answer.

MaxDynamicType.zip
application/zip 12.24 KB

Noisey Parker's icon

I have solved this my using jit.gl.texture objects in a poly~.