Jump to content

Sphere-sphere collision in VOPPOP


djwarder

Recommended Posts

Hey, just been looking into simple sphere to sphere collision & response, and wondered if this is possible to do in VOPs.

There's all the pointcloud access which would be fast and the algorithm doesn't look too bad - is this possible & has anyone tried it at all?

ps. Sample C++ code ... http://studiofreya.c...ision-response/

Link to comment
Share on other sites

That solution really only works when you have two objects colliding. In a complex collision you could have hundreds or thousands of collisions which need to be resolved. The Gas Particle Integrate dop does this for particles and collision geometry.

But if you want a sphere based collision, your best bet would probably be the bullet solver.

Link to comment
Share on other sites

Hmm ok, I'll have a look the GasParticleIntegrate microsolver, cheers for the heads-up. Bullet could be an option, but I need to have ALOT of spheres colliding and Bullet in Houdini seems to use tons of memory and is not as quick as I remember in being in Maya. Might have to look into if there's any settings on the solver I can change to speed things up ...

Link to comment
Share on other sites

I'm pretty sure this can technically be done using point clouds and VOPs but Bullet might end up saving you more time in the end.

You can use PC Open's search radius to represent the sphere, max points = 2, then use Num Found/Import by Index and a For loop to access and transfer velocity/position info between the two points. As Ikarus mentioned, you're only ever calculating collisions between two points/spheres at a time but you're doing for every point. Not a very robust system but it could maybe work for debris in the background or something similar that doesn't necessarily call for a great deal of accuracy.

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