POV-Ray : Newsgroups : povray.binaries.images : House building : Re: House building - and city building Server Time
30 Jul 2024 08:17:33 EDT (-0400)
  Re: House building - and city building  
From: Thomas de Groot
Date: 20 May 2012 07:16:13
Message: <4fb8d27d@news.povray.org>
On 20-5-2012 8:47, Thomas de Groot wrote:
> On 19-5-2012 17:07, Alain wrote:
>> Little detail, great improvement.
> Yes, isn't it? :-)
>
>> For close ups, you can use the tileroof macro. Look for tileroof.inc
> Indeed, I have that one in my Treasure Chest, although I was not very
> enthusiastic about Gena's macro at the time, iirc. I have my own macro
> as well, but I shall certainly have to revisit that ancient one...
>

I don't know what is was that I did not like (or did not understand more 
probably) in the past, but revisiting the tileroof macros shows me that 
all is working well, except for one little glitch:

The depth of the tile surface is given by the float parameter d. 
However, inside both Roof2() and SaveRoof(), a #local d parameter is 
used as a vector. This can generate an error when d (depth) is used for 
translating the mesh. I changed #local d into #local d1 and all is well.

I also added a normal and a finish block to the macros, to be loaded 
from outside.

The image below shows a test result using Roof1() at left and on top, 
and Roof2() at right, and the texture I built previously for the 
Gancaloon villas.


Post a reply to this message


Attachments:
Download 'object_test_tileroof.png' (503 KB)

Preview of image 'object_test_tileroof.png'
object_test_tileroof.png


 

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