POV-Ray : Newsgroups : povray.general : scaling problem using uv_mapping image_pattern : Re: scaling problem using uv_mapping image_pattern Server Time
2 Nov 2024 11:27:39 EDT (-0400)
  Re: scaling problem using uv_mapping image_pattern  
From: Eric Medlin
Date: 22 Mar 2004 12:01:36
Message: <eric.medlin-2340FC.12013022032004@news.povray.org>
In article <eric.medlin-7A9A0A.15165719032004@news.povray.org>,
 Eric Medlin <eri### [at] ipapercom> wrote:

> I have the following texture attached to a model:
> texture{
>   normal{ uv_mapping image_pattern{ jpeg "mask.jpg" interpolate 2}
>     normal_map{
>       [0.5 bump_map{ jpeg "bump.jpg" interpolate 2} scale 0.02]
>       [0.5 bozo scale 0.02 bump_size 0.5]
>     }
>   }
> }
> 
> Now the normals maps are scaled to 0.02, if I change the uv_mapping
> image_pattern... to just image_pattern the normals maps are no longer 
> the same scale.  I have to change the normal maps scales to 0.2 to make 
> it match the uv mapped image pattern.  How is uv_mapping effecting the 
> scale?

OK, I think I figured out what it is doing.  You cannot apply uv_mapping 
to image_pattern, so it is applying it to the normals causing it to 
scale.  If this is correct, then how can I use a uv_mapped mask to 
decided where each normal map should be applied?


Post a reply to this message

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