POV-Ray : Newsgroups : povray.binaries.images : Heightfield with road : Re: Heightfield with road Server Time
4 Nov 2024 18:24:23 EST (-0500)
  Re: Heightfield with road  
From: Rarius
Date: 21 Jun 2007 07:07:28
Message: <467a5bf0@news.povray.org>
You have two problems, one that the road gets buried and another that the 
road floats above the ground.

1) Road gets buried. I think you could fix this by differencing out of the 
ground a cone-sweep...make an object that is a union of a LOT of cones that 
follow the spline of the road. make the base of the cone the same width (or 
slightly wider than) the road and make it high enough to clear any hill. 
Just make the top wide enough to give a good slope along the side of the 
road.

2) Use tha same cone-sweep and scale it by -1 vertically... union that to 
the road and you'll get the banks supporting the road.

I hope this helps

Rarius

"SharkD" <nomail@nomail> wrote in message 
news:web.467a2ea1b829942996f3cfc0@news.povray.org...
> 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?
>


Post a reply to this message

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