Jump to content

Camera XY Pos of Points at SOP level


Recommended Posts

Hey all,

I need to save the XY pos in camera space of some points at SOP level.

So from left to right will be 0-1, bottom to top 0-1 of the point in camera space saved as a point attribute.

I would have thought it could have been done with a transform in VOPSOPs, but I'm not sure exactly of the syntax to use, if indeed it works at all.

Any ideas?

Thanks

Christian

P.s. I've attached a simple scene to show you what I mean.

cameraXYSOP.hip

Link to comment
Share on other sites

I got the green (y) component to work but the red (x) and blue (z) need to have something done to them, not sure what at the moment...

EDIT: This is pretty much it, the x values seem a little odd, you probably have to remap x and y to your aspect ratio as the coordinates appear to be in more of a 1:1 ratio currently.

cameraXYSOP_almost.hipnc

Edited by jkunz07
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...