normals to camera space in vop

   7031   2   0
User Avatar
Member
47 posts
Joined: May 2009
Offline
hi guys,
i would need a two normals to my shader.
i tried to get the “N2” normal to vop with parameter node.
it gives me the normals in world space(i believe) and i would need to convert them to camera space.

in RSL it would be the ntransform function, how about in houdini?

thanks!

Kustaa

Attachments:
customNormal.hipnc (47.1 KB)

User Avatar
Member
606 posts
Joined: May 2007
Offline
Terve!

When mantra is rendering, everything is in camera space by default. You can just use the N you get from Global Variables VOP.

For coordinate system transformations there is the Transform VOP.

Unless you want to have manual control of the normal vectors in SOPs, you could just use a transformed and untransformed version of the rendertime N.
This will also get you displacement/bump effects, if you want them.

eetu.
User Avatar
Member
47 posts
Joined: May 2009
Offline
thanks Eetu!

transform node did the trick. i used world >> camera and it gives me what i need.
the reason why i need this custom normal is because i need to get two normals ( “N” and “N2”) from sop to the shader.

Kustaa
  • Quick Links