Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support superquadrics in sdf actor #320

Open
Garyfallidis opened this issue Oct 1, 2020 · 5 comments
Open

Support superquadrics in sdf actor #320

Garyfallidis opened this issue Oct 1, 2020 · 5 comments
Labels
🍺 Hacktoberfest 🍺 Support open source and Start Hacking ! good first issue Good for newcomers type:New Feature
Milestone

Comments

@Garyfallidis
Copy link
Contributor

Garyfallidis commented Oct 1, 2020

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 Garyfallidis added the 🍺 Hacktoberfest 🍺 Support open source and Start Hacking ! label Oct 1, 2020
@skoudoro skoudoro added this to the v0.9.0 milestone Oct 1, 2020
@haran2001
Copy link
Contributor

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

@haran2001
Copy link
Contributor

haran2001 commented Feb 11, 2021

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
Copy link
Contributor

I am expecting the following result
shadertoy

@haran2001
Copy link
Contributor

haran2001 commented Feb 11, 2021

But it's rendering this
viz_sdfactor

@haran2001
Copy link
Contributor

haran2001 commented Feb 11, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍺 Hacktoberfest 🍺 Support open source and Start Hacking ! good first issue Good for newcomers type:New Feature
Projects
None yet
Development

No branches or pull requests

3 participants