POV-Ray : Newsgroups : povray.general : Nested uv_mapping : Re: Nested uv_mapping Server Time
29 Jul 2024 00:30:51 EDT (-0400)
  Re: Nested uv_mapping  
From: David Given
Date: 9 Dec 2013 07:11:04
Message: <52a5b358$1@news.povray.org>
On 08/12/13 19:01, Alain wrote:
[...]
> Not tested.
> Did you try using the UV maping inside the texture_map?

That doesn't work, but you gave me an idea, and this does:

    texture
    {
	pigment_pattern
	{
	    uv_mapping function { x }
	    pigment_map
	    {
	        [0 rgb <0, 0, 0>]
		[1 rgb <1, 1, 1>]
	    }
        }
	
	texture_map
	{
            [0 XYZ_Texture]
            ...
        }
    }

XYZ_Texture is evaluated using XYZ coordinates, even though the texture
is selected using the U ordinate. It's kind of evil, but it works. Thanks!

-- 
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom


Post a reply to this message

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