Normalmapped terrain and tiling normalmaps?

Started by
3 comments, last by MARS_999 12 years, 8 months ago
I am not sure about this, but need to find out if its possible?

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!
Advertisement
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?

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?
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.
Thanks Rob! I will check it out, but I am starting to think I am just heading towards Parallax mapping anyway....

This topic is closed to new replies.

Advertisement