CGTalk > Software > Autodesk Maya > Maya Rendering
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 05-22-2007, 08:42 PM   #1
living in maya
techmage's Avatar
Join Date: Apr 2005
Posts: 1,082
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-23-2007, 11:56 AM   #2
It's like whatever
hakanpersson's Avatar
Håkan Persson
Amsterdam, Netherlands
Join Date: Jul 2006
Posts: 1,075
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

Old 05-23-2007, 03:21 PM   #3
MaNdRaK18's Avatar
Veljko Radenkovic
Budapest, Hungary
Join Date: Jul 2005
Posts: 175
Pixero has JS Normalmapper shader for Maya Software renderer:
Old 05-24-2007, 05:35 AM   #4
New Member
greg gladstone
Giant Killer Robots
San Francisco, USA
Join Date: Aug 2005
Posts: 1
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-24-2007, 05:35 AM   #5
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:35 AM.

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