Jump to content
ptakun

Katamari Challange

Recommended Posts

After about 8 hours (!!) i finally figured this one out, including how to get the sphere to accumulate other objects on top of ones it has already stuck to.

the solution i came up uses a script solver to deal with the impact data and decide which object to glue something to. simply put, i'm storing the objects impact "otherobjid" field, so long as it isn't the ground plane (easy since that is ID 0 in my net), and then i'm setting the glue object field in an rbd state object with:

`dopobjectlist($DOPNET, dopoption($DOPNET, $OBJID, "AuxImpacts", "firstImpactID"), 1)`

where AuxImpacts and firstImpactID are my custom names.

i tried using chops for this, but couldn't figure out how to preserve the data from the dynamics chop, as the impact data exists only for one frame. i suspect this might be possible, but i just don't know how to wrangle data in chops well enough yet. is there another way to do this? anyway, i learned a lot doing this challenge... thanks!

Smason,

You made your project too much complicated.

Check my network.

post-1397-1182939624_thumb.jpg

Maybe it will help you.

GallenWolf- Congrats!! Good work ;)

Ptakun

Share this post


Link to post
Share on other sites

Gah! Is that your entire simulation ptakun?

I was using a script solver for the collision, and then dop importing it into sops for the colors. Any hints? :-)

GW

Share this post


Link to post
Share on other sites
Gah! Is that your entire simulation ptakun?

I was using a script solver for the collision, and then dop importing it into sops for the colors. Any hints? :-)

GW

Hey GallenWolf,

No, no. Previous picture showed first stage (no colors).

I don't use "script solver" in both versions.

No color version included:

-standard Dop network where sphere collide with boxes

-one additional data and 4 expressions for boxes

to Color version I added:

-one data and 2 expressions to sphere

-sop solver

-sop network(point node)

post-1397-1182978442_thumb.jpg

Ptakun

Edited by ptakun

Share this post


Link to post
Share on other sites

Blows my mind! I'll really love to exchange files with you if you don't mind... Your setup is way less complicated than the crap i was working on.

GW

Share this post


Link to post
Share on other sites

I know this thread is a little old now, but do you think you can quickly explain how your code is working in there? I'm trying something similar, but instead of having just one ball rolling, I need multiple objects to have that same kind of interaction.

Share this post


Link to post
Share on other sites

yes, the challenge is superb, i agree =) ( my version some time ago

)

in addition to this chalenge i suggest to think about how to make all objects not rbd, but 'soft' .. =)

there is some very funny trick with adding and deleting 'Colliders' data and convert squishy object to rbd

(please look , thanks to Johner!)

but nevertheless i don't know right now how to convert all the simulation to this 'squihy mode'.. =) so, maybe this will be the addition to challenge?)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×