POV-Ray : Newsgroups : povray.advanced-users : Intersection of town and floor? : Re: Intersection of town and floor? Server Time
13 May 2024 16:32:34 EDT (-0400)
  Re: Intersection of town and floor?  
From: Alain
Date: 16 Aug 2015 12:57:54
Message: <55d0c112$1@news.povray.org>
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


Post a reply to this message

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