Sign in to follow this  
Pryme8

Ray-marching Epsilon

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.