Jump to content

Unwrap by polygon.


BoubQC

Recommended Posts

Hey guys,

 

I'm trying to figure out a way to unwrap the polygons of a geometry by face. Meaning that:

 

face[x].vert[0].uv = [0,0]

face[x].vert[1].uv = [0,1]

face[x].vert[2].uv = [1,1]

face[x].vert[3].uv = [1,0]

 

What's the simple way to do this?

 

Oh and I tought I could do this using the Vop(attribute) Sop but how do you output uvs since they are not in the output node...

 

Thanks for your time guys.

Link to comment
Share on other sites

Hi Simon,

 

Here is a little hip with your idea. It's very basic and won't work correctly on any geo (has to be quad only) but can easily be improve!

There is probably better way to do it like always :)

 

Edit: just a quick comment. If you need those UVs for rendering purpose, you could simply use the built in "s" and "t" globals (in shop world) to get this.

quickUv.hipnc

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