malik Posted June 15, 2008 Share Posted June 15, 2008 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 Quote Link to comment Share on other sites More sharing options...
SpencerL Posted June 15, 2008 Share Posted June 15, 2008 (edited) 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 June 15, 2008 by SpencerL Quote Link to comment Share on other sites More sharing options...
malik Posted June 15, 2008 Author Share Posted June 15, 2008 Thank's a lot, exactly what I was looking for. Malik Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.