Jump to content

Curve projection on surface


malik

Recommended Posts

This is my first time on this forum, so, hello to everyone.

New in Houdini to but yet in love, I would like to know how I could project a curve on a surface through a camera. Or maybe to get the aim vector af a cam and project in that direction.

Thanks

Link to comment
Share on other sites

I would like to know how I could project a curve on a surface through a camera. Or maybe to get the aim vector af a cam and project in that direction.

Hey, and Welcome.

I have created a scene that may help. I am projecting the curve using a Ray SOP. This projects the curve based on the direction of the Normal of the curve. I aim the Normal of the curve to the direction of the Camera.

There may be an easier way to get the camera direction into SOPs but basically I get the Normal (aim) of the Camera by merging it into SOPs and copy a circle to the camera point. That copies the circle to the correct position of the camera, but I also need the rotation. I get that by just channel referencing the rotation of the camera into the copy SOP. That orients the circle and finally I use a facet SOP to calculate the Normal.

I use a point SOP after the Curve SOP to get the camera Normal and apply it to the curve before its wired into the Ray SOP.

Hope this helps.

camProjectCurve_001.hip

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