Jump to content

VEX function: uvunwrap // Accessing position and normals based on UV


konstantin magnus

Recommended Posts

Hi, I am trying to access the position and normals of an object based on UV coordinates with VEX. In the documentation the VEX function "uvunwrap" seems to be a good choice, however ..

vector pos;
vector nml;
float u = chf('u');
float v = chf('v');
float time = @Time;

uvunwrap(u, v, time, pos, nml);

addpoint(0, pos);

.. is asking for a string, which is not mentioned in the documentation.

VEX_uv_to_pos.hipnc

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