Ezz Posted May 4, 2009 Share Posted May 4, 2009 Hi good Houdini-peoples. I have a question on how to transfer facenormaldata to particles(points) Its been puzzling me a while now, so I need some help. I have a classic setup where I spawn 1 particle pr. face from a box: EmissionType = Prim center (ordered) I have made sure that only one particle is born - So I only have one particle pr face. Then I have set the initial velocity and variance both to zero in all direction. Then in my POP-network I tried to make an vectorattribute that gets it values from the normals from each face with this expression : prim("../../box1",$PR,"N",0) [X] prim("../../box1",$PR,"N",1) [Y] prim("../../box1",$PR,"N",2) [Z] But it wont let me acces the data somehow. Is this even possible?? Any help would be much appriciated Cheers Erik Quote Link to comment Share on other sites More sharing options...
junaid Posted May 4, 2009 Share Posted May 4, 2009 Hi Erik, I am not sure, I am right or not and don't have houdini to try that out at the momment. what if you convert your normals data to velocity from point sop and use inherited velocity in source particle attribute cheers, Junaid Hi good Houdini-peoples.I have a question on how to transfer facenormaldata to particles(points) Its been puzzling me a while now, so I need some help. I have a classic setup where I spawn 1 particle pr. face from a box: EmissionType = Prim center (ordered) I have made sure that only one particle is born - So I only have one particle pr face. Then I have set the initial velocity and variance both to zero in all direction. Then in my POP-network I tried to make an vectorattribute that gets it values from the normals from each face with this expression : prim("../../box1",$PR,"N",0) [X] prim("../../box1",$PR,"N",1) [Y] prim("../../box1",$PR,"N",2) [Z] But it wont let me acces the data somehow. Is this even possible?? Any help would be much appriciated Cheers Erik Quote Link to comment Share on other sites More sharing options...
Ezz Posted May 4, 2009 Author Share Posted May 4, 2009 Hi Erik,I am not sure, I am right or not and don't have houdini to try that out at the momment. what if you convert your normals data to velocity from point sop and use inherited velocity in source particle attribute cheers, Junaid Hi Junaid Thanks man. Ill give it a try!! Erik Quote Link to comment Share on other sites More sharing options...
Ezz Posted May 7, 2009 Author Share Posted May 7, 2009 (edited) Hello again. I came up with this solution. The trick was to create somekind of container to put my primitiveattributes in. Then promote the data to pointdata since its impossible to read primitivedata in POP prim_normal_control.hipnc Edited May 7, 2009 by Ezz 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.