POV-Ray : Newsgroups : povray.general : Preserving textures through CSG : Re: Preserving textures through CSG Server Time
1 Aug 2024 12:26:11 EDT (-0400)
  Re: Preserving textures through CSG  
From: Michael Raiford
Date: 1 Oct 2005 18:06:32
Message: <433f0868$1@news.povray.org>
Rarius wrote:
> Thanks for the suggestion Ger, but as I said I can't do that.. The machine 
> is too complex, with too many textures...
> 
> Rarius
> 
> "Ger" <No.### [at] ThankYou> wrote in message news:433eebdb@news.povray.org...
> 
>>Rarius wrote:
>>
>>
>>>I am building a cutaway image of a machine, but I am having a problem 
>>>with
>>>the textures. If I texture an object then intersect that object, the
>>>texture of the object is overwritten on those surfaces where the object 
>>>is
>>>cut... For example:
>>>
>>>difference
>>>{
>>>    cylinder
>>>    {
>>>        <-10, 0, 0>
>>>        <10, 0, 0>
>>>        1
>>>        pigment{colour Red}
>>>    }
>>>    plane{y, 0}
>>>}
>>>
>>>I get half a red cylinder, but the part where the plane cuts the sphere 
>>>is
>>>the default texture...
>>>
>>>I thought there was something like a "preserve_textures" modifier, but I
>>>can't find anything like that in the help. Can anyone suggest what the
>>>modifier might be?
>>>
>>>BTW doing the cutaway to each element of the machine before texturing is
>>>not an option. It is just too complex and I rotate/translate a lot of
>>>parts after texturing!
>>>
>>>Rarius
>>
>>difference
>>{
>>   cylinder
>>   {
>>       <-10, 0, 0>
>>        <10, 0, 0>
>>       1
>>   }
>>   plane{y, 0}
>>   pigment{colour Red}
>>}
>>
>>This way the plane has the same texture as the cylinder.
>>-- 
>>Ger 
> 
> 
> 


Something like this:

difference
{
    cylinder
    {
        <-10, 0, 0>
         <10, 0, 0>
        1
        pigment{colour Red}
    }
    plane{y, 0
	pigment { color Green }
    }
}


Post a reply to this message

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