Jump to content
  • Advertisement
Sign in to follow this  
_WeirdCat_

OpenGL Render some kind of realistic water with reflections how to

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

so im making something on android i want to make the most realistic sea, anyway i use simple sine waves for ocean generation

problem is the rendering itself (now i am doing everything on cpu coz lack of transformfeedback, - i am not sure if getting texture pixel every frame for every ship will be faster, and eaisier handlig for multiplayer) oh i nearly forgot i use OpenGL ES 2.0 so its like opengl 2.0

 

 

The thing i want to do is to make it look more realistic. I use 64x64 grid and put waves on it (for now i stretch that grid to 250 meters x 250 meters but its still 64x64)

 

heres a video of the output i get be aware of the music i pciked the first one youtube offered (i was coughing very loud, and i dont have any video editing software for now)

 

 

 

 

So actually theres some kind of reflection (i see that normals are not smoothed) 0 the whiter the wave the more it reflects light.

 

I wonder if someone can point me what to do.

 

I basically aim for:

https://github.com/dli/waves

 

 

Since its computational expensive i dont want to change the shape of my waves but i need to make such detail texture on the water and such lovely reflections

Edited by WiredCat

Share this post


Link to post
Share on other sites
Advertisement
Have you tried playing around with different textures?
Maybe not to busy ones, but with some "spots" in the water pattern

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.

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!