POV-Ray : Newsgroups : povray.newusers : Problem with : Problem with Server Time
28 Jul 2024 16:27:03 EDT (-0400)
  Problem with  
From: Mark
Date: 17 Mar 2008 03:20:00
Message: <web.47de29a8212c59aa9d6d94d80@news.povray.org>
Hello,

I am trying to model my top floor,
At the staircase I try to use difference to remove a part op the floor for the
staircase.
I only get a black intersection, not a transparant one.

What do I do wrong?

Kind regards,

Mark


#include "colors.inc"    // The include files contain
#include "textures.inc"    // pre-defined scene elements
#include "shapes.inc"
#include "glass.inc"
#include "metals.inc"
#include "stones.inc"
#include "woods.inc"

background { color Cyan }

camera {
    location <5.3, 2, -10>
    look_at  <5.3, 2, -1>
}

difference{
        box {
            < 0,    0,  0>,  // Near lower left corner
            < 10.6,    -0.30,  5.65>   // Far upper right corner
            texture { T_Wood1 }
        }
        box {
            < 3.65,  0.1,    3.65>,  // Near lower left corner
            < 5.65,  -0.4,  5.65>   // Far upper right corner
        }
        //pigment { Red }
}

//roof left top part
box {
    < 0,    0.0,  0>,  // Near lower left corner
    < 7.7, 0.2,  5.65>   // Far upper right corner
    pigment { White }
    rotate z*45     // Equivalent to "rotate <0,20,0>"
    translate <0, 0, 0>
}

//roof right top part
box {
    < 0,    0.0,  0>,  // Near lower left corner
    < 7.7, -0.2,  5.65>   // Far upper right corner
    pigment { White }
    rotate z*135     // Equivalent to "rotate <0,20,0>"
    translate <10.6, 0, 0>
}

box {
    < 1.78,    0.0,  0>,  // Near lower left corner
    < 1.8, 1.8,  5.65>   // Far upper right corner
    pigment { White }
}

box {
    < 8.8,    0.0,  0>,  // Near lower left corner
    < 8.82, 1.8,  5.65>   // Far upper right corner
    pigment { White }
}



light_source { <5.3, 2, 5> color White}
light_source { <5.3, 2, -2> color White}


Post a reply to this message

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