Function: cracks & gashes for rocks (fake stones)

Started by FrankB, August 08, 2007, 10:04:19 am

Previous topic - Next topic

FrankB

Hi all,

following my experimentation around cracks on rocks, I have developed this further to accomodate for two otherwise distinct effects in parallel:

1 - Make Gashes

I'm using the term "gashes" to refer to a type of cracks that happen with rocks that exist in environments with a big cold/hot gradient. These stones 'crack' open, leaving deep gashes on the surface.

2 - Make Cracks

In this context, I'm referring to sediments, layers of stone that chip off entirely.


Now, the function can generate both effects at the same time, and allows to favour one or the other, or mix them equally.

Note that the function is currently optimzed for fake stones of other objects with an average size of 3 meters. If you require another scale, you'll have to fiddle with the functions accordingly. It's best to change only one parameter at a time to understand their effects. (I know you will most likely change them altogether, but then, you have been warned ;-) )

The contant scalar on the voronoi accounts for the size of the 'cracks' pattern.
The "Adjusting the deeper gashes" node controls the gash structures, obviously.

Then, the "Make gashes and cracks" node controls how visible and deep the structures become. This is done in the displacement tab of the node.

Finally, there are a few other displacement-generating nodes which control the larger overall  shape of the fake stone.

Oh, and there's an image map shader providing texture. I suggest you either use your own texture file, or use other ways of providing color to the stones.

Have fun,
Frank

PS: I'm continuing to work on a separate and more perfect "gashes" function together with Volker. Watch out for that.

Tangled-Universe

Hi Frank,

Thanks a lot for sharing this with us! I'll go play with it right away  :)
I did get a number of error messages when opening the file. It seems the tgd has been created with a tg2 version with softshadows included?  ;D

Martin

Volker Harun


FrankB

Quote from: Tangled-Universe on August 08, 2007, 10:52:41 am
Hi Frank,

Thanks a lot for sharing this with us! I'll go play with it right away  :)
I did get a number of error messages when opening the file. It seems the tgd has been created with a tg2 version with softshadows included?  ;D

Martin


You're welcome. And yes, the version I used to develop it was based on a newer version than yours. However, none of the new features is relevant for the project I made available to you.

Cheers,
Frank

Tangled-Universe

Yes I already realized that myself, nevertheless funny to encounter  :)

old_blaggard

http://www.terragen.org - A great Terragen resource with models, contests, galleries, and forums.

moodflow

You guys... you just keep pushing the limits... excellent work.

You need a paycheck.
http://www.moodflow.com
mood-inspiring images and music

FrankB


rcallicotte

Thanks Frank.  I had errors on-load yesterday and just now tried it again. COOL!  This is something to add to my understanding of this whole "crack & mutilate rocks" thing.   8)
So this is Disney World.  Can we live here?

monks


bigben

August 10, 2007, 07:02:13 am #10 Last Edit: August 10, 2007, 07:06:37 am by bigben
Quote from: calico on August 09, 2007, 09:50:54 am
Thanks Frank.  I had errors on-load yesterday and just now tried it again. COOL!  This is something to add to my understanding of this whole "crack & mutilate rocks" thing.   8)


Saving after opening it gets rid of the errors, but when I attempt to render it or add lighting to the preview the virtual memory blows out to 1.7Gb in a matter of seconds and TG crashes :( The only change I made was replacing the image map with a fractal

rcallicotte

Cool.  Thanks, Ben.  I'll try this now.
;D

Quote from: bigben on August 10, 2007, 07:02:13 am
Saving after opening it gets rid of the errors, but when I attempt to render it or add lighting to the preview the virtual memory blows out to 1.7Gb in a matter of seconds and TG crashes :( The only change I made was replacing the image map with a fractal
So this is Disney World.  Can we live here?

FrankB

Quote from: bigben on August 10, 2007, 07:02:13 am
..., but when I attempt to render it or add lighting to the preview the virtual memory blows out to 1.7Gb in a matter of seconds and TG crashes :( The only change I made was replacing the image map with a fractal


Really? That's not so on my PC. tgd.exe grows up to 300gb, and virtual memory rises very conservatively here.
I'm running xp with 2gb ram.

Frank

bigben

August 15, 2007, 06:46:00 pm #13 Last Edit: August 15, 2007, 07:02:55 pm by bigben
Yep.  RAM only goes up to 250-300Mb, but VM maxes out in the blink of an eye and then TG dies. Also running XP with 2Gb RAM... tried a couple of machines. Hopefully it's a sign of happier times to come with the next update ;)

otakar

same problem here. I guess we'll have to try again with the update. But thanks for sharing  :D