| View previous topic :: View next topic |
| Author |
Message |
massta Talkative

Joined: 18 Dec 2005 Posts: 28 Location: Cambridge, MA

|
Posted: Fri Jun 06, 2008 5:51 pm GMT Post subject: normal transfer from another object (help) |
|
|
Captured points from a grid using a sphere.
Sphere is animated and I'd like to transfer the sphere's normal (a single point) to all the points being captured.
Thus emitting particles with an animated normal from a second object.
See attached file.
Not sure if I should transfer the normal to the group in SOPs or grab the normal in POPs.
Thanks,
~Shawn
| Description: |
|
 Download |
| Filename: |
normalTransfer_H9_v01.hipnc |
| Filesize: |
69.09 KB |
| Downloaded: |
231 Time(s) |
|
|
| Back to top |
|
 |
massta Talkative

Joined: 18 Dec 2005 Posts: 28 Location: Cambridge, MA

|
Posted: Sat Jun 07, 2008 5:17 am GMT Post subject: |
|
|
| Thinking I need to take a good look at the Attribute Transfer SOP.
|
|
| Back to top |
|
 |
Allegro Houdini Master

Joined: 20 Mar 2006 Posts: 573 Location: Toronto

|
Posted: Sat Jun 07, 2008 12:09 pm GMT Post subject: |
|
|
You can use the point sop!
| Description: |
|
 Download |
| Filename: |
normals.hip |
| Filesize: |
48.07 KB |
| Downloaded: |
243 Time(s) |
|
|
| Back to top |
|
 |
massta Talkative

Joined: 18 Dec 2005 Posts: 28 Location: Cambridge, MA

|
Posted: Sat Jun 07, 2008 5:21 pm GMT Post subject: |
|
|
Hey Allegro,
Thanks for the help. Your example works even if I change one sphere to a grid.
When I try your method with my animation, I get nothing. Take a look (attachment).
I think the problem lies with changing input of points from the group1.
I need the point sop to cook every frame or something.
Thanks again,
~S
| Description: |
|
 Download |
| Filename: |
normalTransfer_H9_v02.hipnc |
| Filesize: |
82.8 KB |
| Downloaded: |
233 Time(s) |
|
|
| Back to top |
|
 |
SYmek Houdini Master

Joined: 13 Mar 2003 Posts: 935

|
Posted: Sat Jun 07, 2008 6:30 pm GMT Post subject: |
|
|
Yellow/black zebra on node means warning! PointSOP requires two inputs to have the same number of points (or even be identical?). You need here Attribute Transfer SOP or some magic VEX if you need greater control on this process. I modified your scene. Hope this is what you're after.
cheers,
sy.
| Description: |
|
 Download |
| Filename: |
normaltransfer_h9_skk.hipnc |
| Filesize: |
109.63 KB |
| Downloaded: |
233 Time(s) |
|
|
| Back to top |
|
 |
geneome Lurker
Joined: 04 Mar 2008 Posts: 11 Location: Maryland/DC

|
Posted: Sat Jun 07, 2008 11:13 pm GMT Post subject: |
|
|
So what you're trying to do is use an animated sphere's normal to dictate the grid's normal direction within the sphere's bounds, then, use these new grid normals to change the direction of particles generated from the grid right? If you want to use the normals of each point on the sphere then SYmek's got it. (I cleaned it up for myself to see it in action so I'll post it here.)
But if you are looking to use a single normal for the whole sphere (which seems to be the case from from your first post), you could use a primitive sphere (single point) instead.
| Description: |
|
 Download |
| Filename: |
normal transfer_g.hipnc |
| Filesize: |
87 KB |
| Downloaded: |
229 Time(s) |
|
|
| Back to top |
|
 |
massta Talkative

Joined: 18 Dec 2005 Posts: 28 Location: Cambridge, MA

|
Posted: Sun Jun 08, 2008 4:04 am GMT Post subject: |
|
|
geneome and SYmek, you rock!
This is exactly what I was shooting for. I looked into using a primitive sphere but I couldn't add a Normal to it (not with Point SOP or Primitive SOP).
Anyway, it was just easier to group/delete so I could select any point I want to use for a normal transfer.
You can see inside my file what I was aiming for under the second particle sop.
Thanks!!!
~Shawn
| Description: |
|
 Download |
| Filename: |
normalTransfer_H9_v03.hipnc |
| Filesize: |
98.84 KB |
| Downloaded: |
246 Time(s) |
|
|
| Back to top |
|
 |
geneome Lurker
Joined: 04 Mar 2008 Posts: 11 Location: Maryland/DC

|
Posted: Sun Jun 08, 2008 11:40 am GMT Post subject: |
|
|
This is such a great example of the procedural workflow... definitely video tutorial worthy. Thanks to SYmek for pointing to the right answer!
| massta wrote: | | I looked into using a primitive sphere but I couldn't add a Normal to it (not with Point SOP or Primitive SOP). |
I noticed this too; that adding a normal using $NX,$NY,$NZ didn't give me anything. What I have been able to do is use a point SOP to define a normal with an expression or define it (like 0,0,1) and then just animate it to where I want it to go. I like your group/delete method better though .
|
|
| Back to top |
|
 |
|