Planetside Software Forums

General => Terragen Discussion => Topic started by: james adamson on December 09, 2020, 04:06:53 PM

Title: Realistic water
Post by: james adamson on December 09, 2020, 04:06:53 PM
Hi all.
I have seen some of the amazing water some of you peeps have produced. 
I am finding it quite a challenge to get the detail and for it to not look circa 1994.
I have a test I have done here and my reference. The reference is not ideal as its quite hard to see but its the very fine ripples and subtle flotsam
and the way the light is scattered on the surface. I would like to get it right in TG rather than resorting to post fx. If anyone could give me any pointers that would be great as I have spent far too long at this to only produce
what you see. The pace of the movement in my test I am happy with its supposed to look kinda timpelapsey? I used the 4d thingy but if anyone has a more elegant and controllable solution I am all ears. Also it has been all take from me on this site so far and I do look forward to the day I can offer some solutions. 
Cheers James. 
https://vimeo.com/489105080
https://vimeo.com/489099489
Title: Re: Realistic water
Post by: Hannes on December 10, 2020, 02:10:53 AM
I can't open your files... :(
Title: Re: Realistic water
Post by: Dune on December 10, 2020, 02:29:11 AM
Yeah, wrong links.
Title: Re: Realistic water
Post by: james adamson on December 10, 2020, 06:38:26 AM
That is odd. I clicked em after I put the post up and they worked.
Strange. I will sort it out now.
Title: Re: Realistic water
Post by: james adamson on December 10, 2020, 06:39:39 AM
Weird. I have just clicked them and they play. Could be because they are QT's
Title: Re: Realistic water
Post by: james adamson on December 10, 2020, 06:51:33 AM
https://vimeo.com/489099489
https://vimeo.com/489105080

Doh! I had private turned in vimeo. Try again.
Cheers.
James.
Title: Re: Realistic water
Post by: sboerner on December 10, 2020, 08:35:36 AM
Links are working here. I'll leave the technical suggestions to others (water not yet one of my strong suits) but your efforts look really good so far. I'd say you're off to a nice start – natural-looking water flow with an eddy in the background.

The water surface in the reference is a little hard to see. (We walked across that footbridge on a visit from across the pond late last year. Seems like ages ago now.)
Title: Re: Realistic water
Post by: james adamson on December 10, 2020, 11:03:17 AM
Hi. Yeah I changed permissions. Thanks for the feedback.
No small task I have set myself I am rebuilding the shot you see in the reference. That was my textures and hdri capture shoot.
I will stick it on site when done for some feedback. I was supposed be shooting people coming across the bridge to make a timelapsey particle stream of people but Covid ruined me plans. No people!:o. So I have had to mash some stuff together from the web which works as a proof of concept but at some point I am gonna have to go deep and look at some crowd generator gadgets.
Fun and games!
Title: Re: Realistic water
Post by: james adamson on December 10, 2020, 11:03:41 AM
It is a lovely bridge!
Title: Re: Realistic water
Post by: WAS on December 10, 2020, 01:07:54 PM
One thing I can suggest is try to play with animation on X and Z rather than Y. Y will give you warpy swirls and stuff coming up from the water which will look strange.
Title: Re: Realistic water
Post by: james adamson on December 10, 2020, 02:19:17 PM
Hey.
I animated it with the 4d noise. How would I animate in x and z. I do have a transform input on there as well and I have a large right to left animation with some z.
I guess I am after a bit more control over disturbance. You know how on time lapse water you get those sudden wakes form either 
a boat or a very fast wind patch type thing. Seemingly random disturbances that I can control thats what I think I am after.
Cheers.
James.
Title: Re: Realistic water
Post by: james adamson on December 10, 2020, 02:21:52 PM
I just remembered. The reason I used the 4d noise was because it looked very two dimensional with just a transform input.
If you have any suggestions for a more controllable way of adding some disturbance that would be great.
Title: Re: Realistic water
Post by: Dune on December 11, 2020, 02:38:36 AM
There's an easy way with 'get frame number' and then some warp by vector displacement, but I don't know the clip from my head. Y would be your choice for whirls, and then indeed the X and a little Z.
Title: Re: Realistic water
Post by: james adamson on December 11, 2020, 10:28:13 AM
Hi Dune.
Could you elaborate on this method a bit please? Not sure what the get frame would do and the docs online have not 
enlightened me. Also I have plugged a vector displacement into the water shade so it is the parent and I get the same effect whether
there is a vector function input or no vector function input.
Ta.
James.
Title: Re: Realistic water
Post by: Dune on December 11, 2020, 10:48:52 AM
If you have your waves (water shader or PF) pull it through a warp shader. As warper, you use a vector displacement shader, and as function input of that you use a get frame number (no input needed). If you set certain values (needs experimentation) in the vdisp shader, each frame will change the waves. You have to take into account the number of frames in a second and the amount of meters you need to shift waves in respectively X, Y, Z, so some calculation is needed.
Title: Re: Realistic water
Post by: james adamson on December 11, 2020, 04:14:24 PM
Cheers Dune. That has helped loads, I am making progress now, albeit slowly.
Title: Re: Realistic water
Post by: WAS on December 11, 2020, 04:59:57 PM
Here is something I was playing with last night before I had to get some sleep. I did a 30 frame render as an example

Sorry for bad gif results, I lost my chart for ffmpeg and couldn't find the flags I had saved for "nice" gifs, so I hit google but couldn't find one with better colour settings.

Z stretch on PFs may be a tad too strong. But this at least incorporates your idea of 4D noise, with simple translation on Z. and some added "channel warping" and isolation of water displacements. Basically water in the center of the river is, and should be moving faster and rougher, while water on along the shore is a little slower and calmer.
Title: Re: Realistic water
Post by: james adamson on December 11, 2020, 06:51:51 PM
Really nice. 
Thanks man and a tgd to boot!
Cheers Was I have a play with that.
Nice one.
James.
Title: Re: Realistic water
Post by: WAS on December 11, 2020, 11:21:51 PM
PS may get better water flow results doing the channel warping by the simple shapes after the transform translate shader. At least with boundaries at shore and in towards faster rougher waters.