XaiJu
animatrix
animatrix

patreon


Pragmatic VEX: Volume 1 - Gradient Ascent, Descent & Contour Lines - Heightfields [Free Lesson 4]

We have already seen how to apply gradient ascent, descent and contour lines to heightfield like planar geometry. The same concept can be applied to heightfields.

Because heightfields are volumes, getting the gradient is very easy by using the volumegradient function. The normal of a heightfield is (0, 1, 0) if the heightfield is an XZ volume, meaning facing up. Getting the cross product of both of these vectors will give you the contour lines.

Pragmatic VEX: Volume 1 - Gradient Ascent, Descent & Contour Lines - Heightfields [Free Lesson 4]

More Creators