How do I make Stones NOT on Stones?

Started by cyphyr, February 24, 2007, 08:19:57 am

Previous topic - Next topic

cyphyr

February 24, 2007, 08:19:57 am Last Edit: February 24, 2007, 09:07:36 am by cyphyr
I'm sure this has been covered but I cant find a relevant link. The image below shows what I dont want. The smaller stones have covered the larger stones. The effect I am looking for is the exact opposite. How can I exclude the smaller stones from the surface of the larger stones? I have brightly coloured the individual stones for clarity. I'm trying to get larger stones to lay ontop of smaller stones, is this possible? Attached are the tgd file, the render and a screen grab of the Fake stones node network.
Thanks in advance.
Richard Fraser
(cyphyr)
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 3900X @3.79Ghz, 64Gb (TG4 benchmark 6:20)
i7 5930K @3.5Ghz, 32Gb (TG4 benchmark 13.44)

3DGuy

February 24, 2007, 11:19:19 am #1 Last Edit: February 24, 2007, 11:27:56 am by 3DGuy
Just guessing, but could you feed the output of the top stone shader into the blending shader of the second one and then in the second shader tick 'invert blending shader shader' and so on for all others?

edit: just like this, seems to work:

[attachimg=#]

fmtoffolo

what 3d guy says is correct. but i don't know that works right if the color of the stones is anything but white. I'm almost certain that if you change the stone color via the simple color slider of the fake stone shader, it won't work correctly. I don't know what happens if you use a default shader to change the stones shading.



My Terragenn site
www.cgworlds.com.ar

Arandil

Would it be possible (I haven't explored all of the node types yet) to set the stone shader color differently for each of its outputs, by passing through other shaders en route to the inputs of subsequent nodes?

old_blaggard

It definitely is.  You could use a color adjust shader to make the areas where there are stones white, and plug that into the blending shader.
http://www.terragen.org - A great Terragen resource with models, contests, galleries, and forums.

neon22

reverse the order so you start with tiny rocks and end with big ones

ProjectX

yeah that'll work, put the shaders so that the smallest stones are at the top of the shader list and the largest at the bottom.

fmtoffolo

Hey I just made a quick tutorial on how I do this thing of rock over rock question.
you can find it here

http://terragenfmtoffolo.blogspot.com

I don't know if this is the right way of doing it, but i've tried all the other ways i found in this forum, and all of them gave me trouble. So i came up with my own way.

Fer
My Terragenn site
www.cgworlds.com.ar

sonshine777

You might try reversing the order of you stone layers. The way layers work in Terragen is the bottom of the list is the top surface therefore the large stone should be at the bottom of your layer list not the top.

Here is a great thread that talks about fake stones. 
http://forums.planetside.co.uk/index.php?topic=231.0

Hope this helps.

fmtoffolo

actually, when putting the little stones shader before the big stones shader i get the stones with different color allright, but the big stones carry along the displacement of the little stones shader...(first pic)

By masking you can get the same but  free of unwanted displacements(second pic)





My Terragenn site
www.cgworlds.com.ar

rcallicotte

Can I either see your TGD to understand the masking or could you explain it or show the node network and explain it?  I would like to mask only a certain area which will have the fake stones and the rest of the picture will not have the fake stones.



Quote from: fmtoffolo on February 26, 2007, 03:06:44 pm
actually, when putting the little stones shader before the big stones shader i get the stones with different color allright, but the big stones carry along the displacement of the little stones shader...(first pic)

By masking you can get the same but  free of unwanted displacements(second pic)






So this is Disney World.  Can we live here?

fmtoffolo

February 26, 2007, 08:09:54 pm #11 Last Edit: February 26, 2007, 09:04:29 pm by fmtoffolo
The explanation is in my tutorial at
http://terragenfmtoffolo.blogspot.com
There you have an explanation and a screen of the node network
Any doubt just pm me

pd: I'll be uploading a video tutorial of this tomorrow(27/02/07) in my blog, so check it out if you want!
My Terragenn site
www.cgworlds.com.ar



dhavalmistry

Those are pretty real looking stones Victor

Good job
"His blood-terragen level is 99.99%...he is definitely drunk on Terragen!"