Author Topic: Functional Caustics - by dandelO  (Read 10063 times)

Offline dandelO

  • Member
  • *
  • Posts: 2401
Functional Caustics - by dandelO
« on: May 31, 2010, 05:33:15 PM »
Here's the files for my new edited TG2 voronoi caustics, as shown here:



The functions are inside the 'Caustics Surface' shader. Control their coverage with the fractal named 'Distribution - via colour offset'. Negatively colour offsetting this shader gives less fractal coverage, positive makes more. The default '0' offset is quite an unbroken coverage. You can also use the blending shader of the parent node(caustics surface) layer to add your own distribution properties.
The actual surface layer's visibility is controlled by the parent node's 'luminosity function', defaults are '10'.

The .tgc version has no constraints set and full coverage(Dist' colour offset = '0').

The scale of the caustic Voronoi cells are controlled by 'constant scalar 01', defaults are '1'.

Enjoy!

*FILE REMOVED, AVAILABLE IN POST BELOW*

Thanks for looking/downloading! :)

Your Friendly Neighborhood dandelO.

*EDIT* A shallow water shader is again included in the clip file, just as last time. I've removed the displacement shader that the last one used and edited scales/trans'/etc.

*EDITED* Changed clipfile to new version 3, available a couple of posts down this page.
Removed .tgd(think I've found a GI bug, but a good one! Testing things before I post to support. If you downloaded the .tgd, lower the GI settings in it, significantly! This is really, really weird... :-\)
« Last Edit: June 01, 2010, 01:08:38 AM by dandelO »

Offline Kadri

  • Member
  • *
  • Posts: 8502
Re: Functional Caustics - by dandelO
« Reply #1 on: May 31, 2010, 07:00:58 PM »

Thanks , DandelO  :)

Offline Zairyn Arsyn

  • Member
  • *
  • Posts: 2877
  • I am the naked Coal.
    • facebook
Re: Functional Caustics - by dandelO
« Reply #2 on: May 31, 2010, 07:47:37 PM »
pretty, thanks for sharing.  :)
WARNING! WIZARDS! DO NOT PREDICT THE BEHAVIOR OF OTTERS UNLESS YOU OBEY BIG HAPPY TOES.

i7 2600k 3.4GHZ|G.skill 16GB 1600MHZ|Asus P8P67 EVO|Evga 770GTX 4GB|SB X-FI|Antec 750W
http://zlain81.deviantart.com/

Offline dandelO

  • Member
  • *
  • Posts: 2401
Re: Caustics Update
« Reply #3 on: May 31, 2010, 11:31:29 PM »
A quick update on this. The hard cells were bothering me, should've sorted this before I uploaded them earlier but I wasn't thinking straight.

So, what before looked like this:

24986-0

Now looks like this:

24988-1

You really never get straight waves! :D

You can use random seed in the shader 'Warp Fractal' for infinite variations. To tone down the warping amount, reduce displacement in this fractal.
I've also changed the scales and reduced the 'Distribution via colour offset' colour offset setting to '-0.325', to make the cells not as bright as each other all over the entire surface. Now, they seem to fade in and out better and, it just looks a whole lot nicer.

Cheers! :)

dandelO/If you can't make it - Fake it!
« Last Edit: June 25, 2012, 01:14:42 PM by dandelO »

Offline choronr

  • Member
  • *
  • Posts: 4582
Re: Functional Caustics - by dandelO
« Reply #4 on: June 01, 2010, 12:15:43 AM »
Thanks Martin; hope to be using the updated version soon.

Offline Gannaingh

  • Member
  • *
  • Posts: 835
Re: Functional Caustics - by dandelO
« Reply #5 on: June 01, 2010, 06:25:23 AM »
Cool! Thanks for sharing!

Offline choronr

  • Member
  • *
  • Posts: 4582
Re: Functional Caustics - by dandelO
« Reply #6 on: June 02, 2010, 06:42:11 PM »
I have tested your .tgc file on one of my images that contains water. The issue I've not been able to resolve is that the caustics image appears everywhere on the terrain. I tried connecting an additional surface layer (without color) used for restricting distribution of the voronoi image; and, it didn't seem to make any difference. Any suggestions?

Offline dandelO

  • Member
  • *
  • Posts: 2401
Re: Functional Caustics - by dandelO
« Reply #7 on: June 03, 2010, 12:10:58 AM »
The blend shader port of the caustics layer is completely free, Bob, as are the slope/altitude constraints...

