Jump to content
  • entries
    943
  • comments
    5,899
  • views
    923,737

Development


Josh

5,717 views

 Share

I've been working on water. It's a challenge to get it to work properly with the post-effects stack and lighting, something I never did quite right in Leadwerks 2. However, the results are turning into the best implementation of water I've ever made.

  • Water blends naturally with post-effects stack.
  • Water reflection/refraction equation and behavior is improved over Leadwerks 2.
  • Water ripples don't have an obvious direction of flow and look very realistic, without looking "wrong" when placed in certain maps (i.e. water flowing sideways against a coastline).

 

I am not attempting to do 3D ocean waves like in Crysis and some other games. Although these techniques came close to looking real, I feel like they haven't aged well and sit in the uncanny valley and sort of look like saran wrap when in motion. They also aren't as versatile as the water I am making, and only look good in some specific types of settings.

 

Here's a WIP image with a bunch of post-effects applied to make sure everything works right together.

 

blogentry-1-0-34884100-1421973336_thumb.jpg

 

I also met with Valve and asked them to add a desktop version of the in-app purchase dialog for user items. This will allow other users to easily purchase the items you publish for use with Leadwerks.

 

blogentry-1-0-48081900-1421973515_thumb.png

  • Upvote 14
 Share

23 Comments


Recommended Comments

Are we talking water planes that we can place multiple in our map for ponds as well as oceans or just 1 big ocean plane like in LE 2?

Link to comment

One big infinite plane that follows the camera. If none of it is visible, it gets hidden, so you don't need to worry about optimization.

Link to comment

I was curious as to how the water would work with post-processing.

 

If you don't mind sharing the details:

Is it a post-process effect as well? How does it play out with possible future effects?

 

On another note: I'm glad you think my crow is worth $.99 cents, can't really say I think it's worth that much though lol. Just my $.02 tho wink.png. I'm just kidding! But it does look like a very promising, and it might even reach out to other artists from other stores as well.

Link to comment

Hmmm, my project would ideally use water at multiple levels e.g. rivers with waterfalls etc. is there any particular reason it needs to be one infinite plane?

  • Upvote 4
Link to comment

My first thought when I read this was to make multi level fountain model with the water effect, like this

KyserClassicLeaf4Tier.JPG

 

But if I read this update correct that will not be possible?

 

Or can we attach the shader/effect to custom planes?

  • Upvote 3
Link to comment

I agree with Guppy. The effect would be nice to be able to apply to our own planes so that we can make multiple water sources instead of just the 1 giant ocean. I mean creating a giant ocean sort of implies you want big outdoor scenes but that's not where LE excels in terms of performance and indie people being able to populate such a scene. So given the focus of LE pushes people towards smaller indoor scenes why wouldn't that be the focus for water?

  • Upvote 4
Link to comment

can we get a y height settings for this One big infinite plane too?

i agree with others, often i want fill a terrain "hole" with a small water plane.

not all at zero level. maybe a shader what is scrolling a normal uv map.

Link to comment

The biggest problem for me was reflections which requires you to render the scene twice with a negative scaled camera.. I tried renderering into a smaller buffer to speed up, but it actually ran slower than a full sized buffer.

Link to comment

For something like that fountain I would use a cubemap shader. The water is too torpid to have distinct perfect reflections, and it's not worth re-rendering the entire scene just to draw one little piece of water.

 

More features will probably be added later, but I want to get this working now. I want to be an otter!

  • Upvote 3
Link to comment

Why not customizable like games for people to adjust depending on their hardware :

- no reflecctions

- reflect only moutain and sky

- reflect all

Link to comment

Yeah, that will likely be an option. Reflecting just the sky is especially efficient because you don't even have to do an extra pass, you can just use the cubemap.

  • Upvote 1
Link to comment

Kudos for your water. It is something I found difficult while trying to implement it in OpenGL.

 

Will we be allowed to use tesselation and geometry shaders to provide waves since your water won't be having any?

Link to comment

The In-App purchase dialog thing, does that means Leadwerks users will be able to sell items (models, scripts, shaders, etc)?

Link to comment

Cool! Happy to see that we will have better water! Is vegetation painting is still on the dev list?

 

I'm just still wondering how they can achieve the wave effect on the beach... Perhaps some generated planes that blend with the ocean. That seem the hardest thing to do!Level01-01.jpg

Link to comment

We chased after realistic ocean water for years in Leadwerks 2 and everything just came out so-so. Even the shot above doesn't really look anything like real surf. I think it's just a diminishing returns kind of thing and I'm going to leave it up to third parties.

Link to comment

funny that i have not seen any game that looked 100% realistic. Sure it is always getting better but why should water be 100% realistic from the start?

Link to comment
Guest
Add a comment...

×   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.

×
×
  • Create New...