Jump to content

Dynamic water surface


clementlandrin
 Share

Recommended Posts

Hi everyone ! 

I'm new in Babylon and I'm trying to do an interactive water surface. What I want is not the waterMaterial provided by Babylon because this one only causes periodic waves and I want to create a wave impact on a flat water surface.

I used a ground and UpdateVerticesData to create the wave (you can find a demo of my current project here).

My problem is that water is supposed to reflect and do refraction, and i think Babylon's refraction and reflection can't be apply to a non flat surface (I found this playground showing that refraction can be done by a refraction plane apply to a refraction texture).

Can I apply mirrors (for reflection) and refraction textures (for refraction) on the triangles (which are flat) componing my ground and how ?

Is this way to do ok for a realtime rendering ?

Thanks for any answers !

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...