SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / Mental Ray / Transparency
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 24-11-2009, 11:43 PM   #1
jjmacky88
Subscriber
 
Join Date: Apr 2008
Location: NY
Posts: 61
Thanks: 9
Thanked 2 Times in 2 Posts
Default Mental Ray / Transparency

Okay, what I'm looking to do is create a black mesh waste basket. My problem is, the color black makes things transparent so the black mesh texture I'm using wont be seen.

If I wanted a white basket or a red basket, no problem works fine, but because the texture I want to use is black, against the black background it doesnt work. I'm sure there is a workaround, any ideas?

I'm using targas. Maya 2008 and I want to render it in Mental Ray.
jjmacky88 is offline   Reply With Quote
Old 25-11-2009, 12:30 AM   #2
Gen
Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,486
Thanks: 15
Thanked 641 Times in 564 Posts
Default

If that's the case then you may need to adjust the colors to make a separate texture for transparency.
Gen is offline   Reply With Quote
Old 25-11-2009, 12:34 AM   #3
jjmacky88
Subscriber
 
Join Date: Apr 2008
Location: NY
Posts: 61
Thanks: 9
Thanked 2 Times in 2 Posts
Default

Thanks for the reply GecT. That was one of the things I tried doing. I tried inverting the colors and plugging that into the transparency and I did not have any luck. I think I tried every combination possible, but maybe I'm missing something.
jjmacky88 is offline   Reply With Quote
Old 25-11-2009, 04:19 AM   #4
Gen
Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,486
Thanks: 15
Thanked 641 Times in 564 Posts
Default

Worked fine for me. Personally, I would just use the mia_material and plug my transparency map into the cutout opacity channel (its in the advanced section).
Attached Thumbnails
Click image for larger version

Name:	cutout2.jpg
Views:	91
Size:	159.9 KB
ID:	43321  
Gen is offline   Reply With Quote
Old 25-11-2009, 04:39 AM   #5
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,988
Thanks: 33
Thanked 532 Times in 471 Posts
Default

You don't need to create another texture. Use the reverse utility node. Connect the out color of the texture to the input of the reverse node. Then the output to the transparency.
Quote:
Originally posted by GecT
Personally, I would just use the mia_material ...
I don't think an mia material would be necessary for this application. The added complexity and features would probably go unnoticed.
__________________
Imagination is more important than knowledge.

Last edited by NextDesign : 25-11-2009 at 04:43 AM.
NextDesign is offline   Reply With Quote
Old 25-11-2009, 05:56 AM   #6
jjmacky88
Subscriber
 
Join Date: Apr 2008
Location: NY
Posts: 61
Thanks: 9
Thanked 2 Times in 2 Posts
Default

GecT, wow, thank you for that! I will try it first thing tomorrow!
jjmacky88 is offline   Reply With Quote
Old 25-11-2009, 02:16 PM   #7
Gen
Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,486
Thanks: 15
Thanked 641 Times in 564 Posts
Default

Quote:
Originally posted by NextDesign
You don't need to create another texture. Use the reverse utility node. Connect the out color of the texture to the input of the reverse node. Then the output to the transparency.
I don't think an mia material would be necessary for this application. The added complexity and features would probably go unnoticed.
Didn't even think of the reverse node as I don't use it a lot. But I have to disagree about the mia_mat comment. I consider it to be a general shader so I use it for pretty much everything, hence the "personally" preceding my statement, whether jjmacky88 was familiar with that shader or not, it was to let him know the option was there.


Quote:
Originally posted by jjmacky88
GecT, wow, thank you for that! I will try it first thing tomorrow!

No problem. Let me know if it works out.:blush:
Gen is offline   Reply With Quote
Old 25-11-2009, 07:11 PM   #8
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

Quote:
Originally posted by GecT
I consider it to be a general shader so I use it for pretty much everything.
Personally I agree.
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 25-11-2009, 08:51 PM   #9
Gen
Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,486
Thanks: 15
Thanked 641 Times in 564 Posts
Default

Quote:
Originally posted by gster123
Personally I agree.
That's my swiss army knife woot! Ok seriously, I have pies to bake.
Gen is offline   Reply With Quote
Old 26-11-2009, 02:44 AM   #10
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,988
Thanks: 33
Thanked 532 Times in 471 Posts
Default

I stay away from them as I pretty much stick with software, and do a whole lot of tricks. I find it easier to control it that way. I can also submit it to a render farm without worrying about MR licenses. I also the find mia material more confusing, as well as slower to render.
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 26-11-2009, 04:46 PM   #11
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

If you submitting to a farm why would you be bothered about MR licences, surely its up to the company to provide the licences for you to use, IF they want you to use MR, if the company dosent want you to do the bulk of the work with MR then thats up to them, softwares your only option.

It's not that confusing, just spend a little time with it, the results IMO make it worth the little extra render time it takes.

Then again if you use software most of the time it wont really bother you with MR materials anyway.

I prefer to use MR over software, not that I cant use software I just find MR a lot more versatile, without needeing to resort to tricks.

On a side note if its not a mia I generally use blinn's for everything.
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 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.