anibrain Posted March 10, 2013 Share Posted March 10, 2013 Hello All, Is there any way to create points look at to some variable position in side vop ? ( Like a sprite looks at to camera position ). Thanks Quote Link to comment Share on other sites More sharing options...
acey195 Posted March 10, 2013 Share Posted March 10, 2013 yes this is very much possible I am not entirely sure in which context you want to do this, but I created an example for you using SOPS aimpoints.hipnc Quote Link to comment Share on other sites More sharing options...
mawi Posted March 10, 2013 Share Posted March 10, 2013 (edited) Hello All, Is there any way to create points look at to some variable position in side vop ? ( Like a sprite looks at to camera position ). Thanks normalize(goalPosition - P) Edit... To late Edited March 10, 2013 by mawi Quote Link to comment Share on other sites More sharing options...
anibrain Posted March 12, 2013 Author Share Posted March 12, 2013 This is working great.... Thank you so much guys. How do I setup up vector ? I need it to be lock ... basically I m trying to mimic the particle sprite. Quote Link to comment Share on other sites More sharing options...
acey195 Posted March 12, 2013 Share Posted March 12, 2013 I already gave you an upvector, and named the node accordingly . I just set it to the world up as that is most used, but it can be changed of course when selecting the node, you see 0,1,0 (which stand for x,y,z) near the bottom, change this vector to the desired direction. If you instead want a variable upvector, you could basically set the up-vector the same way as the normal, just copy the vopsop and look inside it. Add an "add attribute" node inside, set the attribute to "up" and reroute the link from the normal to that node. Then you can input a different point into the second input of this second vopsop to have a variable upvector. Quote Link to comment Share on other sites More sharing options...
anibrain Posted March 13, 2013 Author Share Posted March 13, 2013 I already gave you an upvector, and named the node accordingly . I just set it to the world up as that is most used, but it can be changed of course when selecting the node, you see 0,1,0 (which stand for x,y,z) near the bottom, change this vector to the desired direction. If you instead want a variable upvector, you could basically set the up-vector the same way as the normal, just copy the vopsop and look inside it. Add an "add attribute" node inside, set the attribute to "up" and reroute the link from the normal to that node. Then you can input a different point into the second input of this second vopsop to have a variable upvector. Oops ! seems like I m missing something.. It might sound little dumb I m newbie to Houdini. # I did try and re-looked into your example file for up vector node ..But all I can find is merge node(named "upvector") Is that what you mean ? # I also Variable upvector root I m sure im doing something wrong, Could you check the my file. Thanks a lots ! aimTest02.hipnc Quote Link to comment Share on other sites More sharing options...
acey195 Posted March 13, 2013 Share Posted March 13, 2013 you did it almost correctly: in the up vector vopsop you have to remove the connection between the "add attribute" and normal output, then it should work. This is because of this connection you also applied the upvector as your aim vector, you overwrite the other vopsop in that case Since you do not really want to do that, you have to remove that connection. Remember that there are multiple nodes inside vopsops that can be used as outputs, not just the output node. ("add attribute" and "add to point group" among them) Vopsops can be a bit daunting to start using, if you are not really ready for them you can also use point Sops like Mawi suggested. aimTest03.hipnc Quote Link to comment Share on other sites More sharing options...
anibrain Posted March 14, 2013 Author Share Posted March 14, 2013 you did it almost correctly: in the up vector vopsop you have to remove the connection between the "add attribute" and normal output, then it should work. This is because of this connection you also applied the upvector as your aim vector, you overwrite the other vopsop in that case Since you do not really want to do that, you have to remove that connection. Remember that there are multiple nodes inside vopsops that can be used as outputs, not just the output node. ("add attribute" and "add to point group" among them) Vopsops can be a bit daunting to start using, if you are not really ready for them you can also use point Sops like Mawi suggested. Thanks for your time. Twan Now I understood the concept. 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.