Jump to content


some water


4 replies to this topic

#1 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2725 posts

Posted 25 August 2012 - 02:28 PM

just showing some water off. its just reflecting the sky, thats all you need to get that cool sun beam across it. its actually scrolling perlin noise, each octave scrolls a different direction, then you just have to tune the frequency and amplitude, the more bass the octave the faster it scrolls... i wish I had a little movie of it, its pretty cool.

to make it perfect i guess all it needs is some fog factor for how close to vertical the refraction angle is.

Posted Image
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.

#2 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2725 posts

Posted 25 August 2012 - 04:37 PM

here it is slighly bugfixed, ive got no idea what sides of the skybox are reflecting correct. :) as you can see im making this little flight sim, but ive gotten bogged down when i worked out my instancing was terrible and i should have had way more planes than i was getting.

im not sure what ill do, but adding the water underneath was fun.

Posted Image
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.

#3 Vilem Otte

    Valued Member

  • Members
  • PipPipPipPip
  • 345 posts

Posted 25 August 2012 - 10:17 PM

Ok, it looks good - but in case you would like to try some better simulation for ocean water - I can give off my LibOcean library for a test or two - it's used for simulating ocean water with FFT (basically it was a semestral school work) but it works and isn't as slow as one could think. I thought of building an OpenCL version before, but well it's pretty fast in naive C right now.

Would you like to give it a try? (If you do, just post a target system for you and I'll build a .so or .dll for you with description) :)
My blog about game development (and not just game development) - http://gameprogramme...y.blogspot.com/

If you don't know how to speed up application, go "roarrrrrr!", hit the compiler with the club and use -O3 :D

#4 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2725 posts

Posted 26 August 2012 - 04:45 AM

Thanks man.

Does your library just plug straight in and work? Have you any youtube videos or screenshots of the waves? If the wave shapes are realistic Im interested.
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.

#5 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2725 posts

Posted 26 August 2012 - 02:15 PM

finally got the clouds to reflect properly, and now ive got this great white sun ball that never leaves the view no matter how you try to escape it! :)
Posted Image
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users