SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / problem with the mia_ material_x
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 25-09-2008, 04:46 AM   #1
masbt
Registered User
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with the mia_ material_x

I am working in an animation with just two glasses and a camera following a path to experiment with the mia_material_x (maya 2008). My problem is that when one glass is behind the other it became unrealistically dark and I don't know how to solve this without changing the black background color. I have tried a lot of parameters but I don't know how to do it.



animation



scene

Last edited by masbt : 25-09-2008 at 06:58 PM.
masbt is offline   Reply With Quote
Old 25-09-2008, 05:51 AM   #2
Jay
Lead Modeler - Framestore
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,276
Thanks: 41
Thanked 428 Times in 384 Posts
Default

Try turning up refraction in the render settings in Mental ray

_J
Jay is offline   Reply With Quote
Old 25-09-2008, 06:59 PM   #3
masbt
Registered User
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It doesn't work.
thank you anyway.
masbt is offline   Reply With Quote
Old 25-09-2008, 07:42 PM   #4
Jay
Lead Modeler - Framestore
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,276
Thanks: 41
Thanked 428 Times in 384 Posts
Default

I just looked at your scene, jeez dude, talk about complicate your scene. first use a spot light for the over head light with a nice penumbra for the falloff, this will make life a little easier other than that get rid of the other light start simple when it comes to lighting and add as you feel needded. I then noticed youve pasted the material from one glass to the next, just create a new mia x material and drag and drop onto the glasses, theres no need to copy and paste them, this could be half the problem too as mental ray can get a bit odd at times.

also having that black backdrop will certainly not help matters overall, but by using the one shader will cut down on your settings. Also switch on and off the raytraced shads on the light to get an idea of what settings in the render panel to crank up or down. I reshot your scene in 2 mins and it was fine for a test shot, just a few tweaks here and there to help it but other than that this made all the diffrence to the output.

Jay
Jay is offline   Reply With Quote
Old 25-09-2008, 10:33 PM   #5
masbt
Registered User
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your time .
It doesn't matter if I change the lights, is allways the same. I have changed the pasted material (is the whole glass what was pasted), but is the same. Also I have played with the reflection and refractions in the mental ray settings but I keep getting this:




In other animation a ball pass behind the glass with the same effect, proof that the guilty is not the pasted material, but the look is not so unrealistic:

ball animation


I am beguining to think that perhaps it cant be done using this material. I dont know.
masbt is offline   Reply With Quote
Old 25-09-2008, 11:29 PM   #6
Jay
Lead Modeler - Framestore
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,276
Thanks: 41
Thanked 428 Times in 384 Posts
Default

Heh, I beg to differ...

Jay
Attached Thumbnails
Click image for larger version

Name:	glass.jpg
Views:	73
Size:	69.4 KB
ID:	40334  
Jay is offline   Reply With Quote
Old 25-09-2008, 11:59 PM   #7
masbt
Registered User
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How did you do that?

Tell me, please
masbt is offline   Reply With Quote
Old 26-09-2008, 01:37 AM   #8
Gen
Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,501
Thanks: 16
Thanked 645 Times in 567 Posts
Default

I agree with Jay there, I deleted your lights and used a spotlight and added a poly plane in the back with a gray surface shader. The problem was with your mia_material raytrace settings, you needed to boost the max trace depth in the advanced refraction section, otherwise you could have jacked up the raytrace render settings and nothing would have changed. Also the render settings were crazy for testing, that resolution was insane :x
Attached Thumbnails
Click image for larger version

Name:	mia_raytrace.jpg
Views:	69
Size:	161.8 KB
ID:	40336  
__________________
- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
Gen is offline   Reply With Quote
Old 26-09-2008, 01:48 AM   #9
Jay
Lead Modeler - Framestore
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,276
Thanks: 41
Thanked 428 Times in 384 Posts
Default

Thanks Gen for the backup.

it can be achieved as well without the adjustment on that setting as its a physical shader but as with these things they can achieve some great results the more you play around with certain settings.

masbt: anyway I hope both these options helps you out. I just did all my render on a 640 x 480, one spotlight overhead and the same shader on both glasses, then hit the render button!!

Happy rendering

Jay
Jay is offline   Reply With Quote
Old 26-09-2008, 02:06 AM   #10
Jay
Lead Modeler - Framestore
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,276
Thanks: 41
Thanked 428 Times in 384 Posts
Default

Another one for you, the back glass object has a dielectric shader on it. I chose the same angle as Gect because I thought by lowering the refraction setting for the front glass will show you the effect of widening the top of it

Jay
Attached Thumbnails
Click image for larger version

Name:	glass.jpg
Views:	63
Size:	11.7 KB
ID:	40337  
Jay is offline   Reply With Quote
Old 26-09-2008, 02:23 AM   #11
masbt
Registered User
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

At last. This was the magic setting.

thank you very much.

I feel such a noob watching the GecT works...
masbt is offline   Reply With Quote
Old 26-09-2008, 03:20 AM   #12
masbt
Registered User
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I strike back

masbt is offline   Reply With Quote
Old 26-09-2008, 12:41 PM   #13
Gen
Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,501
Thanks: 16
Thanked 645 Times in 567 Posts
Default

Thank you masbt Looks better, the highlights seem really strong though. The texture on the plane is really blurry, is it actually like that or is there filtering applied? Something was irking me about that glass shader so I went back and checked again, you had the transparency all the way up but it was still so dark. Then I realized it was just picking up too much of the dark grey floor in the reflections so I used fresnel reflections, even made another glass shader to compare and it was indeed the reflections.

Jay's test made me want to putz around with the dielectric shader, it looks good but how would you get rid of that grain? I always found that shader to be a little unfriendly, simple is good sometimes but for that reason I couldn't figure out the grain issue.
Attached Thumbnails
Click image for larger version

Name:	glasscomparison.jpg
Views:	49
Size:	98.5 KB
ID:	40348  
__________________
- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
Gen is offline   Reply With Quote
Old 26-09-2008, 01:20 PM   #14
honestdom
The Nurb Herd
 
honestdom's Avatar
 
Join Date: Oct 2007
Location: London
Posts: 2,381
Thanks: 4
Thanked 298 Times in 288 Posts
Default

can someone help me with my glass problem now?
honestdom is offline   Reply With Quote
Old 26-09-2008, 06:24 PM   #15
Gen
Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,501
Thanks: 16
Thanked 645 Times in 567 Posts
Default

Quote:
Originally posted by hammer.horror
can someone help me with my glass problem now?
What kinda problem are you having?

Edit: Nvm I see it in your sig.
__________________
- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::

Last edited by GecT : 26-09-2008 at 06:27 PM.
Gen 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem solving many dynamic objects in a pile? rohiniduggal Dynamics & Special Effects 3 14-01-2011 06:26 PM
apache environment problem andrew_sorensen Simply Maya Tutorials 4 08-12-2010 02:48 PM
Strange Problem - Unable to change attributes for multiple objects anthonysw3 Technical Issues 4 04-12-2010 10:56 PM

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.