Normals pass in maya software

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 05 May 2007   #1
Normals pass in maya software

Is there a shader for maya software that will output a world normals pass?

Or is there someway to rig this with existing nodes?
 
Old 05 May 2007   #2
try the sampler info node in the hypershade. You can connect normalcamera, point world etc to the color of a material. there is also renderlayers and the preset "normal map" that might be what you are looking for.

your solution should be somewhere in either of those

/Håkan
__________________
 
Old 05 May 2007   #3
Pixero has JS Normalmapper shader for Maya Software renderer:
www.pixero.com/downloads_maya.html
 
Old 05 May 2007   #4
Originally Posted by rygoody: Is there a shader for maya software that will output a world normals pass?

Or is there someway to rig this with existing nodes?


The samplerInfo node will provide the normal in camera space, however it also provides a matrix (matrixEyeToWorld) that you can use to transform the normal into world space. To accomplish this just connect the normalCamera attrbute from a samplerInfo node to the input1 attribute of a vectorProduct node. Then connect the matrixEyeToWorld attribute of the samplerInfo node to the matrix attribute of the vectorProduct node. Then make sure the operation attribute of the vectorProduct node is set to Vector Matrix Product. The output of the vectorProduct node will then be the surface normal in world space!

Note that this works as expected in the Maya software renderer, but does not translate correctly into mental ray.
 
Old 05 May 2007   #5
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 01:56 AM.


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