PDA

View Full Version : Rendering VertexColor in MentalRay


MrMint
02-03-2010, 07:46 AM
I am pretty sure that I am missing something but until now I couldnt figure out why my vertexColor is not rendered in mental ray. I am using maya2009 with SP1. There had been an issue with 2009 but this has been fixed (incorrect rendering but mine doesn't render at all)

==================================
From the sp1 release notes from autodesk
(http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=12715497&linkID=9242259)-------------------------------------
Color per vertex shading
Due to an optimization in CG 2.0, color per vertex shading was incorrectly rendered in the Render View and in batch rendering. This has been fixed.
==================================

This is what I have done so far:

- Color>Apply Color with selected faces
- Create MR-Nodes (mentalrayVertexColors, mib_illum_lambert but also tried mia_material)
- Pluged the color-set of the model into the cpv-set of the mentalrayVertexColors1 and the out-color into mib_illum_lambert1.ambient.
(connectAttr -f ScubaGearShape.colorSet[0].colorName mentalrayVertexColors1.cpvSets[0];
connectAttr -f mentalrayVertexColors1.outColor mib_illum_lambert1.ambient;)

- Checked export VertexColor in the MentalRay-options-tab.

http://img62.imageshack.us/img62/371/connectionb.jpg (http://img62.imageshack.us/i/connectionb.jpg/)

I guess this should be it, but no color to see at all. Its all just black.
And the final question is...what am I missing?

MrMint
02-04-2010, 08:26 AM
Perhaps this might show better what I intend to do as I haven't any advance since yesterday:

Viewport/Maya Hardware/Mental Rayhttp://img138.imageshack.us/img138/6913/viewsp.png (http://img138.imageshack.us/i/viewsp.png/)

Any suggestion really appreciated

Edit:
Basically I have the same problem as described here:
http://gamestepper.com/forums/showthread.php?p=41776

Sorath
02-06-2010, 07:25 AM
no ideas anyone?

I got stuck on the same for some while now.

but MrMint - if you just have two colors which you want to adress - without painting a map.
you can reverse the normals of your blue parts on the suit. and then adress both parts with a mib_twosided.. it should proberly work with reflections if you turn off skip refl. on inside at the mia. But I'm not sure about lighting and shadows. they probably get reversed in direction!?

MrMint
02-06-2010, 12:10 PM
Thanks for your suggestion bro.

Meanwhile I just applied 2 textures of 1 pixel in width and height to the gear with 2 equal materials -.-

But I am really interested in the appropriate solution. But I have never read about anybody who stumbled over this problem and solved it.
========================================

Der einzige Grund warum ich keine Textur nehmen wollte war, weil ich keinen Sinn dahinter sah weil es nur 2 Farben gibt die sich an einer klar definierten Nahtstelle aendert.

Salut

Sorath
02-07-2010, 05:49 PM
texturen sind auch nicht wirklich flexibel wenn was geändert werden muss.
vor allem im layout der geometrie.

-----
probably it works with 2010?
http://mayastation.typepad.com/maya-station/2009/08/fixes-in-maya-2010.html

What's fixed in Rendering

Color per vertex shading
Due to an optimization in CG 2.0, color per vertex shading was incorrectly
rendered in the Render View and in batch rendering. This has been fixed.

MrMint
02-07-2010, 06:48 PM
Strange, they already claimed that for the SP1 of 2009

From my first post:
There had been an issue with 2009 but this has been fixed (incorrect rendering but mine doesn't render at all)

==================================

From the sp1 release notes from autodesk
(http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=12715497&linkID=9242259)-------------------------------------
Color per vertex shading
Due to an optimization in CG 2.0, color per vertex shading was incorrectly rendered in the Render View and in batch rendering. This has been fixed.
==================================

CGTalk Moderation
02-07-2010, 06:48 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.