gaurav Posted March 21, 2012 Share Posted March 21, 2012 (edited) Greetings folks, When a vector attribute is added to the points inside vops why does it show up as a 3 floats representaion in details view ? Same is true when taking a cross product of 2 vectors eg. C = N x V. Resultant vector C comes out as a 3 floats representation C[0],C[1],C[2] instead of C[x],C[y],C[z] 1. Why so ? 2. Would a vector casting be needed here ? If yes, of what signature and type ? I would like it to be consistent as the original vector representations which can be accessed by xyz components in local variables. Thanks, Edited March 21, 2012 by vectorblur Quote Link to comment Share on other sites More sharing options...
anim Posted March 21, 2012 Share Posted March 21, 2012 as internal computation of VOPs it should be no difference between vectors and 3floats, but if you want to create attribute as vector which adds(xyz) and it's transformed as vector, normal or point, you can simply change Type Modifier on Add Attribute VOP to vector, normal or position Quote Link to comment Share on other sites More sharing options...
gaurav Posted March 22, 2012 Author Share Posted March 22, 2012 Aha.. Thanks anim that helps. Somehow i missed it in the parameters. Help card too does not mention it may be that's why. http://www.sidefx.com/docs/houdini11.0/nodes/vop/addattrib Thanks, 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.