POV-Ray : Newsgroups : povray.general : Help with cutaway_textures : Re: Help with cutaway_textures Server Time
29 Jul 2024 18:30:52 EDT (-0400)
  Re: Help with cutaway_textures  
From: clipka
Date: 14 Dec 2010 07:32:32
Message: <4d0763e0$1@news.povray.org>
Am 14.12.2010 05:18, schrieb Solar Mike:
> Hi,
>
> I don`t seem to be able to get cutaway_textures to work the way I`m expecting
> and I am hoping someone here could set me straight.  The following is a snippit
> of code and I would have expected the intersection to have left the texture of
> wood.

> intersection {
>      myWood()
>      object {
>          cylinder {<wWood/2, 0, lWood/2>,<wWood/2, 150, lWood/2>, lWood/4 }
>          texture { pigment { rgb<.1, .2, .8>}}
>      }
>      cutaway_textures
> }
>
> I end up with a cylinder with a wood grained top but blue sides.

Quote from the docs:

---------------------------------------
3.5.10  Cutaway Textures
Syntax:

   difference | intersection {
     OBJECT_1_WITH_TEXTURES
     OBJECT_2_WITH_NO_TEXTURE
     cutaway_textures
   }
---------------------------------------

Mind the "_WITH_NO_TEXTURE": cutaway_textures only works if your 
"cutting tool" has no explicit texture set.


Post a reply to this message

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