|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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?
--
Maurice
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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]
}
}
If you want to do sophisticated blending, you can use normal functions
#include "functions.inc"
normal {function {
f_bumps(x*3,y*3,z*3)
/ f_bumps(x*12,y*12,z*12)
}
}
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Mike Williams" <nos### [at] econymdemoncouk> schreef in bericht
news:FaW### [at] econymdemoncouk...
| 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]
| }
| }
|
Yes, thats what I was looking for. I was already thinking of creating
heightfield do this. But this works like a charm.
Thanks!!
--
Maurice
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |