Planetside Software Forums

General => Terragen Discussion => Topic started by: Mohawk20 on January 03, 2020, 11:50:50 AM

Title: Feature Request: Vertical Simple Shapes
Post by: Mohawk20 on January 03, 2020, 11:50:50 AM
Sometimes a mask with a gradient might be needed.
For example in my waterfall scene (see image below), I curved the top to simulate realistic physics.
I wanted to use a vertical simple shape for best control over the curve, but couldn't. So i had to use a painted shader, which took a lot of work to tweak.

Is there a chance all axis-rotation for simple shapes could be implemented?
Title: Re: Feature Request: Vertical Simple Shapes
Post by: WAS on January 03, 2020, 11:54:28 AM
Quote from: Mohawk20 on January 03, 2020, 11:50:50 AMSometimes a mask with a gradient might be needed.
For example in my waterfall scene (see image below), I curved the top to simulate realistic physics.
I wanted to use a vertical simple shape for best control over the curve, but couldn't. So i had to use a painted shader, which took a lot of work to tweak.

Is there a chance all axis-rotation for simple shapes could be implemented?

If I'm not mistaken, you can rotate a Simple Shape. I believe this is how I did 2d flames.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: Tangled-Universe on January 03, 2020, 02:22:58 PM
I don't know how you pulled this off with the painted shader, hats of for that anyway, I never use that shader.

If the waterfall is a ribbon shaped plane object which you displaced to create the curve then I don't really understand the problem I'm afraid.
In that case I would position the plane object at the top of the waterfall and have it extend horizontally over the edge.
Then displace that plane down with a simple shape shader's color as input for a (vector) displacement shader.
To make the falloff non-linear you would need to position a colour adjust or bias scalar in between the simple shape and displacement shader.
That should give you enough control for the curvature.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: WAS on January 03, 2020, 03:04:46 PM
Quote from: Tangled-Universe on January 03, 2020, 02:22:58 PMI don't know how you pulled this off with the painted shader, hats of for that anyway, I never use that shader.

Must have been in 3D space. It's pretty handy actually. Just a little annoying to use... especially if you hit the edges while it's rendering preview, and paints/erases the whole viewport. It honestly should pause when you start painting and wait you to stop painting. I pause manually when RTP is finished. Then paint.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: Dune on January 04, 2020, 02:15:00 AM
You can rotate SSS's alright.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: mhaze on January 05, 2020, 05:28:39 AM
And warp them!
Title: Re: Feature Request: Vertical Simple Shapes
Post by: Mohawk20 on January 05, 2020, 03:48:29 PM
So if I place a simple shape at the top of the waterfall (which is a plane), I should be able to rotate it on the z-axis and set the displacement in such a way that the top of the plane curves backwards toward the cliff?
Because in the simple shape settings itself you can only rotate the shape on the y-axis, and a transform shader doesn't seem to do anything either.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: WAS on January 05, 2020, 04:09:03 PM
Quote from: Mohawk20 on January 05, 2020, 03:48:29 PMSo if I place a simple shape at the top of the waterfall (which is a plane), I should be able to rotate it on the z-axis and set the displacement in such a way that the top of the plane curves backwards toward the cliff?
Because in the simple shape settings itself you can only rotate the shape on the y-axis, and a transform shader doesn't seem to do anything either.


I think you need world space checked in the transform.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: Dune on January 06, 2020, 01:59:05 AM
Yes, see example.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: Mohawk20 on January 06, 2020, 08:24:26 AM
QuoteQuote from: Dune 1/6/2020, 7:59:05 AM

Yes, see example.
Well, that doesn't give the results I would like.

I want the top of of a plane curving backwards.

I changed the setup in your file to match my setup, with unsatisfying results:
Title: Re: Feature Request: Vertical Simple Shapes
Post by: Dune on January 06, 2020, 11:34:57 AM
Then you probably need to apply a soft SSS mask to the top and redirect or vdisp the plane. Or a distribution shader with min altitude set.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: Mohawk20 on January 06, 2020, 03:57:30 PM
Quote from: Dune on January 06, 2020, 11:34:57 AMThen you probably need to apply a soft SSS mask to the top and redirect or vdisp the plane. Or a distribution shader with min altitude set.
Probably.
Distribution shader would do the trick I guess.

But it does mean some more flexibility within the sss would definitely be useful.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: Dune on January 07, 2020, 01:48:03 AM
Yes, I was thinking lately that some rotating handles and/or sliders in all directions would be good.
Title: Re: Feature Request: Vertical Simple Shapes
Post by: bobbystahr on January 07, 2020, 03:06:58 PM
Quote from: Dune on January 07, 2020, 01:48:03 AMYes, I was thinking lately that some rotating handles and/or sliders in all directions would be good.
yup....thought that as well.