Creating a SMACK of Comb Jelly fish with Jit.gl.multiple.

enki's icon

enki

6月 02 2023 | 5:57 午後

Hello all, I’m attempting to emulate a "Smack" of Comb Jelly fish- because they are cool * QED.

To that end i’m attempting to animate the shape of several spheres (using jit.gl.multiple) and have them be semi transparent with color animations along their edges.

My thought is to warp the a sphere shape using jit.gl.mesh as is displayed in this video. https://www.youtube.com/watch?v=uzQOiwMkESU by the amazing Andrew.

As you can see a mesh is being fed by a gridshape. That obviously works.

The issue arrises when i try to create several of the forms using jit.gl.multiple. I’m not seeing any shapes when I add a jit.gl.multiple. Please see attached code.

Any suggestions?

Max Patch
Copy patch and select New From Clipboard in Max.

* https://www.montereybayaquarium.org/animals/animals-a-to-z/comb-jelly

Matteo Marson's icon

Matteo Marson

6月 02 2023 | 6:36 午後

Hey Enki,

looks like jit.gl.multiple is drawing to the wrong context:

Max Patch
Copy patch and select New From Clipboard in Max.

Does it work like this?

enki's icon

enki

6月 02 2023 | 6:54 午後

YES!!! Thank you. That name, target, context is a bear.

enki's icon

enki

6月 02 2023 | 7:10 午後

Thanks a bunch Matteo! I'm hoping to apply a transparent layer to the spheres you fixed, would you suggest jit.gl.material or jit.gl.pbr. or something else? I'm hoping to wrap these shapes in some blinking noise like this. https://cycling74.com/forums/blend-mode-alpha-jit-gl-texture
See rob's solution. Does that seem like a reasonably elegant approach?

Federico Foderaro's icon

Federico Foderaro

6月 07 2023 | 4:32 午後

Hey Enki, you should be able to just apply a texture to the spheres like this:

Max Patch
Copy patch and select New From Clipboard in Max.