POV-Ray : Newsgroups : povray.newusers : ex post facto difference - "negative" objects : Re: ex post facto difference - "negative" objects Server Time
13 May 2024 20:19:11 EDT (-0400)
  Re: ex post facto difference - "negative" objects  
From: Bald Eagle
Date: 27 Aug 2013 22:25:01
Message: <web.521d5ee22cb39bb2dd2ebc560@news.povray.org>
OK, I rearranged my SDL and moved my romm-generating loop inside the
difference{} directive.  No door openings, and ... no rooms?
I'm sure it's a stupid mistake I'm overlooking - I'll keep working on it.
Do you see the error that I can't?

#declare Room = union {
box {<-1*Feet, 0*Feet, 0.5*Feet>, <1*Feet, 7*Feet, 3.5*Feet> material
{White_Wall}}
box {<0*Feet, 0*Feet, 0.5*Feet>, <0.3*Feet, 7*Feet, 3.5*Feet> texture
{Fake_Wood_Vert}}
box { <0, 0, 0> <-20*Feet, -6, 7.6*Feet>}   // floor
box { <0, 0, 0> <-20*Feet, 8*Feet, -6>}   // Front Wall
box { <0, 0, 7.6*Feet> <-20*Feet, 8*Feet, 7.3*Feet>} // Rear wall
box { <-20.3*Feet, 0, 0> <-20*Feet, 8*Feet, 7.3*Feet>} // Left/Right "outside"
Wall
material {White_Wall}
translate -x*0.8*Feet}


// WALLS AND ROOMS
difference {
union{
box {< 0*Feet, 0, -4.5*Feet>, <-0.8*Feet, 17*Feet, 76*Feet> material
{White_Wall}}   // Left Wall
box {<44*Feet, 0, -4.5*Feet>, <44.8*Feet, 17*Feet, 76*Feet> material
{White_Wall}}   // Right Wall
}
 #declare Room_No = 0;
 #while (Room_No <=9 )
 object {Room translate z*Room_No*7.6*Feet}
 object {Room scale -1 translate <44.8*Feet, 0, 7.3*Feet> translate
z*Room_No*7.6*Feet}
 #declare Room_No = Room_No + 1;
 #end  // end while
}


Post a reply to this message

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