Jump to content
  • Advertisement
Sign in to follow this  
nadro

OpenGL Problem with per pixel lighting - sharp edge

This topic is 4079 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 use CG Shadres + OpenGL and I have problem with per pixel lighting in my app. I have visible sharp edges in lighting model. I select this example edges in red lines. Good (unvisible sharp edges) without lighting: http://www.imagic.pl/public/pview/71018/01.JPG Bad (visible sharp edges) with per pixel lighting http://www.imagic.pl/public/pview/71019/02.JPG What is wrong? Shader? Shading mode?...

Share this post


Link to post
Share on other sites
Advertisement
You would need to examine the normal map and see if vectors at these coordinates are not poiting the opposite way, which would cause such seaming. Also, there might be normal map alignment problem around these faces, shifting them left or right, and creating seams.

Check with per-face or per vertex lightning how it looks, the first screenshot you have provided looks like flat shading, so no seams will be visible.

Best of luck!

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!