two Qs about gridshape

Nov 3, 2009 at 10:18am

two Qs about gridshape

Is it possible to have 2 or more spheres in the same window, and if yes, is it possible to track them and get their position and rotation speed?

#46269
Nov 3, 2009 at 11:28am

Yes, and probably yes.

It’s not really clear what you mean by tracking. For the spheres to move and rotate you’ll need to set their position and rotation, so you can keep track of those yourself. You can also get them from the gridshape object if you need to.

– Pasted Max Patch, click to expand. –
#166586
Nov 3, 2009 at 11:42am

Yeah I figured out the best way was using gj.handle a prepend set and a message…

thank you so much.

#166587
Nov 3, 2009 at 12:32pm

what if I want to include some physics with gridshape objects?
like two spheres orbiting… gravity and so on?

#166588
Nov 3, 2009 at 1:37pm

There is no standard physics engine in Max afaik, unless you count [jit.p.vishnu]. I don’t recall anyone built or imported one either, but i’m sure people have tried stuff. Unless what you want to do is relatively simple or you really have a good idea about physics, I wouldn’t press my luck here. I made your balls bounce:

– Pasted Max Patch, click to expand. –
#166589
Nov 3, 2009 at 1:54pm

thanks again, this is interesting..

my last question is, do you know any way to make one ball orbiting around the other?

#166590
Nov 3, 2009 at 2:45pm

Done. Finished your homework now? ;P

– Pasted Max Patch, click to expand. –
#166591
Nov 3, 2009 at 2:48pm

ouch it crashes as soon as I paste it.. can you attach a maxpat file?

#166592
Nov 3, 2009 at 2:55pm

ok ok sorry I got it thanks so much

#166593
Nov 3, 2009 at 6:07pm

for physics take a look on PMPD

http://drpichon.free.fr/pmpd/

quite tricky but great!

good luck,
o

#166594
Nov 3, 2009 at 6:15pm

thank you but apparently PMPD for max5 does not exist.

#166595
Nov 3, 2009 at 6:41pm

peter Elsea made some nice Orbit objects Lorbit and Lspace, there are for mac only though, you can find them in the beta objects folder at :
ftp://arts.ucsc.edu/pub/ems/Lobjects/

look also for the A-objects by Andre Sier , there is [a-grav] and some physcal model objects.

http://www.s373.net/code/

#166596
Nov 3, 2009 at 7:58pm

hi,

im using it with max5 and win xp.. dont know if theres for mac.

i downloaded here:
http://drpichon.free.fr/pmpd/download/

bye,
o

#166597

You must be logged in to reply to this topic.