Moving treads on 3d model??

Ask questions, discuss ideas, get answers
Post Reply
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Moving treads on 3d model??

Post by BotHunter »

Hey all! I've got a 3d Tank model here that already has treads on it, So I was wondering if there was a way to make the treads on the 3d model to move without having to make custom treads. Here is the tank Below ---V--- As you can see, it has treads textured on it already.
Image
(https://www.mediafire.com/view/0602dkmb5hc3yix/Tank.bmp)
Here is the Texture image:
Image
(http://www.mediafire.com/download/suobg ... Albedo.bmp)
ThanksAlot!! :)
Walk quietly and carry a sniper rifle
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Moving treads on 3d model??

Post by Apache Thunder »

You'll need to make each group of tracks (left side tracks seperate mesh from right side mesh) seperate meshes and skin them to a skeleton. Then assign wheels to the resulting animated bundles. Look at existing code and tanks as a reference point. If you don't want to go as far as add extra detail like making the track mesh flex and such, then it should only take a real simple setup with an invisible dummy wheel on each side for the tracks. The wheel has to be in the same level as the visible/physics wheels using the EngineRollGrip grip type so that the track textures will animate.

Looks like the texture is oriented correctly so all you have to do is what I mentioned above.

Had it been a BF2 vehicle or a vehicle with the track texture oriented vertically, you would have had to flip the texture and uvmaps since BF1942 only supports scrolling the texture on the horizontal axis. ;)
ImageImageImage
I have cameras in your head!
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Moving treads on 3d model??

Post by BotHunter »

I don't really want it to flex, All I'm looking for is to have the texture move. So is there a way of doing this without making any skeletons or stuff like that??
I was thinking more of using this:
http://bfmods.com/mdt/scripting/ObjectT ... Speed.html


BTW. It has x/y on the arguments. does that mean it can do horizontal and vertical?
Walk quietly and carry a sniper rifle
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Moving treads on 3d model??

Post by BotHunter »

So how can I accomplish this?
Walk quietly and carry a sniper rifle
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Moving treads on 3d model??

Post by BotHunter »

So the only way I can do this is to make an skin and ske?
Walk quietly and carry a sniper rifle
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Moving treads on 3d model??

Post by Vilespring »

Bot hunter, I think you can just use what we already have. Just copy the sherman track geometry (because we still need vanilla vehicles) and scale it to fit the individual tracks. Then, you can edit the texture to fit the track you put on the geometry.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Moving treads on 3d model??

Post by BotHunter »

OK I'll try. But I'm having a hard time "Copying" the tracks animations. :|
Walk quietly and carry a sniper rifle
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Moving treads on 3d model??

Post by Vilespring »

No, I mean see if you can use the animations already there :)
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Post Reply