POV-Ray : Newsgroups : povray.general : texturing in csg : Re: texturing in csg Server Time
8 Aug 2024 01:19:00 EDT (-0400)
  Re: texturing in csg  
From: Dave B
Date: 26 Mar 2001 12:54:31
Message: <3abf8257$1@news.povray.org>
Somebody correct me if I am wrong but I do believe that the texture
statements for your second and third objects should be inside the objects
{}.
i.e.

#declare Obj1=union{
   mesh{
     /* triangles */
     texture{Gray}
   }
   cylinder{*cylinder definition* texture{Black} } // <= THIS
   sphere{*sphere definition* texture{Black} } // <= AND THIS
   }

I think this should sort your problem.

Dave

"Wlodzimierz ABX Skiba" <abx### [at] abxartpl> wrote in message
news:3abf3e11@news.povray.org...
> I'm not sure if it is bug or my misunderstand
> it's crosspost becouse I play with MegaPOV 0.7 but I'm not sure what is
its
> behavior in POV 3.1
> I have similiar syntax:
>
> #declare Obj1=union{
>   mesh{
>     /* triangles */
>     texture{Gray}
>   }
>   cylinder{} // <= THIS
>   sphere{} // <= AND THIS
>   texture{Black}
> }
>
> #local Obj2=union{
>   object{Obj1 tranformations}
>   other objects
>   texture{Gray}
>   transformations
> }
>
> object{Obj2 texture{Gray} transformations}
>
> I think objects pointed as "THIS" should be Black but they appear as Gray.
Shoud
> I expect such behaviour? Can anybody confirm this behaviour?
>
> ABX
>
>


Post a reply to this message

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