PDA

View Full Version : Motion Blur on Z-buffer?


kerosene
01-15-2003, 01:16 PM
Well the headlines tells it all.

We are usin max + Vray for rendering and would like to use separate Z-buffer for depth of field in after effects.

This seems impossible. If I render separate Z-chanel with render elements the Z doesn't have the motion blur.

If I render RLA or RPF with included Z the result is same - no MBlur.

any answers appreciated


heikki

kerosene
01-15-2003, 01:56 PM
Well well.

I haven't tried it in AE yet but I resolved the problem by killing all lights, set all material gray, creating directional which is ambient only (no diffuse, no specular), attaching that light to camera, setting attenuation of the light and rendering the normal color channel as Z buffer.

No all effects work

heikki

RealThing
01-15-2003, 05:37 PM
The only problem with doing it this way is that you're limited in accuracy due to the 8 bit or 16 bit nature of the image. While in the RLA and RPF format the Z-depth channel is actually floating point. There's also some important reasons that the Z depth channel doesn't have anti-aliasing or motion blur. Both of these effect the perceived depth of the pixel. This is especially true with motion blur. Imagine if you have a moving object that's close to the camera so it's nearly white and directly behind it is another object that's in the distance which is much darker. Since the motion blurred sections of the closer object will be semi transparent they will mix in the darker background object which will push these parts of the close object back in z space. In reality these motion blurred pixels are just as close as the rest of the non-motion blured part. These are just the limitations that the 2d tricks for motion blur and dof have and sometimes they just don't work in a particular situation. It may be best to render out the DOF and motion blur directly from max. I think the best way to go about that is probably to use the amuze DOF script with scene motion blur. The amuze DOF script adds jitter to the camera's position and uses motion blur to do the DOF effect. This allows both the DOF and motion blur to be rendered at the same time almost as a side effect of each other.

kerosene
01-16-2003, 09:04 AM
I was already thinking myself that there is something weird in my thinking.

Thanks for opening my brain to the obvious. That camera jittering trick seems clever. Could I do it just with noise controller to the cam?


Heikki

RealThing
01-17-2003, 02:41 AM
You could probably use a noise controller....I've never taken a look at that script from amuze it may be all it's doing but somehow I think it's doing a bit more. Try the script http://www.scriptspot.com/download.asp?ID=236 it may turn out to be easier to control.

CGTalk Moderation
01-14-2006, 04:02 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.