POV-Ray : Newsgroups : povray.off-topic : Heightfield modification : Re: Heightfield modification Server Time
8 Jul 2024 07:56:56 EDT (-0400)
  Re: Heightfield modification  
From: Nekar Xenos
Date: 16 Aug 2015 13:06:18
Message: <op.x3g0grcrufxv4h@xena>
On Sat, 15 Aug 2015 06:49:23 +0200, Mike Horvath <mik### [at] gmailcom>
wrote:

> Let's say that I have a array of points generated from a height field.  
> But I want areas of low slope to be made completely flat and rounded to  
> the nearest 24 vertical units.
>
> I know that the result will no longer be a classic heightfield since  
> there will be vertical areas that will need to be joined by new  
> triangles. But how would I accomplish this?
>
> The simplest thing to do would be to measure the slope of each triangle  
> relative to the ground plane and then alter the vertices. But the  
> triangles are in a regular grid:
>
>
http://i421.photobucket.com/albums/pp292/SharkD2161/LDraw/terrain_nosteps_standin_01_zps6hreaqla.png
>
> It will look funny since all they are all oriented in the same direction.
>
> Thanks for the help!
>
>
> Mike

Maybe open the map in Photoshop. The largest areas should be the flattest  
areas, so they should be easy to select with the Magic Wand Tool. Once  
selected, Image adjustment/Gradient Map should do the trick if you edit  
the gradient to be only 24 shades of grey.


-- 
-Nekar Xenos-


Post a reply to this message

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