Planetside Software Forums

General => Terragen Discussion => Topic started by: WAS on March 04, 2018, 03:16:39 PM

Title: Gas Giant / Dark Spot
Post by: WAS on March 04, 2018, 03:16:39 PM
I want to create a specific large dark spot on my gas giant, however, when I attempt to do a SSS or PS my shape is horrible stretched. I am doing this all after any warping of the initial planet form. I have also tried a computer terrain before my mask. Any ideas why it would stretch like this?
Title: Re: Gas Giant / Dark Spot
Post by: Matt on March 04, 2018, 05:04:53 PM
Simple Shape Shader is based in 2D, so all positions with the same X and Z positions look the same to it. If what you need is a circle then I would try using a Distance Shader which works in 3D. It calculates distances from a 3D position (the position of a camera node that you plug into it). You'll need to be careful to make sure the position is really on the surface of the planet, otherwise it will be less predictable.

Matt
Title: Re: Gas Giant / Dark Spot
Post by: Matt on March 04, 2018, 05:06:58 PM
Another way to do this is with an Image Map Shader projected through a camera which you point towards the planet.

Matt
Title: Re: Gas Giant / Dark Spot
Post by: cyphyr on March 04, 2018, 05:59:15 PM
I would place the SSS at the "North pole" (0,0,0) and then put a transform node (+90deg in the x rotation) before the surface layer.
This will bring the SSS to the equator.
Title: Re: Gas Giant / Dark Spot
Post by: WAS on March 04, 2018, 07:54:25 PM
Quote from: Matt on March 04, 2018, 05:04:53 PM
Simple Shape Shader is based in 2D, so all positions with the same X and Z positions look the same to it. If what you need is a circle then I would try using a Distance Shader which works in 3D. It calculates distances from a 3D position (the position of a camera node that you plug into it). You'll need to be careful to make sure the position is really on the surface of the planet, otherwise it will be less predictable.

Matt

I'll give this a shot, thanks, and thanks for the explanation. It makes sense.

Update: So it seems you can just use the painted shader, and go into Transform, and use the 3D perspective. This works as expected.

Quote from: cyphyr on March 04, 2018, 05:59:15 PM
I would place the SSS at the "North pole" (0,0,0) and then put a transform node (+90deg in the x rotation) before the surface layer.
This will bring the SSS to the equator.

I'll give this a shot as well since I still have the SSS in a separate save. Thanks a lot.

Update: This method seems to have still warped, this time on a greater rotation. Haha. Not sure why, the setup is the same as your just more going on before the spot.
Title: Re: Gas Giant / Dark Spot
Post by: WAS on March 05, 2018, 03:56:00 PM
Thanks again, you two! With some final edits, you can get a somewhat convincing gas giant spot out of TG. Having a little bit of an issue with my displacement. Would like it to appear deeper, but the base planets sphere seems to prevent that (get to a flat surface displacing down too far).

[attachimg=1]
Title: Re: Gas Giant / Dark Spot
Post by: cyphyr on March 05, 2018, 04:08:05 PM
One possible explanation is that I generally move the planet centre to 0,0,0. The default has the north poll at 0,0,0.
Looking good :)
Title: Re: Gas Giant / Dark Spot
Post by: WAS on March 05, 2018, 05:33:41 PM
Quote from: cyphyr on March 05, 2018, 04:08:05 PM
One possible explanation is that I generally move the planet centre to 0,0,0. The default has the north poll at 0,0,0.
Looking good :)

Oh that might be why. :P

Thank you.