POV-Ray : Newsgroups : povray.binaries.images : RSOCP overkill - various metals : Re: RSOCP overkill - various metals Server Time
5 Nov 2024 14:21:21 EST (-0500)
  Re: RSOCP overkill - various metals  
From: Cousin Ricky
Date: 7 Jul 2007 16:40:02
Message: <web.468ff9ce79bed87b85de7b680@news.povray.org>
William Tracy <wtr### [at] calpolyedu> wrote:
> All that work creating the metal textures, and what I want to know is...
>
> How did you do the text on the spheres? :-)

I uv-mapped a texture of a text object pattern, where the positive space has
a reflection { } value of 0.

#local Stamp = text { ... }
#local T1 = Metal (Palette [Index + Unit], Spec);
#local T2 = Metal (Palette [Index + Unit], 0);
#local N1 = normal { object { Stamp } -0.05 accuracy 0.002 };
texture
{  uv_mapping object
   {  Stamp
      texture { T1 normal { N1 } }
      texture { T2 normal { N1 } }
   }
}

Some context:  Metal() is a macro that i wrote that returns a metallic
texture.  Palette (Index + Unit) is an rgb value, and Spec is a reflection
{ } value.


Post a reply to this message

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