|
![](/i/fill.gif) |
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](/povray.binaries.images/attachment/%3C4fb8d27d%40news.povray.org%3E/object_test_tileroof.png?preview=1)
|
![](/i/fill.gif) |