FAQ FAQ      Search Search      Memberlist Memberlist      Usergroups Usergroups      Register Register      Profile Profile      Check private messages Check private messages      Log in Log in     

normal transfer from another object (help)

 
Post new topic   Reply to topic    Houdini Forum Index -> Technical Discussion
View previous topic :: View next topic  
Author Message
massta
Talkative


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

usa.gif
PostPosted: Fri Jun 06, 2008 5:51 pm GMT    Post subject: normal transfer from another object (help) Reply with quote

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



normalTransfer_H9_v01.hipnc
 Description:

Download
 Filename:  normalTransfer_H9_v01.hipnc
 Filesize:  69.09 KB
 Downloaded:  231 Time(s)

Back to top
View user's profile Send private message Visit poster's website
massta
Talkative


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

usa.gif
PostPosted: Sat Jun 07, 2008 5:17 am GMT    Post subject: Reply with quote

Thinking I need to take a good look at the Attribute Transfer SOP.
Back to top
View user's profile Send private message Visit poster's website
Allegro
Houdini Master


Joined: 20 Mar 2006
Posts: 573
Location: Toronto

canada.gif
PostPosted: Sat Jun 07, 2008 12:09 pm GMT    Post subject: Reply with quote

You can use the point sop!


normals.hip
 Description:

Download
 Filename:  normals.hip
 Filesize:  48.07 KB
 Downloaded:  243 Time(s)

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
massta
Talkative


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

usa.gif
PostPosted: Sat Jun 07, 2008 5:21 pm GMT    Post subject: Reply with quote

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



normalTransfer_H9_v02.hipnc
 Description:

Download
 Filename:  normalTransfer_H9_v02.hipnc
 Filesize:  82.8 KB
 Downloaded:  233 Time(s)

Back to top
View user's profile Send private message Visit poster's website
SYmek
Houdini Master


Joined: 13 Mar 2003
Posts: 935

poland.gif
PostPosted: Sat Jun 07, 2008 6:30 pm GMT    Post subject: Reply with quote

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.



normaltransfer_h9_skk.hipnc
 Description:

Download
 Filename:  normaltransfer_h9_skk.hipnc
 Filesize:  109.63 KB
 Downloaded:  233 Time(s)

Back to top
View user's profile Send private message AIM Address
geneome
Lurker


Joined: 04 Mar 2008
Posts: 11
Location: Maryland/DC

usa.gif
PostPosted: Sat Jun 07, 2008 11:13 pm GMT    Post subject: Reply with quote

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.



normal transfer_g.hipnc
 Description:

Download
 Filename:  normal transfer_g.hipnc
 Filesize:  87 KB
 Downloaded:  229 Time(s)

Back to top
View user's profile Send private message Visit poster's website
massta
Talkative


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

usa.gif
PostPosted: Sun Jun 08, 2008 4:04 am GMT    Post subject: Reply with quote

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



normalTransfer_H9_v03.hipnc
 Description:

Download
 Filename:  normalTransfer_H9_v03.hipnc
 Filesize:  98.84 KB
 Downloaded:  246 Time(s)

Back to top
View user's profile Send private message Visit poster's website
geneome
Lurker


Joined: 04 Mar 2008
Posts: 11
Location: Maryland/DC

usa.gif
PostPosted: Sun Jun 08, 2008 11:40 am GMT    Post subject: Reply with quote

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 Smile.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Houdini Forum Index -> Technical Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


phpBB component v1.2.4 RC3 by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group