SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 19-10-2003, 02: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, 04: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, 02: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
Click image for larger version

Name:	blur dof.jpg
Views:	93
Size:	34.8 KB
ID:	11178  
__________________
<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, 02: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
Click image for larger version

Name:	close up.jpg
Views:	92
Size:	36.5 KB
ID:	11180  
__________________
<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, 02: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, 02: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, 02: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, 02: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, 06: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
Click image for larger version

Name:	z.jpg
Views:	85
Size:	18.6 KB
ID:	11184  
__________________
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, 10: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 20-10-2003, 11:30 PM   #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

Quote:
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, 12: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, 02: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, 04: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, 07: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.