Jump to content

How to calculate 2D normal (base on Camera Coord Space)?


Recommended Posts

In vopsop I have a constant node which is linked to the position of my camera, and I make a subtract from camera to each point position (the points are from my fluid surface), but I can not for sure whether my way is correct or not. I just need normal from camera space not world coordinate.

post-9044-0-18033600-1371626531_thumb.jp

post-9044-0-13924000-1371626535_thumb.jp

normal_in_camera_space.hipnc

Edited by yjcnbnbnb200
Link to comment
Share on other sites

believe it or not N in shader is already in camera space, no alteration in SOPs is necessary so you can remove your vopsops and just add N to your export image planes

for cases where you actually need N or other attribute in world or object space you can Transform VOP in shader to convert from camera space to other, but not for your case

Link to comment
Share on other sites

believe it or not N in shader is already in camera space, no alteration in SOPs is necessary so you can remove your vopsops and just add N to your export image planes

for cases where you actually need N or other attribute in world or object space you can Transform VOP in shader to convert from camera space to other, but not for your case

Oh, I remember that transform node, thank you very much.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...