Jump to content
  • Advertisement
Sign in to follow this  

water not going through boat

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

is it possible to somehow do raycasting from underneath the boat and see then decide whether the water that covers the boat's area is to be rendered or not? Or is there some other much easier way or is it just impossible? we're supposed to be able to go down to a deck which is located underneath the watersurface.

Share this post


Link to post
Share on other sites
Advertisement
Simple solution that wont work for all situations is to not render the water when you're inside the boat.

Share this post


Link to post
Share on other sites
1. Render all geometry the usual way
2. Disable colour writes (but keep Z-writes)
3. Render a polygon sits on top of the boat like a cover
4. Re-enable colour writes
5. Render water

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!