Jump to content

how to render world position in RGB?


willlinks

Recommended Posts

Hi everyone,

I'm trying to render world-position information for each object in the scene so that I can use it in comp.

I tried VEX variable "P" in mantra but it looks like position based on camera...

I attached the picture of the shot and position Y which I rendered with rgb and picked green channel in comp.

You can see different y value on the same ground plate...

Is there any way to do that?

I appreciate it if you can help me.

Thanks.

post-4243-127376561723_thumb.jpg

post-4243-127376572744_thumb.jpg

Link to comment
Share on other sites

you can export P from your shader converted to world space with Transform VOP, name the variable for example "worldP"

then in Mantra ROP create new image plane with "worldP" vector variable

if you are not sure how to export variables from shaders, look inside for example Basic Surface Material

there are green nodes like DiffuseExport, PaintExport, ...

it's basic Parameter VOP, set as Export Always, invisible, correct type and Parameter Name set as you want your variable to call

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...