View Full Version : path constraints with multiple objects - tank tracks
ninjacore 02-18-2003, 01:32 PM How do!!
I'm making a tank, and i'm a little stuck with the tracks, as i want to have fully animatable geometry.
So far i have my tank track peice as an editable mesh object.
I found a tutorial on how to make tracks, but its not that good.
what i basically want to do is multply my track peice 40-50 times, and wrap it around a spline shape i have made and then allow these peices to move around this spline when i come to animate them.
So far i have tried a Path Deform Modifier, but that just seems to make a polygon mush. I then tried adding a path constraint through the Motion Panel, but that ends up stretching my track pieces when they go around the spline.
also, does it matter if i attach all these objects through edit mesh or can i just group them together?
any suggestions or help??:airguitar :airguitar
|
|
BrandonD
02-18-2003, 04:44 PM
If you create one track piece and add a path constraint and then make an instance of that piece, you can adjust it globally in the path percentage parameter and they'll will move exactly the same - only offset. Repeat that and you're set. In fact, with some very simple scripting you could make the whole track by offsetting each by a set amount:
a = 1
for every track object in the list do
(
blah = object.pathpercentage.key += a
a+1
)
ninjacore
02-19-2003, 03:27 PM
ok, thats a nice piece of advise, but i'm having trouble actually making the tack object itself.
for some reason the peices turn upside down if i use a path constariant in motion panel.
OH GOD!!! WHY WONT SOMEONE HELP ME???????? AAAARRRRRRRRRRGHHHHHHHHHHHHHHHHHH
ahem...:bounce:
TMortan
02-19-2003, 10:05 PM
Check allow upside down in your path options to fix your flipping problem.
BrandonD
02-19-2003, 10:14 PM
PathDeform is another good way to do tank tracks.
jadedchron
02-19-2003, 11:03 PM
OH GOD!!! WHY WONT SOMEONE HELP ME???????? AAAARRRRRRRRRRGHHHHHHHHHHHHHHHHHH
i think brandon helped quite nicely :)
ninjacore
02-19-2003, 11:05 PM
everything is ok!!
i finally figured it all out. i was just having these little problems with the strething of my tracks, but thats hidden anyway.
Also, the i was selecting the path deform modifier from the World List. that seemed to make a diffrence.
i'll show a WIP render of my tank in the WIP gallery!
thanks guys:thumbsup:
Uhm, PathDeform isnīt a good choice. It deforms the geometry of your chains and can do a lot of mess. I think the solution with the script should be the best and easiest way. I made it different a while ago but it was a lot of work. I added a path constraint to my chains and used WireParameter to control theire "%along path"-value. Each chain was wired to the chain in front of it and at the end I could move the base chain (which I colored differently) to move the whole track. A lot of boring work ;). Expressions did the rest to adjust the speed of the chain-movement and the wheels rotation so in the final result I just had to push the tank forwards ;).
And this is how it looks like:
http://www.nuckel.net/images/kette.avi
(Was a test. Tank from DeEspona Infografica, downloaded at www.3dup.com)
ninjacore
02-20-2003, 11:20 AM
Thats a kick ass tank Smay.
I want to use a more stable method, but i'm not too sure exactly what Brandon means by offsetting an instance globally! Plus i havnt done any MaxScript before.
Smay mentioned expressions. Would i be able to use an expression controller to link all the wheels and the tracks to gether, and use a dummy to move them? If so, how in gods name would i set that up?
Help is appreciated! :buttrock: :thumbsup:
ninjacore
02-20-2003, 12:10 PM
ok, i just tried making a box go around a circle to test everyones advice.But i'm still having trouble
How do i use brandons script? i created a new script and entered what he wrote, but it says "unknown" to "pathpercentage".
also, i tied the wire parameter thing smay mentioned, but the objects are still moving sepratly, i have no control.
if someone can take the time to write i tiny step by step turorial on what i should be doing, it would really be appreciated cos i'm a dumbass.
:cool:
CGTalk Moderation
01-14-2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.