POV-Ray : Newsgroups : povray.off-topic : Heightfield modification : Re: Heightfield modification Server Time
8 Jul 2024 08:17:42 EDT (-0400)
  Re: Heightfield modification  
From: Mike Horvath
Date: 15 Aug 2015 01:33:45
Message: <55cecf39$1@news.povray.org>
On 8/15/2015 1:17 AM, clipka wrote:
> Am 15.08.2015 um 06:49 schrieb Mike Horvath:
>> 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?
>
> Sounds like what you want is the equivalent of a 2D array of boxes, with
> each box's height determined by an input image. Do I understand that
> correctly?
>
> POV-Ray currently doesn't provide any native support for such an object
> (except of course an actual array of boxes, a mesh generated by a custom
> macro, or some such). It shouldn't be too difficult to implement such a
> primitive though.
>


I only need the special behavior when the slope is already low. For 
areas with a large slope I want to retain the original smooth mesh.

I will have to do the calculations myself because I need to be able to 
import the mesh into LDraw.


Post a reply to this message

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