Planetside Software Forums

General => Terragen Discussion => Topic started by: Hannes on March 28, 2019, 09:21:29 AM

Title: Another RT/PT comparison
Post by: Hannes on March 28, 2019, 09:21:29 AM
After I optimised some of the materials (one by Fleetwood) I created to use with the path tracer here:
https://planetside.co.uk/forums/index.php/topic,22695.msg262940.html#msg262940
I did a test with the translucent plastic material (colors set to white). It's more or less the same for RT and PT, but it's incredible how much better it looks with the path tracer. It really seems a bit transparent showing things underneath. I'm aware it's probably not transparent at all, but at least it looks like.
The model is the mechanical spider I used in my "Robot games" image. To get a fair comparison I replaced all the metal materials by non-PT materials for the RT image.
Of course rendertimes are a big issue, but in this case it was worth the waiting I'd say.
Title: Re: Another RT/PT comparison
Post by: Hannes on March 28, 2019, 09:28:13 AM
Here is a Full HD render of the PT version.
Title: Re: Another RT/PT comparison
Post by: archonforest on March 28, 2019, 09:31:17 AM
Wow, what a difference!
Title: Re: Another RT/PT comparison
Post by: Kadri on March 28, 2019, 10:35:33 AM

Awesome!
Title: Re: Another RT/PT comparison
Post by: bobbystahr on March 28, 2019, 11:15:42 AM
WOW..really gotta scrape some cash together to update....that's ultra real...
Title: Re: Another RT/PT comparison
Post by: Dune on March 28, 2019, 12:18:50 PM
It really does look softly transparent! Awesome.
Title: Re: Another RT/PT comparison
Post by: Matt on March 28, 2019, 04:58:02 PM
Interesting!

There is a potential pitfall when using translucency. If the material is 100% translucent, you should not use a colour any brighter than 50% (at the moment). In reality the amount of light leaving a surface cannot exceed the amount falling on it (unless it's luminous/emissive). Translucency acts as a percentage of the diffuse colour, and transmits that to the other side of the surface, adding to the total.

For example:

100% white diffuse, 0% translucency: Total = 100% + 0% = 100%
100% white difffuse, 50% translucency: Total = 100% + 50% = 150% (this is physically impossible)

Here are some settings that remain physically correct with a total output of 100%:

1.0 diffuse, 0.0 translucency
0.8 diffuse, 0.25 translucency (0.8 + 0.8 x 0.25 = 1.0)
0.75 diffuse, 0.33 translucency (0.75 + 0.75 x 0.33 ~= 0.998)
0.66 diffuse, 0.5 translucency (0.66 + 0.66 x 0.5 = 0.99)
0.6 diffuse, 0.66 translucency (0.6 + 0.6 x 0.66 = 0.996)
0.55 diffuse, 0.8 translucency (0.55 + 0.55 x 0.8 = 0.99)
0.5 diffuse, 1.0 translucency (0.5 + 0.5 x 1.0 = 1.0)

Problems occur if you don't consider this. Multiple bounces of light will cause excessive brightness to compound into a much larger excess. Not only can this look weird, it also increases noise in the image.

I might add a checkbox to the translucency control to make it automatically reduce the light-facing diffuse so that you don't have to think about this. If you're reading this in the future, look out for a checkbox labeled "physically correct", "physically correct diffuse/translucent balance", or something like that.

Matt
Title: Re: Another RT/PT comparison
Post by: AP on March 28, 2019, 07:23:30 PM
What of Subsurface Scattering?
Title: Re: Another RT/PT comparison
Post by: Matt on March 28, 2019, 07:47:39 PM
Subsurface scattering is not quite ready yet, but it is coming soon  8)
Title: Re: Another RT/PT comparison
Post by: AP on March 28, 2019, 08:09:10 PM
Quote from: Matt on March 28, 2019, 07:47:39 PM
Subsurface scattering is not quite ready yet, but it is coming soon  8)

Subsurface Scattering can solve the problems of the plastic and other surfaces that require such a shader. Correct?
Title: Re: Another RT/PT comparison
Post by: Matt on March 28, 2019, 08:34:29 PM
The version of subsurface scattering that we have in development is an improved version of the subsurface effect in the Glass Shader and Water Shader. We haven't decided exactly how it will be added to other shaders such as the Default Shader, but it will be enough to let you simulate plastic with subsurface scattering.
Title: Re: Another RT/PT comparison
Post by: bobbystahr on March 29, 2019, 11:04:07 AM
Quote from: Matt on March 28, 2019, 08:34:29 PM
The version of subsurface scattering that we have in development is an improved version of the subsurface effect in the Glass Shader and Water Shader. We haven't decided exactly how it will be added to other shaders such as the Default Shader, but it will be enough to let you simulate plastic with subsurface scattering.

