POV-Ray : Newsgroups : povray.newusers : Difference isn't working for me : Re: Difference isn't working for me Server Time
29 Jul 2024 10:18:34 EDT (-0400)
  Re: Difference isn't working for me  
From: Chris B
Date: 10 Mar 2006 08:05:25
Message: <44117995$1@news.povray.org>
"Prodan" <nomail@nomail> wrote in message 
news:web.441174705b48b2f5cc966960@news.povray.org...
>
> I'm still having trouble creating it. How can one create stairs?
>

Is this what you were trying for?

#include "colors.inc"
camera {
   location <-3, 23, -20>
   look_at <5, 5, 18>
}
background{White}
light_source { <-5, 10, -40> color White }
light_source { <-3, 10, -50> color White }
difference {
    box { <   0, 0,  0>, <6  , 20, 36> }
    box { <-0.1, 2, -1>, <6.1, 20,  2> }
    box { <-0.1, 4, -1>, <6.1, 20,  4> }
    box { <-0.1, 6, -1>, <6.1, 20,  6> }
    box { <-0.1, 8, -1>, <6.1, 20,  8> }
    box { <-0.1,10, -1>, <6.1, 20, 10> }
    box { <-0.1,12, -1>, <6.1, 20, 12> }
    box { <-0.1,14, -1>, <6.1, 20, 14> }
    box { <-0.1,16, -1>, <6.1, 20, 16> }
    box { <-0.1,18, -1>, <6.1, 20, 18> }
    box { <-0.1,20, -1>, <6.1, 20, 20> }
    pigment {color Red }
}


Post a reply to this message

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