Jump to content

vop_computeTangents()


sanostol

Recommended Posts

i just stumbled on the vop_computeTangents function. Why is it not documented? or am I blind again?

what other precious functions are lurking around here? :blink:

Martin

Hey Martin, check out $HFS/houdini/vex/include/voplib.h

Thats where vop_computeTangents and all the other functions used in VOPS are found.

-Alan

Link to comment
Share on other sites

i used this function in inline code node and it worked. then later I wanted to create a vop node otl and used it there. after finishing (everything worked fine) i deleted the initial inline network and bam the vopnode thows an error and calls the vop computeTangent an undefined instruction turning yellow.

do I have to add something to my vop code? do i have to link the voplib.h?

Martin

Link to comment
Share on other sites

i used this function in inline code node and it worked. then later I wanted to create a vop node otl and used it there. after finishing (everything worked fine) i deleted the initial inline network and bam the vopnode thows an error and calls the vop computeTangent an undefined instruction turning yellow.

do I have to add something to my vop code? do i have to link the voplib.h?

Martin

You can include voplib.h on the inline VOP if you want. Or, if you created a vex builder type asset you can include the files in the "outer code" section of the code tab in the type properties window. #include <voplib.h>

The Old School blog has a good series of tutorials on making vex builder type hda's if you haven't checked it out yet. Old School Blog

Link to comment
Share on other sites

@Alanw

thanks again

Hi SWANN,

I use it to create tangents for a Normalmapping. See the attached otl

You need a normalmap and a uvprojection to work that's it.

tanU and tanV have to be declared before You can use the function. The result is stored inside them.

there is another interesting function: vop_anisotropic

is there any help about it?

MM_ZBrush.otl

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