Author Topic: Masked water.tgd (Massive render time chopper)  (Read 17464 times)

Offline dandelO

  • Member
  • *
  • Posts: 2401
Re: Masked water.tgd (Massive render time chopper)
« Reply #15 on: February 01, 2010, 09:57:31 PM »
And a render!

Offline FrankB

  • Member
  • *
  • Posts: 3603
Re: Masked water.tgd (Massive render time chopper)
« Reply #16 on: February 01, 2010, 10:03:52 PM »
and a beer.
... or two.  :P

Offline Henry Blewer

  • Member
  • *
  • Posts: 6333
  • The cooler weather is great!
    • flickr.com/photos/njeneb/
Re: Masked water.tgd (Massive render time chopper)
« Reply #17 on: February 03, 2010, 01:03:21 PM »
I will have a twelve pack, ;D
http://flickr.com/photos/njeneb/
Forget Tuesday; It's just Monday spelled with a T

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 13206
  • Holy snagging ducks!
Re: Masked water.tgd (Massive render time chopper)
« Reply #18 on: February 04, 2010, 07:06:13 AM »
Group hug? ;D

- Oshyan

Offline Goms

  • Member
  • *
  • Posts: 331
Re: Masked water.tgd (Massive render time chopper)
« Reply #19 on: June 20, 2010, 08:23:41 AM »
First: Sorry for re-opening, but i think in this case its ok.

There is a way to do this depending on the terrain.
If you combine your Terrain, made black with a distribution shader, and a power fractal that has (maybe, if you the water is not rendered where it should be) some displacement offset and is all white with a merge shader set to highest and use this as opacity input for a default shader, you will get exactly this. :)

without this in 2:23


with this in in 1:34


the nodes:



and the TGD is attached. :)
Quote from: FrankB
you're never going to finish this image ;-)

Offline choronr

  • Member
  • *
  • Posts: 4582
Re: Masked water.tgd (Massive render time chopper)
« Reply #20 on: June 22, 2010, 06:58:23 PM »
Thanks Martin; I'll be trying this soon.

Offline AndyWelder

  • Member
  • *
  • Posts: 516
  • Niet zeuren, gewoon doen!
Re: Masked water.tgd (Massive render time chopper)
« Reply #21 on: August 15, 2010, 09:29:41 PM »
Thanks a lot for this great contribution, DandelO. Works like a charm.
I would like to ad a caveat however: Keep in mind the .TGD originally has only 2 render threads enabled and the subdivision cache is limited to 200 MB. If you have a quad core system you might want to enable 4 threads and raise the subdivision cache to 400MB.
"Ik rotzooi maar wat aan" Karel Appel

Offline dandelO

  • Member
  • *
  • Posts: 2401
Re: Masked water.tgd (Massive render time chopper)
« Reply #22 on: August 15, 2010, 10:11:16 PM »
Thanks, Andy. I know, sorry about that, it's a very good point.
Lots of my shared files actually will be like that. They'll mostly be set for whatever machine I'd been using at the time, which has been usually a single or dual core with not much RAM.
I'm rewriting many of my uploads for my own site, in time. I'll be sure to right the SD cache and open up the max threads field in my uploads in future.
I noticed this myself before when I had to download an early voronoi caustic file I'd shared, I was on a higher spec pc and that file was saved to use 1 thread, I noted it as something I need to fix, when I update the files, soon...

Cheers, man! :)

Offline Floating.Point

  • Member
  • *
  • Posts: 86
Re: Masked water.tgd (Massive render time chopper)
« Reply #23 on: November 05, 2010, 10:00:17 AM »
Firstly thankyou so much for this excellent resource!

I would like to confirm that this does indeed work with the default lake object.

Also, I have noticed a significant issue with using a plane instead of a lake object...
Im not sure the technical reasons for the obvious "reduction of niceness"

But here is an example of using the same waterplane masking method on a lake object, and a plane object...
Notice how yucky the transparency is, with that hard edge... also the noise and general quality is not as nice.



But it doesn't really matter.... because the masking technique works on the lake object anyways!
Cheers!

Offline dandelO

  • Member
  • *
  • Posts: 2401
Re: Masked water.tgd (Massive render time chopper)
« Reply #24 on: November 05, 2010, 04:02:24 PM »
Uncheck 'cast shadows' on the plane! ;) If you check the settings of a default lake, you'll see that shadow casting is unchecked by default. That's all it is.

:)

Offline Floating.Point

  • Member
  • *
  • Posts: 86
Re: Masked water.tgd (Massive render time chopper)
« Reply #25 on: November 05, 2010, 05:53:32 PM »
Ahhh okay awesome!!! cheers!

Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Re: Masked water.tgd (Massive render time chopper)
« Reply #26 on: December 04, 2010, 06:32:18 PM »
Hey, long time no forum/terragening, but I was bored today taking a break from school work and was looking at this (and playing with new update) and then expanded on this clip a little.

Basically taking this clip, then extending the idea by allowing it to follow terrain (like a river flowing down a mountain side, all easily painted).

I used a plane object instead of a lake (I believe this is the same method dandelO used to make a waterfall), and sent the computed terrain as input into the water area mask.  

I created a very basic distribution shader that was blended by the painted shader, which then attaches to a displacement shader right before compute terrain, which has a negative multiplier allowing it to make a ditch.

That distribution shader also goes into the displacement of the "water surface - plug in here" layer, which then has a displacement multiplier of positive 4 in this image I believe.


Anyways, just thought I would share that quick modification possible to turn this clip into a very nice paintable river for down hills/rapids/whatever you wish.

Heres a quick scene I whipped up to demonstrate it, and a screenshot of the relevant node network.
« Last Edit: December 04, 2010, 06:34:26 PM by neuspadrin »

Offline Henry Blewer

  • Member
  • *
  • Posts: 6333
  • The cooler weather is great!
    • flickr.com/photos/njeneb/
Re: Masked water.tgd (Massive render time chopper)
« Reply #27 on: December 04, 2010, 06:38:24 PM »
With just a little extra work on the water shading, rough water could be done well using this, I believe.
http://flickr.com/photos/njeneb/
Forget Tuesday; It's just Monday spelled with a T

Offline Dune

  • Member
  • *
  • Posts: 15202
    • www.ulco-art.nl
Re: Masked water.tgd (Massive render time chopper)
« Reply #28 on: December 05, 2010, 07:49:11 AM »
This is the way I did downhill rivers as well, but the main problem is that the displacement used on the water base will have its 'sideways irregularities'. It will kind of follow the sideways curve of the mountain if you don't pick your POV carefully. For a real rough river it works though, especially if you throw some rocks into the riverbed and some foam (I use two layers, one overall, and one for steeper water).

Offline max_thehitman

  • Member
  • *
  • Posts: 128
Re: Masked water.tgd (Massive render time chopper)
« Reply #29 on: April 21, 2011, 02:46:30 PM »

Very cool ideas and great info too! Thanks for sharing your expertise on this matter.
I will keep this as a tutorial for future reference.
THANKS EVERYONE! Great art you create!

Cheers
MAX