Jump to content
  • Advertisement
Sign in to follow this  
subi

Seams in my water's edge

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

When i am rendering my water i can see like the edges and they move as the water moves. See Picture in the pixel shader i have tried clamping the Texture coords but that doesn't fix the problem. any suggestions anyone?

Share this post


Link to post
Share on other sites
Advertisement
What is your glClear() set to? Try clearing your color to the color of your water and see if it goes away. I am assuming you have degenerate triangles? and what is your near plane set to? Try 1.5 or 3.0 if you can to increase the precision of the depth buffer.

Share this post


Link to post
Share on other sites
sorry i didn't explain the rest properly ....the water plane is made up very similiar to brute force like terrain. I am using regular triangle list and it is indexed.

when you go very close to the seam, you can see it is caused from the texture coords been distorted. Only prob is i don't know how to get the effect i want without distorting the tex coords.

Share this post


Link to post
Share on other sites
Are you rendering your reflection map by setting a clip plane at waterlevel?
If yes, you could try to offset the clip plane a littlebit upward. That did it for me.

Greets
Chris

Share this post


Link to post
Share on other sites
yep you are dead right, thanks mate...that was the last thing i was thinking about it ...problem solved!! :-)

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!