Jump to content

cull back face equivalents in shader


LaidlawFX

Recommended Posts

cool. I was being a meat Popsicle and it didn't work, works fine now, the dot product, too.

Is there an equivalent in vop sop too so i can use it as an orient vector. I couldn't get the dot product to work, because of the aforementioned meat Popsicle problem. There is no I vector since the vop isn't aware of the camera as I understand, and I don't want the user to have to specify it. Also transforming the p space to the camera space isn't working for I either.

Link to comment
Share on other sites

you need to specify camera for VOP SOPs if you need to do such things

there is toNDC VOP to transform point to normalized camera space, but you need to specify it, if not user then maybe you can find some clever way with Python, for example with a Button Press it will find camera of the current viewport or something

you can also get transform matrix of the viewport in Python

http://www.sidefx.com/docs/houdini11.0/hom/hou/GeometryViewport#viewTransform

so maybe Python SOP can help you if speed is not the priority

or just use Python to pass that transform to VOPs

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