Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 16 25-06-2015 , 07:08 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
As of Maya 2014, the mental ray dielectric material has been deprecated.

If you utilize a mia_material_x_passes material, it should work as it supports render layers. The glass presets should get you started.


Imagination is more important than knowledge.

Last edited by NextDesign; 25-06-2015 at 07:16 AM.
# 17 25-06-2015 , 09:32 AM
SilverFeather's Avatar
Noober than noob
Join Date: Sep 2011
Posts: 520

As of Maya 2014, the mental ray dielectric material has been deprecated.

If you utilize a mia_material_x_passes material, it should work as it supports render layers. The glass presets should get you started.

I'm using 2012, I don't think my PC can handle Maya 2014.

# 18 25-06-2015 , 04:03 PM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
If memory serves me correctly, the mia_material_x_passes should still be in there.


Imagination is more important than knowledge.
# 19 25-06-2015 , 10:46 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
I just re-read my last post. It's supposed to be: "specular doesn't show in the pass's alpha, it's supposed to be layered on with an add mode in comp".

Having a 1.5 IoR on the hourglass in your scene would look strange because its a single sided surface, extrude it a bit for some thickness, especially if you want to get the proper look near the choke point where the glass is thicker.


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 20 26-06-2015 , 10:49 AM
SilverFeather's Avatar
Noober than noob
Join Date: Sep 2011
Posts: 520

I just re-read my last post. It's supposed to be: "specular doesn't show in the pass's alpha, it's supposed to be layered on with an add mode in comp".

Having a 1.5 IoR on the hourglass in your scene would look strange because its a single sided surface, extrude it a bit for some thickness, especially if you want to get the proper look near the choke point where the glass is thicker.

I've tried compositing the specular's separate render (while I was using Blinn) but what I get is a black background with it, and if I overlay that on the hourglass that has transparent background and use the add operation, I'd still get a black background instead of a transparent one.
user added image
Specular render pass:
user added image
Added over the hourglass image with Add operation. Note that this is done in Corel. Background loses transparency.
user added image

So unless I am doing something wrong when I render passes or when I am compositing, I have no idea what I'm supposed to do to separate the specular other than this.

I was thinking of extruding it a bit but I thought I'd get away with it having only one surface. Thank you, I'll try to see if the refraction gets fixed that way. The jug from the tutorial did seem to keep all of its specular due to its double layer in a test with no background, and it's not even composited.

Attached Thumbnails
# 21 26-06-2015 , 03:04 PM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
Did you try what I mentioned previously? Apply the transparency of the diffuse to the specular layer, then add. That should retain the transparency.


Imagination is more important than knowledge.
# 22 26-06-2015 , 05:27 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
Yep just mask off the black background.


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
# 23 27-06-2015 , 12:12 AM
SilverFeather's Avatar
Noober than noob
Join Date: Sep 2011
Posts: 520

Did you try what I mentioned previously? Apply the transparency of the diffuse to the specular layer, then add. That should retain the transparency.

I haven't used the mia_material_x_passes yet, I'll do that tomorrow along with what Gen suggested about extruding the glass.

If you mean use the alpha of the diffuse as a mask, I'd still end up with this, which cuts out the specular that I need at the top side of the hourglass.
user added image
I could combine both of these and form a new mask but I'd still end up with the glass turning black and there's nothing I can do about that one (see below).

Yep just mask off the black background.

It leaves me with this. The black still keeps holding on to the specular layer after using Add.
user added image


Last edited by SilverFeather; 27-06-2015 at 12:14 AM.
# 24 27-06-2015 , 04:37 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
I believe you're applying the matte incorrectly - you shouldn't use a magic wand tool to select anything. What you need to do is mask out the background of the spec pass with the alpha channel provided in the diffuse pass. (The magic wand tool, generally, does not do this. It simply looks for similar colors) Unfortunately, I have no idea how to do this in Corel. In Photoshop, you can simply copy the alpha channel from one layer into another layer. If you can attach the raw images, I can give it a go.


Imagination is more important than knowledge.
# 25 27-06-2015 , 08:35 PM
SilverFeather's Avatar
Noober than noob
Join Date: Sep 2011
Posts: 520

I believe you're applying the matte incorrectly - you shouldn't use a magic wand tool to select anything. What you need to do is mask out the background of the spec pass with the alpha channel provided in the diffuse pass. (The magic wand tool, generally, does not do this. It simply looks for similar colors) Unfortunately, I have no idea how to do this in Corel. In Photoshop, you can simply copy the alpha channel from one layer into another layer. If you can attach the raw images, I can give it a go.

These are the raw renders for specular and diffuse with Blinn.
user added image
user added image

I guess the MasterBeauty is what results when rendering a PNG, I've attached it too.
The last image is what happens when I extrude the hourglass which uses dielectric material. It has 1.5 refraction and still looks weird.

Attached Thumbnails
# 26 27-06-2015 , 11:00 PM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
It looks strange because your refraction ray limit is too low. Try 6 or higher.


Imagination is more important than knowledge.
# 27 27-06-2015 , 11:55 PM
SilverFeather's Avatar
Noober than noob
Join Date: Sep 2011
Posts: 520

It looks strange because your refraction ray limit is too low. Try 6 or higher.

If it's this, it was already maxed out. I don't know where else to look for increasing the ray limit.
user added image

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