Jump to content

Ray Sop And Interpolated Normals?


Vormav

Recommended Posts

Hey. New guy around here, so go easy on me. ;)

I'm in the process of writing a series of tutorials, and I've chosen to use Houdini to create some of the visual raytracing charts for this (because Houdini makes it very easy ;)). So far, this is working great: I'm using a Ray SOP to cast one point of a curve onto my geometry, and from there I have a few nodes that move the start and end points of another curve in place to form a reflected line (with an arrow on the end), making for a pretty accurate raytracing demo.

But there's one little thing I can't quite figure out: how to get the interpolated normals for the Ray SOP intersection. As far as I can tell, the ray sop can only return the uninterpolated normals. Now, I'm sure that I could linearly interpolate them myself, with a bit of work. But before I go and potentially waste time on that, I just want to check and see whether or not there's already an option built in for getting the interpolated normals of the ray sop intersection. Yes, no?

(not directly modelling related, but it still falls under SOPs)

Also, while I'm at it, I might as well ask; are there any nice and quick ways to rotate objects to be aligned with a certain normal vector? I suppose you might actually need a basis vector to be able to pull that off...?

Thanks

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