# Normalmapped terrain and tiling normalmaps?

This topic is 2543 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have a terrain mesh, and its has a single base texture over it, and I have a normalmap of the whole terrain mesh in tangent space and I normal map that, and it looks fine. Now I want to keep that lighting and match the tile Factor of my base texture and use a second normalmap and apply that to that tiled texture? Not sure if I am clear on this, and maybe it's not possible? What I need to know is what would I need to add to my normalmapped code to make that happen?

I already have both normalmaps loaded, but not sure on what the math would be...

Thanks!

##### Share on other sites
What happens on some point on terrain where it has two normals from your normalmaps? How do you want to calculate final normal (the vector you will use in lighting) for it?

##### Share on other sites

What happens on some point on terrain where it has two normals from your normalmaps? How do you want to calculate final normal (the vector you will use in lighting) for it?

Could you just average them?

##### Share on other sites
The term you are after is 'detail normal map'.

The normal map code addition are simple an extra texture read, plus whatever you do to unpack your normal map data, then iirc we simple added the normals together and renormalised.

The UV used for that can be generated anyway you like, it's been a while but I think we used a modulated world space position to generate our UVs, but really any scheme would do which can generate repeating numbers in a 0 -> 1 range.

##### Share on other sites
Thanks Rob! I will check it out, but I am starting to think I am just heading towards Parallax mapping anyway....

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
19
5. 5

• 14
• 26
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631771
• Total Posts
3002252
×