DOPs > using custom impact data

   5070   6   1
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi,
how can I create custom impact data from an object and then use that recorded custom impact to drive the vel on a set of separate objects. ie

Sphere hits object > custom impact data gets recorded > state node uses an if statement then to add more vel to another set of objects.

scene attached

Rob

Attachments:
rse_dops_data_trigger_h11_001.hip (259.1 KB)

Gone fishing
User Avatar
Member
512 posts
Joined: July 2009
Offline
Hi Rob,

I didn't open your attached scenefile, but here's a crude example on how to
access impact data.

regards,

Manu

Attachments:
Dops_ImpactData_example.hip (209.9 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi,
I fully understand the scene but the box is only active if there is an impact, so as your sphere rolls along the ground there is a continuous impact recorded and therefore the box can fall. What I am after is a way of recording the first impact then the other objects get triggered to move. without having to rely on a continuous impact happening > much like a trigger to execute something after the first impact.

Hope that makes sense , see the attached scene file using your method and showing the problem. The cube only moves when the impact is recorded.

Rob

Attachments:
rse_dops_simple_geom_creation_hxx.hip (196.7 KB)

Gone fishing
User Avatar
Member
512 posts
Joined: July 2009
Offline
hey there,

so you have to use the SOP Solver to get this to work,
in this case I'm initializing an attribute “hasImpact” on object creation in SOPs and change this then in the SOP Solver as soon as there is impact data, that way you keep this value (it's boolean).

2 things that I didn't quite get is how to use the point expression correctly
in DOPs to get access to an objects geometry entry and
why I have to use 2 different RBD solvers.

Well it's late

cheers,

Manuel

Attachments:
Use_Impact_data_to_drive_DOP.hipnc (249.6 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
230 posts
Joined: Oct. 2009
Offline
Manu is it possible in your technique to keep the point of the first impact only? not the value (if has impact or not) but the point from the impact and ignore the rest which will cause from the same geometry?
User Avatar
Member
512 posts
Joined: July 2009
Offline
yeah, that's no big deal at all

Hou12 has to useful new SOPs that make your life easier, the Solver SOP and the DopImpactRecords SOP, check out the attached file!

cheers!

Attachments:
Hou12_SolverSOP_DOPimportRecordsSOP.hip (258.9 KB)

http://vimeo.com/user2522760 [vimeo.com]
http://stormbornvfx.com/ [stormbornvfx.com]
Manuel Tausch
User Avatar
Member
230 posts
Joined: Oct. 2009
Offline
asnowcappedromance
yeah, that's no big deal at all

Hou12 has to useful new SOPs that make your life easier, the Solver SOP and the DopImpactRecords SOP, check out the attached file!

cheers!

I wish I could work with H12 but I have to use uni's version H11, but I found some way to fix this. Can you check my last post and the attached hip here:
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=25255 [sidefx.com]

thanks in advance!
  • Quick Links