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:21:46 EDT (-0400)
  Re: re-texturing only part of an object?  
From: gonzo
Date: 28 Dec 2005 17:05:02
Message: <web.43b30b32df8284dca0c272b50@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote:
> I've made a text object, with a nice translucent "ice" texture. I'd like to
> "paint" the top of the letters white (only the top SURFACES), as a base
> color for tracing on some snow objects. Maybe I'm forgetting something
> basic, but I can't figure out how to do that. Some kind of image_map
> configuration? Procedural texture? Or do I need to use uv-mapping? If
> uv-mapping, can I do it completely within the POV SDL, or do I need an
> external app like UV MAPPER? Though I've been reading up on the subject,
> assume that I don't know very much about how to use the uv-mapping process
> within POV itself.
>
> Thanks in advance for any help!
>
> Ken

If the top is completely flat then a slope pattern with only a narrow range
at the top should work.  Assuming the Ice & White textures are already
defined...

#declare Text_Texture = texture {
  slope
  texture_map {
    [0.00  Ice_Texture ]
    [0.95  Ice_Texture ]
    [0.95  White_Texture ]
    [1.00  White_Texture ]
  }
}


Post a reply to this message

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