Planetside Software Forums

Support => Terragen Support => Topic started by: rajm on November 23, 2015, 06:33:04 AM

Title: Adding the plugin erosion as child layer causes crash
Post by: rajm on November 23, 2015, 06:33:04 AM
Start with new project
Add surface layer
Select new layer
Add child layer -> Displacement shader -> (Daniil Kamperov) Erosion
Terragen crashes

Is that shader meant to be allowable as a child layer?
Title: Re: Adding the plugin erosion as child layer causes crash
Post by: rajm on November 23, 2015, 06:56:45 AM
Ah - it doesn't crash if you add another child surface layer to the new surface layer first, if the erosion layer is the first child you get the crash
Title: Re: Adding the plugin erosion as child layer causes crash
Post by: Dune on November 23, 2015, 12:23:06 PM
In principle the erosion shader should go directly in line after the main terrain, not as child of a surface layer.
Title: Re: Adding the plugin erosion as child layer causes crash
Post by: rajm on November 23, 2015, 03:33:43 PM
My hope was that making it a child layer it would speed up the render time, though I can see from the announcement thread why that might not be so.

Having managed to make it a child layer the render does seem to run more quickly but maybe that's an illusion caused by too much impatience  ;)
The erosion code is being used in this case, on stdout I can see messages about the cache size.

And I've just seen Chris's comment (in the announce thread) about using the shader as a mask which looks to be what I should really be doing
Title: Re: Adding the plugin erosion as child layer causes crash
Post by: AP on November 23, 2015, 05:06:52 PM
On the first page of the announcement thread, Daniil posted images of the masks being used in various examples.
Title: Re: Adding the plugin erosion as child layer causes crash
Post by: Daniil on November 26, 2015, 10:22:28 AM
Hi rajm,

I'll check this case. There are also some problems possible if erosion shader main input doesn't linked to other shader. I'll fix this. May be this is the similar case.

Daniil.