Sign in to follow this  
Followers 0
Endemoniada

Texture Filtering Messes Up My Normal Mapping

2 posts in this topic

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
0

Share this post


Link to post
Share on other sites

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.

0

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
1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0