Sign in to follow this  
mrz00m

Triangulating isolevels of procedural shapes to find vertex normals

Recommended Posts

I have a iso-surface with vertices on it. I sample points close to a vertex and measure their iso-level and their position... If i sample 3 equidistant points from the vertex, for example randomly points on a sphere, i should have enough info to triangulate The Exact place of the normal, the least grey area:

 

sc5bfk.jpg

 

Say that the green points are sample points near the vertex, we have their iso value, their position, so there must be a simple formula to figure out the apex of the sphere, the point where the normal of the vertex is? 

 

I tried already making a plane on the same iso level as the vertex iso, by taking 2 sample points of same iso value and doing the cross product of them to find their perpendicular normal value, and it was not so accurate and computationally expensive to sample many points to find ones of same iso level. so the above option would be amazing.

 

Thanks for reading!!!

Edited by mrz00m

Share this post


Link to post
Share on other sites

I thought that the solution was trilateration same as they use for GPS, but i have thought some more and i have a very fast performant solution that should work on all iso landscapes and shapes. i ll sell some code for it abit later for 4 5 dollars so i can help pay for a plumber.

Edited by mrz00m

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