fury icon indicating copy to clipboard operation
fury copied to clipboard

Support superquadrics in sdf actor

Open Garyfallidis opened this issue 5 years ago • 5 comments

SDF stands for signed distance functions. Currently, our sdf actor manages sphere, torus, and ellipsoid.

We would like to add the support of the superquadrics. Check fury.actor.sdf for more info.

Garyfallidis avatar Oct 01 '20 21:10 Garyfallidis

Hi @Garyfallidis, I would like to work on this issue.

haran2001 avatar Jan 07 '21 04:01 haran2001

Hi @Garyfallidis , I'm trying to add an sdf for superellipsoids (SE) under sdf_dec.frag So far I've added an appropriate sdf for locating points, but only patches of the actor are being rendered on screen. I suspect that some points inside the SE are producing a positive value by the sdf so it appears like the surrounding itself.

The sdf I'm using assumes the origin as center, but it's possible that fury applies a transformation to the co-ordinate system at some point and changes that, because of which the sdf produces wrong values, however I am not sure about this.

haran2001 avatar Feb 11 '21 15:02 haran2001

I am expecting the following result shadertoy

haran2001 avatar Feb 11 '21 15:02 haran2001

But it's rendering this viz_sdfactor

haran2001 avatar Feb 11 '21 15:02 haran2001

Any help or guidance regarding this issue will be much appreciated :)

P.S : This SE is the result of taking, epsilon1 = epsilon2 = 0.1 (square form of SE)

haran2001 avatar Feb 11 '21 15:02 haran2001