Jump to content
  • Advertisement
Sign in to follow this  
Endemoniada

Texture Filtering Messes Up My Normal Mapping

This topic is 1956 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

Hi guys,

 

I have a cube and a normal map that makes the edges look rounded. If I use any kind of filtering for the normal map sampler I see really thin seams, I know what's causing it but don't know what to do about it. If I use no (or point) filtering the seems goes away but then it's pixelated when I get up close. What should i do ? Is this a common problem ?

 

Thanks.

 

PS - I'm using D3D9 and HLSL

Edited by Endemoniada

Share this post


Link to post
Share on other sites
Advertisement

Are you re-normalizing the vector after you read it out of the texture?

 

Interpolation between pixels will result in a normal of slightly less than unit length. This may well be sufficient to cause the seams you have observed.

Share this post


Link to post
Share on other sites
probably filtering from outside the texture area of the triabgle. you need to create a border around the texutre areas, some kind of dilation filter

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!