Introduction to Maya - Modeling Fundamentals Vol 1
This course will look at the fundamentals of modeling in Maya with an emphasis on creating good topology. We'll look at what makes a good model in Maya and why objects are modeled in the way they are.
# 1 19-10-2003 , 02:43 PM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719

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>
# 2 19-10-2003 , 04:58 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
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!
# 3 20-10-2003 , 02:12 PM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
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 Images

<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>
# 4 20-10-2003 , 02:15 PM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
Close up

Attached Images

<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>
# 5 20-10-2003 , 02:16 PM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
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>
# 6 20-10-2003 , 02:19 PM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
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>
# 7 20-10-2003 , 02:36 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
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!
# 8 20-10-2003 , 02:59 PM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
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>
# 9 20-10-2003 , 06:36 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
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!
# 10 20-10-2003 , 10:15 PM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
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.

# 11 20-10-2003 , 11:30 PM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719

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>
# 12 21-10-2003 , 12:19 AM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Lol. I just read what i wrote and shaked my head user added image

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!
# 13 21-10-2003 , 02:28 AM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
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>
# 14 21-10-2003 , 04:59 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
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 user added image


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
# 15 21-10-2003 , 07:24 PM
iron_tick's Avatar
Subscriber
Join Date: Sep 2002
Location: Chicagoland USA
Posts: 719
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>
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads