Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
soulreafer

Water vs. Terrain Z fighting

Question

Hey guys. I have another problem with my precedural terrain. i just added a water plane and i get a lot of z fighting problems between water and terrain in the distance. the render distance is about 10k unity. setting up the clipping plane from the main camera doesnt help. maybe i have to render the water with another viewport but i dont know how that works ^^ any ideas?

 

 

Edit:// I get some better results with clipping plane near set to 1-2 but than i can wallhack through the world ^^

 

Edited by soulreafer

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

 Could be either be anti-alising  (both water and land trying to occupy the same space) so try playing with this ............ or  a problem in your water script you could try modifing the rendered objects in the layers or could be clipping plane in the refraction script.

Share this post


Link to post
Share on other sites

  • 0

its the precision. very large far and very small near clapping will pretty much f*ck your precision.

Also as the float values (position) get larger, precision is also f*cked.

Share this post


Link to post
Share on other sites
  • 0

Yep, what Mars said, if you go beyond somewhere around 6000 units from 0,0,0 worldspace, everything will start clipping and all the precision will get f*cked up.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...