POV-Ray : Newsgroups : povray.newusers : Combining normals : Re: Combining normals Server Time
30 Jul 2024 10:13:17 EDT (-0400)
  Re: Combining normals  
From: Alain
Date: 10 Jul 2004 08:53:02
Message: <40efe6ae$1@news.povray.org>
Mike Williams nous apporta ses lumieres ainsi en ce 10/07/2004 07:07... :

>Wasn't it SomeOne who wrote:
>  
>
>>Is it possible to make combinations of  normals? For example I want to give an
>>object a bumps with a large scaling to get a slow wavy pattern and then
>>superimpose onto that a bumpy or wavy texture of a much smaller scale. This
>>suggests I need to define on the surface of the object two normals. But won't
>>one overrule the other?
>>    
>>
>
>
>You can't layer normals in the same way that you layer pigments,
>because, as you say, one overrules the other.
>
>You can use an average normal_map, like this for simple blending of two
>normals:
>
>  normal {average
>    normal_map {
>      [0.5 Norm1]
>      [0.5 Norm2]
>    }
>  }
>
The values in a normal_map are ponderation for the average. In my 
experience, the order is not importent: normal_map{[1 Norm1][0.2 Norm2]} 
is OK.

Alain


Post a reply to this message

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