KeyShot Forum

Technical discussions => Post-processing => Topic started by: brizad13 on August 21, 2017, 07:23:55 AM

Title: rebuild final render from passes
Post by: brizad13 on August 21, 2017, 07:23:55 AM
does anyone know if you can rebuild  an rgba final render from all the passes?
what order and blend mode needed for each layer?
Title: Re: rebuild final render from passes
Post by: Rex on August 21, 2017, 05:16:57 PM
According to DriesV you can rebuild a render using the following formula.

Composite = (Direct Lighting + Indirect Lighting + Caustics) x Diffuse + Reflection + Refraction
+ --> Linear Dodge (Add)
x --> Multiply
Title: Re: rebuild final render from passes
Post by: brizad13 on September 12, 2017, 06:07:42 AM
rex,

i have been having some issues with re-building from passes. it seems some materials do not render correctly? can i send you a file to check into it?
Title: Re: rebuild final render from passes
Post by: Rex on September 12, 2017, 07:22:54 AM
Yes, please send the .ksp to rex@luxion.com via keyshot.wetransfer.com and I'll have a look at it.
Title: Re: rebuild final render from passes
Post by: ghostweeble on October 08, 2017, 12:13:49 PM

Hi! Did this ever get investigated? I'm having trouble figuring out how to rebuild from Keyshot 7's passes as well.
Title: Re: rebuild final render from passes
Post by: Rex on October 09, 2017, 12:27:53 PM
There was an issue with with the sample calculations of plastic materials that caused them to be more dull in the reflection pass. This will be fixed in the next 7.1 update.

Are you experiencing a specific problem ghostweeble?
Title: Re: rebuild final render from passes
Post by: ghostweeble on October 11, 2017, 09:56:54 AM
Hi Rex,

I'm just having issues parsing how to use the "formula" to recreate a final render. Is there a photoshop file example available anywhere that I could look at?

Thanks!
Title: Re: rebuild final render from passes
Post by: Esben Oxholm on October 11, 2017, 11:07:00 AM
Quote from: ghostweeble on October 11, 2017, 09:56:54 AM
I'm just having issues parsing how to use the "formula" to recreate a final render. Is there a photoshop file example available anywhere that I could look at?
I couldn't get something useful from it either. A Photoshop example file is a super good idea!
Title: Re: rebuild final render from passes
Post by: ghostweeble on October 21, 2017, 11:55:53 AM
Hi Rex,
Any chance we could get a sample .psd with correct layer modes and order for recreating a final render? Thanks!
Title: Re: rebuild final render from passes
Post by: DriesV on October 21, 2017, 01:47:34 PM
Here is a zip archive (https://drive.google.com/file/d/0Bzz4uxfB3fPMdElsS0w2Ry12d3M/view?usp=sharing) with a sample scene and PSD file.
I added the tori to have some reflective and refractive surfaces for caustics. :)

Please note that due to some discrepancies with Passes, it is possible that the composite does not match the original rendering exactly.
Also note that this technique of rebuilding the image from passes has limitations. It will not work for recreating "advanced" shaded results like translucency or metallic paint.

Dries
Title: Re: rebuild final render from passes
Post by: ghostweeble on October 28, 2017, 02:41:36 PM
Hi Dries,

Thanks for the file! (and I like the design of the ship!). It's strange to me that you don't even use the shadow pass in your composite. I also notice that the brightness between Keyshot and the photoshop (which very different), is closer if the brightness is raised to 2 in the Image tab of Keyshot. I wonder if there's something a little off in the way that Keyshot is exporting the passes? I don't expect Keyshot renders to be pixel for pixel matches with a composite image, but I would have thought that they would be much closer than this?

I didn't realize that I had to subscribe to this post to be notified but now that I have I'll reply much sooner!

Thanks!
Title: Re: rebuild final render from passes
Post by: ghostweeble on November 08, 2017, 03:26:45 PM
Hi all,

Any thoughts on my above questions? I'm  wondering especially why the brightness is so different?

Thanks,

mm
Title: Re: rebuild final render from passes
Post by: DriesV on November 09, 2017, 12:39:58 AM
Hi ghostweeble,

Yes, there can be some discrepancies between the composite and the KeyShot beauty image.
We are addressing a bunch of these in the upcoming 7.2 update.

I didn't use the Shadow pass, as shadows are included in the Lighting pass as well. The Shadow pass is meant to accentuate shadows.

Dries
Title: Re: rebuild final render from passes
Post by: ghostweeble on November 09, 2017, 09:49:47 AM
Thank DriesV,

One thing I noticed that's been updated in Keyshot 7, is that when I import a polypainted model via the bridge from Zbrush, I get a Texture(legacy) node. If I click the 'Upgrade to New Node' button, I now get the ability to turn off the MatCap, and the vertex color is correct between the apps! Previously, to get rid of the MatCap, I had to switch to Vertex Color, then insert a color adjust node to gamma correct the polypaint/vertex color.

This is great! I'm wondering why Keyshot defaults to using this legacy texture node rather than defaulting on the new node?

Honestly, I wish there was a way to make the MatCap turned off as the default. It's really not useful in Keyshot at all.

Thanks,

mm
Title: Re: rebuild final render from passes
Post by: Rex on November 09, 2017, 12:40:57 PM
We are currently working on utilizing the new texture mapping technique on imported textures.
Title: Re: rebuild final render from passes
Post by: ghostweeble on November 09, 2017, 04:54:19 PM
Sounds great Rex. Thanks for the 'behind the scenes' update!

Title: Re: rebuild final render from passes
Post by: frenky.lucky.tower on January 12, 2018, 09:09:33 AM
Hi Dries,

let's state first I'm quite new to all this...which my explain my following question.

Why when I try to render all these passes the output at my "GI" pass layer is completely different from your output at "GI" pass layer?
Mine is quite dark yours is quite...white.
I didn't change any setting and Global Illumination is ticked on Lighting's options.
Thank you
Title: Re: rebuild final render from passes
Post by: DriesV on January 12, 2018, 01:00:05 PM
Hi frenky.lucky.tower,

Your GI pass looks correct.
There have been a few changes to passes since my last post. The Lighting and Global Illumination pass are now multiplied by the diffuse color. Thus, the GI pass will be darker with darker materials.

Dries
Title: Re: rebuild final render from passes
Post by: frenky.lucky.tower on January 15, 2018, 02:23:46 AM
Hi,
Ok I see. Though the Lighting pass looks pretty much the same.
Thank you
Title: Re: rebuild final render from passes
Post by: frenky.lucky.tower on January 15, 2018, 02:28:07 AM
On the contrary,
in the Shadow pass there is a shadow on the background which is not present on the rgb final rendering.
Which is the reason and is there a way to avoid it?
Title: Re: rebuild final render from passes
Post by: simolius on January 30, 2018, 04:25:19 AM
is it important in which order you add the layers?

+between
+diff
+reflection
+refraction
+gi
---------------
between those?



----------------
On top multiply!
x AO
x Shadow