# How to make terrain under curve Geometry nodes

So I am just playing around with geometry nodes and looking for a clever way to generate meshes under the curve to form a terrain. I want to be able to play around with the curve itself to make different procedural tracks.

What I have now is a working track (can probably be improved but I am fine with it for now)

My thoughts on how I would be able to generate a terrain:

1. Get the Z position of the curve (don't know how to get that Z position) for different points of that curve and make terrain under it by instancing an object/terrain. But I feel like this is the wrong way to go about it because you can't control the meshes you generate for the terrain by just instancing an object.
2. Or take a plane and subdivide it --> take the middle part of the plane and get it to the same height at the track, flatten the top so it doesn't interact with the track. And make the ends reach the 0 value of the height

Anyone has any clever ideas?

Edit: What I want it to look like is like a small hill with the tracks on the highest point and a slope going downwards on both sides. Where the track is flat the surface matches, where the track goes up, the ground moves up like a hill.

• can you pls add an image how it should look like? what is the end result you are trying to achieve? Jan 24 at 14:33
• I just want to make something generic to create an environment around something moving over the track and that can have elevation/ move with the tracks without having to model the terrain and shrinkwrapping the track on it. Jan 24 at 15:45