Jump to content

Point normals with Vertex normals


PeteNics

Recommended Posts

Hi.

I'm trying to get my head around requiring both point normals with vertex normals in a HDA. I'd like to have vertex normals so I can get some sharp edges on geometry created in Houdini but also need to use point normals so I can orientate instances correctly. When I combine the two, the latter of the merge takes priority and I look the normal information (E.g. merging the point normals then the vertex normals, causes a loss of the point normals).

60c1f96b2b2d8_PointnormalandVertexnormal.thumb.png.d9bebb38c8aa5eb1535ac83cd0271375.png

Is there a way round this? can the instancing use another attribute on the points to set the rotation of the instances correctly?
Link to comment
Share on other sites

I managed to work around this. My fix was to use vertex normals for the generated geometry and covert the @N to @orient before merging the instancing point with the geo.

The Vex for the wrangle looks like:
 

matrix3 m = maketransform(@N,@up);
@orient = quaternion(m);


Which came from the article on here Convert_N_and_Up_to_Orient

  • Like 1
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...