Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 19-10-2003, 03:43 PM   #1
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default Depth of field

Can someone tell me why i get these really jagged edges when i use DoF on camera.
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote
Old 19-10-2003, 05:58 PM   #2
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Could you post some examples and what settings did you use?
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 20-10-2003, 03:12 PM   #3
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here you go. My settings where ,

Perspective camera DOF set to
Dist focus 10
F stop 9.85
Region 1

Maya Renderer
640 x 480
Anti alias Production
Highest quality

All object is scene are Nurbs
Tensselation set to Highest
U 8
V 8
Attached Thumbnails
 
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote
Old 20-10-2003, 03:15 PM   #4
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Close up
Attached Thumbnails
 
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote
Old 20-10-2003, 03:16 PM   #5
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can correct this in mental ray but maya renderer gives me this. anyone know what it is and how to fix?
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote
Old 20-10-2003, 03:19 PM   #6
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just tried upping my Anti Alias samples to 5 8 and 9 but diesnt seem to help

Tried 20 samples and 20 max shading, still there.
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote
Old 20-10-2003, 03:36 PM   #7
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Hmm... have you played with the near/far clipping planes of the camera you're rendering through? Or perhaps some other image format which has 16 bits per channel instead of 8?
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 20-10-2003, 03:59 PM   #8
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The image is rendering that way no matter what i save it in. THe only conclusion is that its one of my maya settings. I can correct the problem in mental ray render so but i cant figure out how to fix it in maya renderer.
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote
Old 20-10-2003, 07:36 PM   #9
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

I think I know why this happens. Maya's renderer does not anti-alias the Z-Depth channel, which is used for the DOF blur. Maybe mental ray anti-aliases it and that's why you get better results. Anyway you could render your images without the DOF but saving the Z-Depth channel in the files. Then do the DOF in post but blur/anti-alias the z-depth a bit before.

Here's what the z-depth looks like directly from maya's renderer.
Attached Thumbnails
 
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 20-10-2003, 11:15 PM   #10
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Does anyone know of a way to get to that z-Depth channel in After Effects? I've tried researching many docs, and posting in After Effects forums, but have never found an answer.
Dann is offline   Reply With Quote
Old 21-10-2003, 12:30 AM   #11
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Originally posted by kbrown
...you could render your images without the DOF but saving the Z-Depth channel in the files. Then do the DOF in post but blur/anti-alias the z-depth a bit before.

Here's what the z-depth looks like directly from maya's renderer.

Man.. did you ever loose me there.. LOL .

Ok after i figure out how to extract an image that looks like yours i blur it in photoshop? then how do i use that to Blur DoF my maya file?
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote
Old 21-10-2003, 01:19 AM   #12
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Lol. I just read what i wrote and shaked my head

Anyway, you're kind of on right track with what you suggested yourself. Only that I'd use after effects instead of photoshop. I'll play with this tomorrow more. It's too late right now :/
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 21-10-2003, 03:28 AM   #13
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default

k thanks, im looking forward to your reply.
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote
Old 21-10-2003, 05:59 PM   #14
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Alrighty. Starting with a new scene and default settings in Maya do the following:

Create two nurbs spheres @ 1 1 -5 and @ -1 1 5
Create a nurbs plane @ 0 0 0 and scale it up by 25
Create camera @ 0 1 15
Select Display->Camera/Light Manipulator->Clipping Planes (so that you can see what the next few settings do)
Uncheck the camera's "Auto Render Clip Plane
Set the cameras near clipping plane to 3
Set the cameras far clipping plane to 28
In render globals set:
- File Name Prefix: zDepthTest
- check the "Depth Channel(Z Depth)"
- change the camera from persp to camera1
- Resolution Preset: 640x480
- Anti-aliasing Quality Preset: Production
Batch render the frame

The Photoshop approach (not very good imho. if someone knows a better way i'd like to hear)
-------------------------------------------
open the zDepthTest.iff in photoshop (hopefully you got the maya iff plugin for photoshop. it's free but i can't remember where i found it). in photoshop select Window->Channels. you should see channels RGB, Red, Green, Blue, Alpha 1 and Alpha 2. Alpha 2 is the z-depth channel. click on it and zoom in to one of the spheres edges. it's all jagged and aliased. Do a gaussian blur with a radius of 1,0. Much better. Now zoom out to 100%. Control-click the Alpha 2 channel. The selection marquee looks a bit weird but let's ignore it. Choose Select->Inverse. Click on the RGB channel. Now start blurring with the selection still active and you should see the DOF like effect showing up.

The After Effects approach
-------------------------------------------
AE can read Maya IFF files but it can't (afaik) access the Alpha 2 channel (the z-depth info). Render the scene to an RLA file which is more suitable. Import the zDepthTest.rla in to AE and make a composition of it. Now apply an Effect->3D Channel->Depth Of Field. Nothing happens until you start tweaking the settings. For example:
- Focal Plane: 0,2 (this is the focus distance. keep withing 0 - 1. 0 = far, 1 = near)
- Maximum Radius: 5 (this is the max blurriness)
- Focal Plane Thickness: 0,1 (like focus region scale in maya. keep within 0-1)
Now you should have the furthest sphere in focus while the other is blurred. Change the focal plane to 0,7 and the foremost sphere should be somewhat in focus.

There you have it... I hope
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 21-10-2003, 08:24 PM   #15
iron_tick
Subscriber
 
iron_tick's Avatar
 
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HAHAHAHHA I GOT IT.......
__________________
<html><font size=2>
<font color="blue">
And after calming me down with some orange slices and some fetal spooning,
E.T. revealed to me his singular purpose.

--TOOL, 10,000 Days---

</font></pre>
</html>
iron_tick is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.