POV-Ray : Newsgroups : povray.binaries.images : Heightfield with road : Re: Heightfield with road Server Time
4 Nov 2024 18:22:39 EST (-0500)
  Re: Heightfield with road  
From: Tim Nikias
Date: 21 Jun 2007 05:00:37
Message: <467a3e35$1@news.povray.org>
SharkD wrote:
> I've created a scene with a heightfield. I want to place a road over the
> heightfield. I created a macro to generate a spline-shaped road that is
> interpolated through points on the heightfield. The problem is that the
> road cuts into (or floats over) the terrain depending on the slope of the
> terrain around it. I don't expect there's a way to fix this. The only thing
> I can think of is to modifiy the heightfield. Unfortunately, the resolution
> of my heightfield is not great enough to do this.
> 
> What do the professionals do when they are facing similar problems?

Two solutions:
1. Select more points for the road to make it fit better to the heightfield.
2. Add some base to the road and place it slightly higher. Lots of roads 
have some gravel or such to the left and right, slightly elevating the 
road above the usual ground. Additionally, water running down the hills 
wouldn't necessarily run straight across the road with all the mud, but 
instead, just hit the banking and seep through underneath it.

Regards,
Tim

-- 
aka "Tim Nikias"
Homepage: <http://www.nolights.de>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.