For the example image above, all I used were the height constraint tab, it's a little off at the very shore/land border but, if I'd taken a bit more care I'd have dropped it very slightly more to keep it completely underwater. you can blend it into your terrains however you choose.

Here's another render, with the new updated caustics instead of the old uns, I think they're all underwater now, just using the height constraints.

25022-0

You could use whatever you need to fit it into your own scene. Distance shader, distribution shader, painted shader, etc.
« Last Edit: June 03, 2010, 12:20:58 AM by dandelO »

Offline choronr

  • Member
  • *
  • Posts: 4582
Re: Functional Caustics - by dandelO
« Reply #8 on: June 03, 2010, 04:50:50 AM »
I think I'll try the Painted shader since the other methods suggested did not work properly. Thanks Martin for the tips.

Offline dandelO

  • Member
  • *
  • Posts: 2401
Re: Functional Caustics - by dandelO
« Reply #9 on: June 03, 2010, 07:28:16 AM »
I can't imagine why you can't use the blend shader option with any other shader that would normally be used for this. And, the caustics layer is really just a surface layer so, it already has it's own constraints.

Offline choronr

  • Member
  • *
  • Posts: 4582
Re: Functional Caustics - by dandelO
« Reply #10 on: June 03, 2010, 04:46:55 PM »
I can't imagine why you can't use the blend shader option with any other shader that would normally be used for this. And, the caustics layer is really just a surface layer so, it already has it's own constraints.
Hi Martin.

Thanks for getting back. When I set up the caustics layer and before I set any constraints, the caustics show up all over (from water to terrain). Then, using it's own constraints, I enter the maximum altitude and fuzzy which in the case of my image was 1.059km and 0; and check Y for altitude - at this point, caustics do not show up. I tried a distribution shader plugged into the blend shader and got the same results. Then, I tried another image that contains water; and, got the same negative result.

I did not try the painted shader as of yet but will do so. I think this will work. I will try it a little later on today and get back with the results.

Bob

Offline choronr

  • Member
  • *
  • Posts: 4582
Re: Functional Caustics - by dandelO
« Reply #11 on: June 03, 2010, 06:33:44 PM »
The Painted shader worked fine. The images with water that I've used were probably not good subjects. The new one I'm working on may be a good subject to test the caustics ...we'll see.

Thanks again Martin for the file and all your help.

Bob

Offline inkydigit

  • Member
  • *
  • Posts: 5196
  • 🍄🍄🍄
    • inkydigit's website
Re: Functional Caustics - by dandelO
« Reply #12 on: June 04, 2010, 09:07:38 PM »
cheers D....thanks Bob also, for the info

Offline dandelO

  • Member
  • *
  • Posts: 2401
Re: Functional Caustics - by dandelO
« Reply #13 on: June 04, 2010, 09:49:49 PM »
Strange. I really have no problems making the layer localized by using its own constraints tabs and a blending shader.

It is correct that it appears everywhere once you plug it into your scene, though, Bob. It would be wrong if I were to have set up constraints on the clip file parent layer. If there were any constraints set then, most likely, they would not fit your particular scene. This way, as they are, you get a complete layer of caustic patterns that you then need to tell where to appear(where your waterlines/depth cut-offs are. I could easily have set it up so that no caustics appear over 'Y=0m' but that would not be applicable to most scenes.
For the default settings then, the caustics layer will appear, just as if you have created any other 'surface layer'(all over everything), then you must tell it where you want it.

For demonstration sake, I'll attach a few different blending methods for it here. Really though, it's no different from the main 'surface layer' that it is, which holds all the caustic function nodes. Give me 10 minutes and I'll pop up a couple of blending demos using the most common methods...

Offline dandelO

  • Member
  • *
  • Posts: 2401
Re: Functional Caustics - by dandelO
« Reply #14 on: June 04, 2010, 10:51:21 PM »
Ok, couple of blending methods, nothing past beginner-level TG2, maybe you're thinking this is a more complicated thing than it actually is?

First: Distance shader. Blended out from render camera, 0m(full cover) to 50m(no cover):
25073-0
* caustic layer_distance blend 50m.tgd (54.56 kB - downloaded 294 times.)

Next: Blend by(its own) maximum altitude constraint, over crater at 3m depth:
25076-2
* caustic layer_max altitude blend.tgd (54.47 kB - downloaded 264 times.)

Next: Blend by(its own) minimum altitude constraint, over the same crater:
25079-4
* caustic layer_min altitude blend.tgd (54.47 kB - downloaded 267 times.)

continued...