POV-Ray : Newsgroups : povray.binaries.images : Gancaloon - urbanism wip : Re: Gancaloon - urbanism wip Server Time
30 Jul 2024 20:26:41 EDT (-0400)
  Re: Gancaloon - urbanism wip  
From: Thomas de Groot
Date: 4 Aug 2011 03:46:25
Message: <4e3a4e51$1@news.povray.org>
On 3-8-2011 23:06, Christian Froeschlin wrote:
> the subsampling of the height field needs to be done by rounding
> the input coordinates
>
> #declare cell_size = 0.03;
>
> #declare F_flatroof = function {
> F_HF_00(int(x/cell_size)*cell_size,
> int(y/cell_size)*cell_size,
> int(z/cell_size)*cell_size).hf
> }
>
> and the thing about multiplying with the cell pattern was
> just me not thinking clearly ;) Although it might be useful
> to add a smaller scale cell pattern with low weight so that
> not all houses within a block have exactly the same height.

Happily, I am learning every day :-) This is a neat little trick, 
Christian! Thank you very much indeed for sharing. I think this is going 
to work superbly. Multiplying with a slightly smaller cell pattern gives 
perfect results now.

I am going to implement this now on Gancaloon.

Thomas


Post a reply to this message

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