MentalRay/3Delight & Scripted shading nodes (*.py)

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  02 February 2011
MentalRay/3Delight & Scripted shading nodes (*.py)

Hi there.
I'm creating some custom utility/shading nodes for maya with the python API, and they tend to only get computed by the Software and Hardware renderer. 'External' renderers like mentalRay, vray and 3delight are just ignoring them. Does someone have any idea if there is some special declaration or anything which should be included in the node code, so they get recognized? Python or C++ examples are both usefull.


Just to clarify some things:
* Maya 2001 SP 1 running on CentOs 5
* The nodes derive from MPxNode
* They return colors or MFloatVectors
* Other thing is that I compiled a C++ example node called flame.cpp and it doesn't work either ( same thing with the *.py shading node examples)
..aut inveniam viam aut faciam..
::Copy SOP 4 Maya::
  02 February 2011
I'm pretty sure that's not going to work. 3Delight ignores nodes it doesn't understand. I'd expect when you render you get an error message in the output window that says it can't see the code for the shader. You'd have to also create the renderman SL code for your python node as a file with the same name as the node in your 3Delight shaders directory.

I don't know as much on Mental Ray (not that I know a lot about 3Delight), but I would assume that you'd have to do something similar there as well. I think Mental Ray shaders are made with their own C++ SDK (if you're not using Mental Mill / that MetaSL stuff); a good example if you'd like to get into that would be to have a look at the P MegaTK shader pack.

Can you recreate the math you're doing inside the node as a group of utility nodes?
mokushi kushimo
shimoku kumoshi
moshiku shikumo
  02 February 2011
you have to write your own shader for the specific renderer. Maya is looking for a shader with the same name when your switchig e.g. to mental ray. So keep an eye on the names of your shaders so that the switching between renderers works propertly. By the way - who use the Maya Software renderer today? I think nobody.
  02 February 2011
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

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
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 04:32 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.