POV-Ray : Newsgroups : povray.newusers : Newbie question : Re: Newbie question Server Time
29 Jul 2024 08:20:48 EDT (-0400)
  Re: Newbie question  
From: A C C
Date: 25 Mar 2006 14:25:01
Message: <web.442598658e4dc7a2ee4c493c0@news.povray.org>
> Hi A,
>
> Looking at these images, it seems to me that you probably want to use the
> shapes of objects to define textures.
>
> POV-Ray lets you do this with the 'object' pattern which is desribed in
> section 3.5.11.23  'Object Pattern' of the documentation.
> The following example uses a box to create a transparent rectangle in an
> otherwise grey texture. This makes the first layer of the texture visible
> through the 'hole' in the second layered texture. The first layer is a white
> color with an ambient finish of 1, which makes it white even when it's in
> shadow (e.g. even with the light_source commented out).
>
> This texture can be applied to any object, in this case I've applied it to a
> vertical plane.
> You could simplify this down to a single layer texture if you don't need
> independant control over the finishes of the two color components.
>
> Hope this is illuminating.
>
> Regards,
> Chris B.
>
> camera {location <0,0,-8> look_at <0,0,0>}
> //light_source {<0,3,-3> color rgb 1}
>
> plane {z,0
>   texture {
>     pigment {color rgb 1}
>     finish {ambient 1}
>   }
>   texture {
>     pigment {
>       object {
>         box {<-0.5,0,-1><0.5,2,1>}
>         color rgb <0.5,0.5,0.5>
>         color rgbt 1
>       }
>     }
>   }
> }

That is exactly what I wanted! Thanks for your help!

Antonio


Post a reply to this message

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