Jump to content

Water rendering


sanderd17
 Share

Recommended Posts

Sure, 0 A.D. doesn't need this at all. Even few animation movies can afford such realism!

For 0AD's water, there could be much more humble water improvements, such as rivers flowing downhill or rain. Basic implementation of those things would be a nice add someday.

Link to comment
Share on other sites

I believe Red Alert 3 had what I call that "bath water" implementation that we talked about a while back. 2:20 in this video:

I say it looks like bath water because the "resolution" of the dynamic water plane is too low to give an accurate looking "scale" to the water. The reason the resolution is so low is because anything scaled correctly would take way too much computing power. Probably a similar thing to 'position based fluids' -- we could use such a system, but the "balls" that are used would be so large as to make the water look like a tub of vegetable oil rather than viscous water.

Link to comment
Share on other sites

Current water rendering is not exceedingly satisfactory, so some changes are definitely in order. I'm not sure how doable a system like red alert would be, it's obviously fairly advanced, but we should be able to do better than what we have.

I'm fairly happy with the current water, though I would love to see it improved with:

-- The shore "foam" should fade in and out as it pulses inward and outward.

-- Make shore waves curved depending upon the general curvature of the shoreline. Perhaps just three shapes would be needed to look nice: Straight, slightly convex, slightly concave.

-- The ability to choose different water textures. For instance, the current texture looks good for lakes, while I think rivers and oceans would look better with different surface textures/patterns.

-- Directionality for rivers and streams. Would require the ability to differentiate between moving sections like rivers and more static sections like seas and oceans.

At the very least, some performance should be enhanced if possible.

Link to comment
Share on other sites

That along with different water levels would be nice. it would require changes to atlas tough for support, I'm not too sure how (i was thinking keeping a 2d map of water height, some basic info for running water.

I think changing the texture could then be handled automatically: if the water plane is flat/enclosed, it's a lake, I it's big enough, an ocean, and of it's of different heights, it's a river (possibly switching in the middle).

The rest of what you describe ought to be doable. Biggest slowdown right now is refraction/reflection rendering tough and there's not much currently to do to speed that up (need to speed the rznderer up...)

Link to comment
Share on other sites

The water is nice but I was playing a random map and I noticed the wild elephants, they looked as if they were floating on the land and water instead of walking while the elephant units trained by me walked just fine with moving legs. Could anything be done about this...?

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.

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.

 Share

×
×
  • Create New...