curved_ruler, 23 days ago How would you write what vertex the cursor points to on a heightfield terrain?
How would you write what vertex the cursor points to on a heightfield terrain?
lisyarus, 23 days ago @curved_ruler My go-to solution is usually a quadtree with each node storing (min,max) height in this node, and then raymarching it, entirely skipping a node if the ray doesn't intersect the node bbox.
@curved_ruler My go-to solution is usually a quadtree with each node storing (min,max) height in this node, and then raymarching it, entirely skipping a node if the ray doesn't intersect the node bbox.
lisyarus, 23 days ago @curved_ruler Btw even without a quadtree, raymarching a grid directly is extremely fast, and you can get away with it for average-sized terrains.
@curved_ruler Btw even without a quadtree, raymarching a grid directly is extremely fast, and you can get away with it for average-sized terrains.
Add comment