Allegro.cc
Projects
Action252
Adventure22
Arcade216
Board Games30
Demos24
Emulators10
Other68
Puzzle139
Role Playing40
Sports25
Strategy58
Utilities46
Resource Directory
Code Gallery3
Compilers12
Help & Documents13
Libraries63
Media2
Tools8
IOTD: Ocean Environment Renderer
Ocean Environment Renderer
Ocean Environment Renderer, by gnolam

Composite screenshot showing off various aspects of my ocean renderer. Features include:

  • Dynamic (depending on wind velocity), tunable-resolution wave geometry

  • Dynamic surface reflection

  • Weather effects

  • Day/night cycles (taking into account the time of year and geographic coordinates)

Upper left: calm seas, clear weather, afternoon
Upper right: calm seas, clear weather, night
Lower left: 7 m/s wind, rain, day
Lower right: 15 m/s, day, underwater

Consider it a work in progress - especially the non-calm seas need more work to look pretty - but it's still pretty usable in its current form. :)

Looks cool. Will it be kind of like Stellarium, where you can see the night-sky in real-time from any place on Earth (or other planets)? Except, in this case, you see the ocean from any point of the world.

- Billybob

I wished I had time and sense to do such extraordinary good work.

Gratulation

OldDoc

- OldDoc
Quote:

Looks cool. Will it be kind of like Stellarium, where you can see the night-sky in real-time from any place on Earth (or other planets)? Except, in this case, you see the ocean from any point of the world.

Not really. If you've seen one deep water wave, you've seen them all. ;D
I have some game applications in mind for this. For at least some of them it'd be nice to be able to pick an arbitrary geographical location and date and have at least the sunrise/sunset times be realistic, so while I was implementing the day/night cycles I thought I might as well go all the way and make them completely accurate. So as a bonus, I've now learned a whole lot more about orbital mechanics. :)

OldDoc: Thanks! :D

- gnolam

Looks awesome. The rain effect looks a little over done, but then again I don't exactly have 20/20 vision anymore so I may not be the best judge :P

- Ron Novy

Looks awesome. What are you plans for it?

- Dustin Dettmer

This is excellence. Good work; especially on the reflections. Keep it up.

- BitCruncher
Quote:

The rain effect looks a little over done, but then again I don't exactly have 20/20 vision anymore so I may not be the best judge :P

It is a bit overdone, but I was pressed for time when I implemented it. :)

Quote:

What are you plans for it?

First off, to refactor it completely. ;)
But after that, I have a couple of game ideas for it. One of them includes people who go "Arrrr!".

- gnolam

So how is this going? This sure has been here for a while.

- Felix-The-Ghost

Haven't had that much time to work on it, unfortunately...
But I've cleaned up the worst of the late night hacks, added some post-processing (e.g. basic HDR with dynamic tone mapping and bloom filtering) and re-worked the night sky from a static skybox to dynamic, accurate star rendering (in case someone wants to do celestial navigation or something. As this is a pet project, feature creep is no problem :)).

Next up will probably be frustum culling and proper LOD of the wave geometry instead of the awful hacks I have now.

- gnolam
This section is only available to registered Allegro.cc members.



The Gallery | Add your own image!
Poll
Is grammer and spelling important?
View Results