|
|
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
|
|