POV-Ray : Newsgroups : povray.general : re-texturing only part of an object? : Re: re-texturing only part of an object? Server Time
1 Aug 2024 08:17:33 EDT (-0400)
  Re: re-texturing only part of an object?  
From: Jim Charter
Date: 28 Dec 2005 11:07:14
Message: <43b2b832$1@news.povray.org>
//Here is two ideas that could be refined:

#local  P =
text {
   ttf
   "courbd.ttf",
   "P",
   2,
   0
};

intersection {

         object {
                 P
                 texture { pigment { White } }

         }
         object {
                 P
                 texture { pigment { Red } }
                 translate <.001,.001,.001>
         }
}

//or:

#local Mx = max_extent ( P );
#local Mn = min_extent ( P );

intersection {

         object {
                 P
                 texture { pigment { Red } }

         }
         box {
               Mn,
               <Mx.x,Mx.y-.001,Mx.z>
               texture { pigment { White } }
         }
         translate x*1
}


Post a reply to this message

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