POV-Ray : Newsgroups : povray.binaries.images : The Case of the Disappearing building part : Re: The Case of the Disappearing building part Server Time
19 Aug 2024 06:26:35 EDT (-0400)
  Re: The Case of the Disappearing building part  
From: Fabien Mosen
Date: 29 Dec 2000 10:02:58
Message: <3A4CA776.168C186D@skynet.be>
Leitha & Mark Hyde wrote:
> 
> Can someone tell me what went wrong and how to fix it, please?

Jerome is right about the thickness problem, and also :

> #declare Building = difference {
>   box{<-50, -50, -50> <50, 50, 50>
>     texture {BrickTex}
>   }
>   box{<-45, -45, -45> <45, 45, 45>}
>   box {<0,5,50> <-45, -30, 45>}
>   box {<50, -50, 50> <39, 20, 45>}
> }

this is wrong, because you don't give a texture to the "negative"
objects.  You should do as follows :

 #declare Building = difference {
   box{<-50, -50, -50> <50, 50, 50>}

    box{<-45, -45, -45> <45, 45, 45>}
    box {<0,5,50> <-45, -30, 45>}
    box {<50, -50, 50> <39, 20, 45>}

  texture {BrickTex}
 }

And, in fact, using a difference to define a set of walls is not
a very good thing, as difference is slow to render.  You'll do it
better by defining an union of some boxes.

Fabien.


Post a reply to this message

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