sanostol Posted July 11, 2009 Share Posted July 11, 2009 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? Martin Quote Link to comment Share on other sites More sharing options...
Alanw Posted July 12, 2009 Share Posted July 12, 2009 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? 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 Quote Link to comment Share on other sites More sharing options...
sanostol Posted July 12, 2009 Author Share Posted July 12, 2009 thanks Hey Martin, check out $HFS/houdini/vex/include/voplib.hThats where vop_computeTangents and all the other functions used in VOPS are found. -Alan Quote Link to comment Share on other sites More sharing options...
sanostol Posted July 12, 2009 Author Share Posted July 12, 2009 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 Quote Link to comment Share on other sites More sharing options...
Alanw Posted July 13, 2009 Share Posted July 13, 2009 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 Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted July 13, 2009 Share Posted July 13, 2009 There is no problem with making OTL from this function but somebody could explain me how it works ? There are for vectors coming in, should I plug them all ? Any example, please. computeTangents.otl Quote Link to comment Share on other sites More sharing options...
sanostol Posted July 13, 2009 Author Share Posted July 13, 2009 (edited) @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 July 13, 2009 by sanostol Quote Link to comment Share on other sites More sharing options...
Guest Swann Posted July 14, 2009 Share Posted July 14, 2009 (edited) Hi sanostol and Thank you Edited July 14, 2009 by SWANN 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.