woo hoo...now I really get my maintenance up to date...praying for a generous tax return....and thanks for the wee comparison chart in your earlier post
Title: Re: Another RT/PT comparison
Post by: AP on March 29, 2019, 08:00:56 PM
Quote from: Matt on March 28, 2019, 08:34:29 PM
The version of subsurface scattering that we have in development is an improved version of the subsurface effect in the Glass Shader and Water Shader. We haven't decided exactly how it will be added to other shaders such as the Default Shader, but it will be enough to let you simulate plastic with subsurface scattering.

What of features such as BSSRDF, back scattering, layered scattering, scatter and subsurface color, scatter radius, and so forth?
Title: Re: Another RT/PT comparison
Post by: Hannes on April 01, 2019, 10:46:51 AM
Even though Matt announced that there will be a method for subsurface scattering using a water or glass shader, I couldn't wait and took advantage of the way more accurate path tracer and used some edited version of my translucent "Fleshy" material (which is basically the same like the "Translucent plastic").
I faked the missing depth of the object by inserting a simplified and slightly smaller version of the actual head (without ears) representing a very simple version of skull and muscles, that don't let light go through.
In other apps this is done by using maps as far as I know, which is much easier, but if you don't have a map and don't know how to create one, it's a good solution to use geometry.
Title: Re: Another RT/PT comparison
Post by: bobbystahr on April 01, 2019, 10:50:37 AM
that's great work Hannes, most obvious on the ear but effective over all.
Title: Re: Another RT/PT comparison
Post by: Dune on April 02, 2019, 01:58:27 AM
Awesome!
Title: Re: Another RT/PT comparison
Post by: Hannes on April 02, 2019, 03:05:19 AM
A test with a simple sphere with the "Fleshy" material assigned to and a moving abstract geometry inside.
Title: Re: Another RT/PT comparison
Post by: Dune on April 02, 2019, 05:49:04 AM
Creepy! Like something inside want to get out... But very cool! Maybe add a monster inside  ;)
Title: Re: Another RT/PT comparison
Post by: mhaze on April 02, 2019, 07:44:25 AM
Awesome indeed.
Title: Re: Another RT/PT comparison
Post by: Hannes on April 02, 2019, 08:03:15 AM
Thanks guys!
I can't stop creating weird stuff...
Title: Re: Another RT/PT comparison
Post by: archonforest on April 02, 2019, 09:19:06 AM
A meatcube? LOL!
Title: Re: Another RT/PT comparison
Post by: bobbystahr on April 02, 2019, 10:28:49 AM
brilliant and a bit 'creepy' as Ulco said; and the meat cube is plain strange....love yer weirdness Hannes
Title: Re: Another RT/PT comparison
Post by: Dune on April 02, 2019, 10:32:07 AM
I envisage a next big, weird render from you Hannes  ;D
Title: Happy Easter, Earthlings! See you soon...
Post by: Hannes on April 04, 2019, 02:57:09 AM
Continuing my weird journey to Subsurface Scattering Land. Can't wait to try the SSS material, that Matt had announced.
Title: Re: Another RT/PT comparison
Post by: Matt on April 04, 2019, 03:16:01 AM
Looks like you don't need it  :P
Title: Re: Another RT/PT comparison
Post by: DocCharly65 on April 04, 2019, 03:16:39 AM
Though I have a bad feeling in my stomach now - great render Hannes! ;D
Coming summer or fall I perhaps have to update my maintenance contract for the new TG updates and learn some new things ;)
Title: Re: Another RT/PT comparison
Post by: Hannes on April 04, 2019, 03:33:10 AM
Thanks guys!

Quote from: Matt on April 04, 2019, 03:16:01 AM
Looks like you don't need it  :P

I think I do. So far this only works with an object inside the object to simulate the volumetric density.
Title: Re: Another RT/PT comparison
Post by: bobbystahr on April 04, 2019, 03:34:53 AM
Quote from: Matt on April 04, 2019, 03:16:01 AM
Looks like you don't need it  :P

pretty much what I thought...brilliant one hannes
Title: Re: Another RT/PT comparison
Post by: bobbystahr on April 04, 2019, 03:36:39 AM
Quote from: DocCharly65 on April 04, 2019, 03:16:39 AM

Coming summer or fall I perhaps have to update my maintenance contract for the new TG updates and learn some new things ;)

me too, hoping for a decent income tax refund to speed that along
Title: Re: Another RT/PT comparison
Post by: archonforest on April 04, 2019, 04:55:56 AM
Alien-Easter? ;D
Disturbingly good render.
Title: Re: Another RT/PT comparison
Post by: Kadri on April 04, 2019, 08:38:31 AM

I like especially the last one Hannes. That looks great!
Title: Re: Another RT/PT comparison
Post by: Dune on April 04, 2019, 11:01:21 AM
Ggggghappy Easter  :P