POV-Ray : Newsgroups : povray.advanced-users : Intersection of town and floor? : Re: Intersection of town and floor? Server Time
13 May 2024 23:35:04 EDT (-0400)
  Re: Intersection of town and floor?  
From: Mike Horvath
Date: 17 Aug 2015 14:38:03
Message: <55d22a0b$1@news.povray.org>
On 8/16/2015 12:58 PM, Alain wrote:
> Le 15-08-12 23:39, Mike Horvath a écrit :
>> I have a model of a town I made in LDraw. How do I make it so the floor
>> (a checkered plane) only exists where the town doesn't exist along the
>> x+z plane? The reason I can't just use a plane is that parts of the town
>> (such as the road surface) are slightly beneath the plane, and a plane
>> would hide these areas. What should I do?
>>
>> Thanks!
>>
>>
>> Mike
>
> If your town is square, use a plane diferienced with a box used as a
> standin for the town:
>
> difference{
>   plane{y,0}
>   box{<-100,0.1,-100><100,-1,100>} //adjust to the dimentions of the town.
>   pigment{checkers}
> }
>
> If the town is not square, you can substitute a prism for the box.
>
>
> Alain

I made some modifications, and the town is now rectangular which makes 
things a lot easier. A rectangular box should be sufficient now.


Mike


Post a reply to this message

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