Jump to content

Ray-marching Epsilon


Pryme8
 Share

Recommended Posts

https://www.babylonjs-playground.com/#ZFUV4U#38

I am trying to figure out how to get my edges on my signed distance functions to be a little less glitchy.  Anyone with any experience in this, not really a BJS question but a math one.  Ive been messing with my step dampening and epsilon, but cant seem to find the magic setup.

I was able to make it crisper with :
https://www.babylonjs-playground.com/#ZFUV4U#40

But then it seems to just be to jagged in the distance.  So I am wondering if anyone has any input on how to smooth this, maybe do a distance calc to the camera for that position and then increment up the Epsilon normal as it get farther from the camera?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...