Jump to content
  • Advertisement
Sign in to follow this  
MARS_999

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.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
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 this post


Link to post
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 this post


Link to post
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....

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!