POV-Ray : Newsgroups : povray.newusers : Problem with : Re: Problem with Server Time
28 Jul 2024 16:29:34 EDT (-0400)
  Re: Problem with  
From: Mike Williams
Date: 17 Mar 2008 03:41:26
Message: <cx6MuWAw6i3HFw$L@econym.demon.co.uk>
Wasn't it Mark who wrote:
>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?

When you do the difference, the parts of the surface that came from the
second box use the texture that you applied to that second box.

If you want the whole object to have the same texture on all its
surfaces, you can write it like this, with the texture applied to the
whole difference:

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


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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