Jump to content

Question on how to transfer facenormaldata to particles


Ezz

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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...