Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 13-12-2006, 10:32 PM   #1
John8888
Registered User
 
Join Date: Dec 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mental ray nodes - materials turn object green

I am attempting to apply dgs_material to a sphere. When I do it turns the sphere green (in persp view). And when I render using mental ray there is nothing at all (just black). This happens with every material I've tried. What am I missing? I'm using Maya 7.01.
Thanks for your attention!
John8888 is offline   Reply With Quote
Old 13-12-2006, 11:04 PM   #2
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

well your object turns gree because mental ray doesn't have a hook into maya's hardware display function. That is normal and it's OK. If you really want to see a color, you can do the folllowing.

In the Hypershader, graph your MR shader node. You should see a shaser group node (SG node). If you look at the attributes of the SG node, you'll see that your MR node is going into the "Material Shader" attribute. No create a blinn shader and map it into the "Surface Material" attribute of your SG node. Now you model will not be green anymore. This will have no effect whatsoever on your renders, it's just for Maya display.

As for why your renders are turning out black, I have no idea. You'll need to tell us more about what it is you're doing. Maybe you have no lights, or maybe you're renderer is set to Maya software and it can't render the MR shader. Maybe you've got primary visibiltiy turned off.

I hope this helps.
-dann
Dann is offline   Reply With Quote
Old 14-12-2006, 01:13 AM   #3
John8888
Registered User
 
Join Date: Dec 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Dann and everyone else,

Thanks for the reply. I've done what you said and the sphere is no longer green. But it seems it is just taking on the color of the blinn.
I am new to Maya and could be skipping a step or something. Here is a break down of exactly what I am doing.

1. Open Maya
2. Windows>settings/preferences>plugin manager>(check)mayatomr.mll
3. Close plugin manager
4. Create>nurbs primitive>sphere
5. 6 (to shade sphere)
6. Bring up hypershade window
7. Right click on create maya node>select create mental ray nodes
8. Render>render using>mental ray
9. MM drag dgs_material into the work area
10. MM drag dgs_material from work area and drop on sphere (which turns green)
11. Scroll tabs of the window above the work area to shading groups
12. Right click on dgs_material1sg>gragh network
13. Back to create maya nodes and MM drag blinn into the work area
14. Select dgs_material in the work area to bring up it attributes
15. MM drag blinn1 to surface material (sphere now turns grey)

Now if I select the dgs_material in the work area and change the color (diffuse), in its attributes, it stays grey. And if I do the same for the blinn, the color on the sphere changes with the blinn. And also when I click the render icon I am now getting the sphere in a jagged grey and black (see pic). I'm not sure why I'm getting that now, I have not changed any render settings.
Thanks again for the help!
Attached Thumbnails
 
John8888 is offline   Reply With Quote
Old 14-12-2006, 02:31 AM   #4
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

[quote]Originally posted by John8888
it seems it is just taking on the color of the blinn.
QUOTE]

Yes, that's correct. That's all i said it would do. You cannot get the color of your MR nodes to display in Maya without some MEL scripting. I told you the blinn was just for display purposes and would have ne effect on your renders.

As for your render, it looks to me like you might have 2 spheres overlapping eachother. Other than that I'm not sure what else to say. I would recommend you buy some MR tutorial DVDs if you're having this much trouble. It'll be worth it.
Dann is offline   Reply With Quote
Old 14-12-2006, 02:35 AM   #5
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

This aint gonna be much help but maya 8 supports mental ray shaders in the viewports, as far as know, just for your information.
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 14-12-2006, 03:31 AM   #6
John8888
Registered User
 
Join Date: Dec 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Its working!!! Dann you were right about both. I did have two spheres opened up, and the problem was the lighting. I don't know how you people get so smart. Heres my first applied material pic. Its not very pretty, but its working!
Thanks again for the help. Working though this has givin me a much better understanding of the layout of the hypershader panel.
Maya 8 sounds nice!
Attached Thumbnails
 
John8888 is offline   Reply With Quote
Old 14-12-2006, 03:35 AM   #7
publicFunction
Senior Software Developer
 
publicFunction's Avatar
 
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
Thanks: 1
Thanked 23 Times in 23 Posts
Default

Originally posted by John8888
I don't know how you people get so smart.
By asking questions and doing tutorials on Video and Books. Glad its fixed, and keep with the community. They are a great bunch here.
__________________
Chris (formerly R@nSiD)
Twitter
When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix
Winner SM VFX Challenge 1
3rd Place SM SteamPunk Challenge (May 2007)
publicFunction is offline   Reply With Quote
Old 14-12-2006, 04:17 AM   #8
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Glad it's working for you. To answer your question, I'm not that smart. Just ask the guy sitting next to me. However, I've gotten pretty good at this job by constantly seeking out people that know more than I do and yes... asking lots of questions. Seeking out online tutorials, both free and those I have to buy. When I bought a DVD of tutorials for Real Flow, I couldn't decide if it was worth the $80 or so. Since then I've made tons of money doing Real Flow sims. Sometimes it's worth it to buy DVDs and books.

Good luck to you.
Dann is offline   Reply With Quote
Old 14-12-2006, 04:40 AM   #9
John8888
Registered User
 
Join Date: Dec 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the welcome to the community. I want to leave off with a better pic. This is the same sphere after a little tweaking. It doesn't look like much compared to the other stuff here but is a huge step for me.
I will break down and get some video tutorial soon. I have pretty much tapped out all the free online videos.
Attached Thumbnails
 
John8888 is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.