POV-Ray : Newsgroups : povray.newusers : Problem with : Re: Problem with Server Time
28 Jul 2024 16:32:49 EDT (-0400)
  Re: Problem with  
From: Alain
Date: 17 Mar 2008 16:40:26
Message: <47dee54a$1@news.povray.org>
Mark nous apporta ses lumieres en ce 2008/03/17 04:19:
> 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
> 
The difference have the default texture: texture{pigment{rgb 0}finish{ambient 
0.1 diffuse 0.6}}}
> difference{
>         box {
>             < 0,    0,  0>,  // Near lower left corner
>             < 10.6,    -0.30,  5.65>   // Far upper right corner
>             texture { T_Wood1 }
>         }
The outer box have a texture applied.
>         box {
>             < 3.65,  0.1,    3.65>,  // Near lower left corner
>             < 5.65,  -0.4,  5.65>   // Far upper right corner
>         }
>         //pigment { Red }
> }
> 
The cutting box don't have any texture, so it inherit the texture of the whole 
difference, and that texture is blakc.

Just apply your texture to the difference, not it's elements.


-- 
Alain
-------------------------------------------------
When the people fear their government, there is tyranny; when the government
fears the people, there is liberty.
Thomas Jefferson


Post a reply to this message

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