Jump to content
  • Advertisement
Sign in to follow this  
eccco

Artefact when using projective textures for water reflections

This topic is 4588 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! I'm using projective textures for the reflection and refraction in water as described by Yann in http://www.gamedev.net/reference/articles/article2138.asp All overwater objects are rendered into a reflection texture and all underwater into a refraction texture. These textures are then projected back onto the surface plane and blended in pixel shader. The sampling from the textures is disturbed due to the vertex normals by offsetting the texture coordinates. Because the water itself can't be rendered into the textures it is created from it can't have any knowledge of itself. Thus, it can't be self-mirroring. This will results in artefacts when a very high wave, like a wake, lies between a point in the water and a distant object, like a cliff. Instead of having the wake mirrored in the water the cliff can be seen as schematized in http://home.student.uu.se/e/erwi1845/notSelfMirroring.gif Are there any workarounds for this problem or is it something one has to live with? Thanks, E

Share this post


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