sphere distortion

llumen's icon

I'm trying to animate a sphere through jit.bfg or jit.catch~
I'm using gridshape @shape sphere and matrixoutput 1.
I then multiply the geometry using jit.op, but I can't figure out how to make sure that the sphere remains closed. I thought of starting with a plane geometry and deforming it into a speher, but I have no clue what math is involved, can somebody enlighten me?

in attachement there is a small patch demonstrating my issue

best

pieter

1185.simpleWrongDeform.maxpat
Max Patch
glBeatriz's icon

Hi
Maybe using a jit.gl.nurbs with the attribute "closed 1 1", instead of a jit.gl.mesh could be an option?

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

llumen's icon

@ Beatriz,
thx for the pointer, however when playing with transparency on the nurb there is a type of wormhole spreading through the shape so that's not ideal either.

so I guess I'm really looking for some equation to help me out.

best

pieter

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

i've no idea how you are going to keep your sphere closed, but i made a few mods to your patch that may possibly help you out.