POV-Ray : Newsgroups : povray.general : Nested uv_mapping : Re: Nested uv_mapping Server Time
29 Jul 2024 00:37:28 EDT (-0400)
  Re: Nested uv_mapping  
From: Alain
Date: 8 Dec 2013 14:01:35
Message: <52a4c20f@news.povray.org>
Le 13-12-08 09:49, David Given a écrit :
> So I have:
>
> texture {
> 	uv_mapping function { ...something in terms of x and y... }
>
> 	texture_map {
> 		[... Texture1]
> 		[... Texture2]
> 		[...etc...]
> 	}
> }
>
> Looking at the results, it appears that the uv_mapping transformation of
> the texture coordinates doesn't just apply to the outer texture's
> function; it also applies to Texture1, Texture2 etc. That is, the inner
> textures are calculated in terms of (u,v) as well.
>
> Is there a way I can get the inner textures to be calculated in terms of
> (x,y,z) and only have the uv_mapping being applied when selecting a
> texture from the texture_map?
>

Not tested.
Did you try using the UV maping inside the texture_map?

Something like this:
texture {
	//uv_mapping function { ...something in terms of x and y... }

	texture_map {
		[... uv_maping Texture1]
		[... Texture2]
		[...etc...]
	}
}


Post a reply to this message

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