Wrapping Meshes with Geodesic Walks
cprimozic.net
Wrapping Meshes with Geodesic Walks
1–9 of 9 posts
Re: Wrapping Meshes with Geodesic Walks
#2Re: Wrapping Meshes with Geodesic Walks
#3But the random-walk algorithm doesn't actually need to happen in R^2; I think it should be relatively straightforward to adapt to walk directly on the mesh.
Instead of tracking an "angle", you just need to track the forward tangent vector. And then walk in very small steps using the geodesic walk algorithm, turning the tangent at each point proportional to the derivative and normal at the new location.
It will probably be slower, but it means it will be distortion-free, since you're no longer trying to force flat coordinates onto a non-flat surface.
Dealing with intersection is more complicated, though - I think you could probably just use an octree structure for acceleration (like the spatial tree in 2D). Since the segments can be each placed (almost) exactly on planar triangle faces, you can just project onto one/both of the segments' containing faces to check for intersection.
Re: Wrapping Meshes with Geodesic Walks
#4The distortion comes from trying to map R^2 onto the surface of the mesh, since they have different curvature, so they only "match" near the origin. But the random-walk algorithm doesn't actually need to happen in R^2; I think it should be relatively straightforward to adapt to walk directly on the mesh. Instead of tracking an "angle", you just need to track the forward tangent vector. And then walk in very small ste…
I hadn't considered walking on the mesh directly like that, but now that you say it that makes a ton of sense. I will have to try that out
Re: Wrapping Meshes with Geodesic Walks
#5Re: Wrapping Meshes with Geodesic Walks
#6Re: Wrapping Meshes with Geodesic Walks
#7I wonder if it'd be worth adding an auto-spin until interacted with, regarding the 3D model at the very bottom of the page. Almost seems like it's not interactive at first. The FPS meter is cool.
Re: Wrapping Meshes with Geodesic Walks
#8I wonder if it'd be worth adding an auto-spin until interacted with, regarding the 3D model at the very bottom of the page. Almost seems like it's not interactive at first. The FPS meter is cool.
Until I read your comment, I had assumed it was just a static image! Pretty cool to go back and move it around and stuff, thank you!
I have exported stuff out of SketchUp and brought it into a webpage.
Re: Wrapping Meshes with Geodesic Walks
#9It's really cool to see this running interactively in the web!! Super slick stuff :)