Jump to content

Primitive normal


Macha

Recommended Posts

You can use a prim() expression to get it like any other attribute.

prim("/obj/geo1/file1", 0, "N", 1)

You can also use Python.

hou.Prim.normal()

Edited by graham
Link to comment
Share on other sites

The fact that the Primitive Normal VOP wants uvs doesn't mean they have to be meaningful. Because it's the primitive normal it is not interpolated across the face, so it's the same no matter what uv position you give it. The Primitive Attribute VOP does interpolate over the face based on uvs so you can use it to return interpolated point normals or positions. In the attached file you can see all this in action, by changing the u and v sliders you'll see the point position change but the normal remains constant at any uv position on the face. Hope that helps :)

getting_primN.hip

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