Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: 2D Water  (Read 20821 times)

0 Members and 3 Guests are viewing this topic.

daemon

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: 2D Water
« Reply #30 on: February 13, 2013, 06:11:56 pm »
I added some stuff from http://habibs.wordpress.com/lake to achieve a more glossy look. And this is what I got:

Too bad you can't see it in motion ;D. The math is probably wrong but I'm pleased by the results.

Do you mean that if I use vec2 pos = gl_FragCoords[0]; the texture is flipped? If so, yes that happens for me to.
Yes. So I'll just pick an other background ;)

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: 2D Water
« Reply #31 on: February 14, 2013, 12:42:31 pm »
Wow the picture looks very cool! Maybe could make a video of it or upload a .exe or something so people can see it in motion :D
I really like the look of your picture, because it look like it's reflecting light (like the sun) without any actual lights. Could you explain what you added from the article? And maybe show your code?
Yes. So I'll just pick an other background ;)
I don't understand. How is taking a different background fix the problem?

daemon

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: 2D Water
« Reply #32 on: February 14, 2013, 07:06:50 pm »
Unfortunately I can't provide windows binaries as I'm using linux but I put all the code an images into an archive so that you can compile it on your own. Feel free to provide an exe for other users. Oh, and don't ask me about the math. There is a lot of trial and error in it ;).

I don't understand. How is taking a different background fix the problem?
It doesn't. But using a symmetrical background is a workaround... sort of.