Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Question About Limb Rotation...

Author
Message
Dark Blade
22
Years of Service
User Offline
Joined: 2nd Mar 2003
Location:
Posted: 25th Sep 2003 07:50
Ok, I made a nice tank model in milkshape for a game I am trying to make... and I was trying to use the rotate limb command to position the turret and barrel however they seem to rotate in very strange ways. Since the turret is in the center of the tank rotating it y axis works. Is there a way to rotate a limb around its center instead of the objects center?

Any info would be helpfull...
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 25th Sep 2003 11:59 Edited at: 25th Sep 2003 12:00
In DB use make mesh from object command ...like this you can manipulate origin of object which DB use for placing and rotating. then use offset limb command to get it to right position.

make object box 1,1,1,1
make object box 2,0.5,2,0.5
position object 2,0,-2,0
make mesh from object 2,2
delete object 2
add limb 2,1,2
offset limb 2,1,0,-0.5,0...try to rottate limb 2 of object 1 and you see what it did

center of space (coordinate 0,0,0) is used like origin of mesh when useing make mesh rom object command so position your barel or what ever, that 0,0,0 is where you want to have origin of your barrel rottation.

look here for example of such a manipulation while building model made of limbs: http://darkbasic.thegamecreators.com/?m=forum_view&t=8590&b=10&p=0 its DB code

But if you use Milkshape you just need to learn to make skeleton of joints for your model and attach your limbs to joints and its done
place one joint in centre of tank chasis, then second at the bottom of your turret where tarret would rottate and third at the begining of your barrel. Than attach barrel to third joint, turret to second and rest of your model to firsth one ...export to .x and your rottation will work fine.
M00NSHiNE
21
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 25th Sep 2003 20:02
Aye, thats rite about the .x export, the limbs then work fine but what I didnt know is that the mesh is deformed aswell, it stretches and contracts and everything as you rotate the limbs, making it look realistic. I didnt know DBPro even supported this!

3D MOUSELOOK IS POSSIBLE!!!

"It's amazin' what you can do with a computer and access to t'internet"
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 26th Sep 2003 11:15
Dbpro suports mesh deformation only partly ...you can't mesh deform in Dbpro you can only play bone based animations with mesh deform. Means 3D mouselook is not possible unles you want to make hundreds of animations for each mouse position in 3D. If you have model exported with mesh deforming animation, you can't rotate one limb, just play premade animation. Sometimes that can be enough but if you want your character to run and point his gun in direction of your mouse look I have to disapoint you ...thats not possible!
M00NSHiNE
21
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 26th Sep 2003 11:53
well I dont know how I did it, but I rotated limbs using the rotate limb command and the mesh stretched and deformed as it went (which surprised me). Maybe its something to do with the way I exported it from CharacterFX? As a Direct X 8 Skin and Bones model?

"It's amazin' what you can do with a computer and access to t'internet"
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 26th Sep 2003 14:19
Hmmm...I try that. When I exported from milkshape it wasnt possible...
M00NSHiNE
21
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 26th Sep 2003 23:37
Maybe the mesh deformation is controlled by DX? Who knows?

"It's amazin' what you can do with a computer and access to t'internet"
M00NSHiNE
21
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 27th Sep 2003 21:53
If anybody who owns CharacterFX and is good with DBpro reads this, just try it out and see what happens. I found a ready made/animated model on a site that was originally an MIB agent made by psionic3d. Export the file as an .x and leave all the settings untouched, just make sure you export it as DX8 skin & bones.

"It's amazin' what you can do with a computer and access to t'internet"
actarus
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: 32 Light Years away
Posted: 30th Sep 2003 16:32
Yes that's the format DBP uses for DBC it's DX7 retained mode...

Everyobdy wants to be loved,But no one loves everybody...

HEY!!! I'm the one who had 'Cyberspace' in his location on the older black forums,shame on you Rich j/k

Login to post a reply

Server time is: 2025-05-13 09:28:46
Your offset time is: 2025-05-13 09:28:46