DOF in post with glass, refraction and reflection problems

Discussions regarding Materials, Material-Compounds or Shaders, etc.
aio
Posts: 36
Joined: 23 Oct 2012, 00:12

DOF in post with glass, refraction and reflection problems

Post by aio » 23 Oct 2012, 20:30

Hello forum,

I'm trying to achieve this kind of effect but in post.
Image

I tried with the p_z shader on separate channels with arch material X, but i have trouble with the reflections, i have only one level of depth and with the refraction, same values of IOR give me different results than with the arch material.

Is it realistic to hope to achieve this kind of effect?

thank you

Letterbox
Posts: 391
Joined: 17 Jun 2009, 12:49

Re: DOF in post with glass, refraction and reflection problems

Post by Letterbox » 24 Oct 2012, 19:18

Yes you could do that in post.

You'll have to be aware of many things, as I'm sure that the image is not the final scene. That said, you''ll need know to export mattes, reflection passes (possibly per object), and depth pass's. You also need to know how to setup framebuffers for the Mia_Arch shader (I think there was a version of the mia shader that let you output everything in raw uncorrected form). In AE you have to know how recombine in the right order, pre-comp, know how DOF works in AE, or look for a Rack focus style of plugin and how that connects to the depth pass.

As for depth passes in SI, look the great tutorial site http://caffeineabuse.blogspot.com/.

So it can be done, but think carefully what passes you'll need, where and what the dof effects for your specific scene. As every scene and camera move will change what you need.

Falam

Re: DOF in post with glass, refraction and reflection problems

Post by Falam » 25 Oct 2012, 02:38

CG is making it from scratch, then tearing it apart in the end layer by layer, unless the last step is skipped.

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 06:59
Location: Close to The Hague, Netherlands

Re: DOF in post with glass, refraction and reflection problems

Post by Rork » 25 Oct 2012, 09:40

Or try to buy into a more modern renderer.... 8-}
SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!

aio
Posts: 36
Joined: 23 Oct 2012, 00:12

Re: DOF in post with glass, refraction and reflection problems

Post by aio » 25 Oct 2012, 20:02

Rork wrote:Or try to buy into a more modern renderer....
Please name one !
I'll try to post some screen grabs on the next days

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 06:59
Location: Close to The Hague, Netherlands

Re: DOF in post with glass, refraction and reflection problems

Post by Rork » 26 Oct 2012, 07:36

well... i could say Arnold, but that's just plain mean to most of us here ;)

Maybe more modern isn't the right word, but have a Google on renderers and plugins for Softimage.
You'll be amazed how many renderers are out there now, free or commercial.

rob
SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!

User avatar
origin
Posts: 619
Joined: 09 Jun 2009, 09:59
Location: warsaw

Re: DOF in post with glass, refraction and reflection problems

Post by origin » 26 Oct 2012, 14:35

all renderers out there have dead slow DOF...

Falam

Re: DOF in post with glass, refraction and reflection problems

Post by Falam » 26 Oct 2012, 16:02

Isn't wise to do DOF in post ?
Here is a suggestion, if you do a render and someone tells you, oh that render would look killer in <render engine name> then you could consider.

Why I personally don't use another render engine besides MR is I have to substitute the factory MR nodes with the other render engines nodes, that isn't hard, but learning the new nodes takes time and I still am rusty in ICE, I rather get more acquainted with ICE then another render engine.

User avatar
ActionArt
Posts: 853
Joined: 25 Nov 2010, 17:23
Location: Canada

Re: DOF in post with glass, refraction and reflection problems

Post by ActionArt » 26 Oct 2012, 17:18

3Delight does quite well at DOF and directly converts most nodes so there is little to learn. If you need DOF in 3D and perhaps motion blur and or displacement mapping it might be a good choice.

Kzin
Posts: 432
Joined: 09 Jun 2009, 09:36

Re: DOF in post with glass, refraction and reflection problems

Post by Kzin » 26 Oct 2012, 20:14

there does not exist one renderer which can solve such scenes with good rendertimes when it comes to raytracing (nor 3delight or arnold or mr or vray or octane). because you have to shoot rays to refine the dof you will always end up with extrem high raycounts for smooth solutions which means you have to render a long time. thats the reason why most time its done in post, better quality with way better rendertime (and dont forget the control you have in post).

this scene is worst case and if you have to render images only then i would say render the dof. for animation, you can use shaders from the ba shader pack from holger schoenberger to get correct mattes for postblur. this needs some more shadersetup, but its possible to get them so you can do some ok'ish post blur. ;)

aio
Posts: 36
Joined: 23 Oct 2012, 00:12

Re: DOF in post with glass, refraction and reflection problems

Post by aio » 26 Oct 2012, 21:08

Well kzin i tried the BA shader but i couldn't figure how there are useful in this case, there's a setting for reflection ok but the transparency setting gives a weird looking look like an occlusion pass how 's that related to refraction?

My scene wil only have one or two bottle (with thickness and and a different ior inside) and basic reflections but i'm relatively new to applying a zpass separately on refractions and reflections.

aio
Posts: 36
Joined: 23 Oct 2012, 00:12

Re: DOF in post with glass, refraction and reflection problems

Post by aio » 28 Oct 2012, 11:59

So here's the deal : the z_pass shader give me different refractions than the arch material. And i don't know why.
Simple sphere, nothing fancy. So far i'm stalled. If someone has a better idea how to do that, i'm listening.



Image

Kzin
Posts: 432
Joined: 09 Jun 2009, 09:36

Re: DOF in post with glass, refraction and reflection problems

Post by Kzin » 28 Oct 2012, 13:31

is this also different then you deactivate the reflection of the arch mat and render only refraction?

aio
Posts: 36
Joined: 23 Oct 2012, 00:12

Re: DOF in post with glass, refraction and reflection problems

Post by aio » 28 Oct 2012, 13:36

yep i compared with the refraction of a lambert also. Same thing. I mailed the author maybe i'm doing something wrong.

Kzin
Posts: 432
Joined: 09 Jun 2009, 09:36

Re: DOF in post with glass, refraction and reflection problems

Post by Kzin » 28 Oct 2012, 15:36

aio wrote:yep i compared with the refraction of a lambert also. Same thing. I mailed the author maybe i'm doing something wrong.
have you tryed to create a custom pass with gradient falloff of the scene and transp/refract on?

aio
Posts: 36
Joined: 23 Oct 2012, 00:12

Re: DOF in post with glass, refraction and reflection problems

Post by aio » 28 Oct 2012, 15:48

could you be more specific? function to use? like a fog?