Quantcast

Jump to content

» «
Photo

Converting Endorphin anims to GTA

172 replies to this topic
Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci Racing
  • Joined: 19 Aug 2006
  • European-Union

#1

Posted 23 December 2008 - 03:29 PM Edited by Wesser, 01 September 2011 - 09:41 PM.

Endorphin physics to GTA Series

1. Requirements

First of all, make sure this isn't the first attempt with endorphin and you have installed it, If not, you can find the cracked version (with serial, I mean) on <Link removed> (version 2.5.2, pm me). If you are looking for knowledges about its functions go to naturalmotion.com. You can follow all steps by downloading the following archive:

Tutorial : tutorial.rar

2. Endorphin

Well, open that program and drag the mouse to select the current character. Now you can see a colored region on the bottom (above the timeline bar) that means what character is selected. Near "Track02" right click on the blue line and select "Create Behaviour Event". Then on the left choose "Jump and dive". Change "End Frame" to 100 and under the timeline bar click on pic1. Wait until it is arrived to 100 and click on pic2 to stop the operation. You can play the anim by pressing pic3 and stopping with pic2. Now go to File->Export and choose the format .csm. Then write "Jump and dive" as the file name and click on "Save" button. Finally change the scale value to 25.9 (0.0259 with .fbx exporter) and click "Ok". To know if all has gone well open example.ens scene. Now we've done the endorphin steps.

3. 3D Studio Max

Open the .max file contained in the archive (named "biped") and then on the top choose the "biped" set to select all biped parts (here). Then click on pic4 to select the motion menu. Now if you import any anims exported with a different biped, the current biped parts will be badly aligned or scaled. So in "biped" group click on pic5 to save the figure transforms (write "player" as the file name). In "Motion Capture" group open the .csm file by clicking on pic6. Near "Conversion" select "No Key Reduction" and click "Ok". After the .csm file is imported some bones will be different than before. So click on pic7 then on pic8 to load the .fig file and restore the correct transforms of all biped parts. Leave the figure mode by clicking on pic9. In "Motion Capture" group click on pic10 and move or rotate the bones which are badly aligned. Leave the talent figure mode by clicking on pic11 (then compare your results with that are placed in example.max).

3D Studio Max 7

Download BipedDumper and put the .ms file in 3dsmax\scripts. Go to MAXScript->Run Script to run the previous downloaded file. Select the root bone (named "Normal") and click on "Dump Biped". Save the current file and open a new scene. Now import a DFF that you want to play the anim and then go to File->Merge Animation.

Click on "Source File" and choose the saved file (which contains the converted biped to mesh). Then match all the bones that have the same name + "snap" from left to right:

Source NodesCurrent NodesMerge Nodes
Normal_snapNormalNormal_snap
Pelvis_snap Pelvis Pelvis_snap
Spine 1_snap Spine 1 Spine 1_snap
Spine 2_snap Spine 2 Spine 2_snap
Neck_snap Neck Neck_snap
Head_snap Head Head_snap
HeadNub_snap HeadNub
Jaw_snapJawJaw_snap
L Brow_snapL BrowL Brow_snap
R Brow_snapR BrowR Brow_snap
Bip01 L Clavicle_snapBip01 L ClavicleBip01 L Clavicle_snap
L UpperArm_snap L UpperArm L UpperArm_snap
L ForeArm_snap L ForeArm L ForeArm_snap
L Hand_snap L Hand L Hand_snap
L Finger_snap L Finger L Finger_snap
L Finger01_snapL Finger01L Finger01_snap
L Finger0Nub_snap L Finger0Nub
L breast_snapL breastL breast_snap
Bip01 R Clavicle_snapBip01 R ClavicleBip01 R Clavicle_snap
R UpperArm_snap R UpperArm R UpperArm_snap
R ForeArm_snap R ForeArm R ForeArm_snap
R Hand_snap R Hand R Hand_snap
R Finger_snap R Finger R Finger_snap
R Finger01_snapR Finger01R Finger01_snap
R Finger0Nub_snap R Finger0Nub
R breast_snapR breastR breast_snap
Belly_snapBelly
L Thigh_snap L Thigh L Thigh_snap
L Calf_snap L Calf L Calf_snap
L Foot_snap L Foot L Foot_snap
L Toe0_snap L Toe0 L Toe0_snap
L Toe0Nub_snap L Toe0Nub
R Thigh_snap R Thigh R Thigh_snap
R Calf_snap R Calf R Calf_snap
R Foot_snap R Foot R Foot_snap
R Toe0_snap R Toe0 R Toe0_snap
R Toe0Nub_snap R Toe0Nub

After all you can save what did you do by clicking on "Save Mapping". Now deselect all attributes except "Rotation" and click on "Merge Animation". All the bones will have the rotation transforms but not the position ones. Do the same steps like the previously even if now you have to move only the normal bone with "snap" from left to right and deselect all attributes except "Position":

Source NodesCurrent NodesMerge Nodes
Normal_snapNormalNormal_snap

After all, click on "Merge Animation".

3D Studio Max 9

Make sure all biped parts are selected. Then go to File->Save Animation to save the current transforms of selected objects\bones. Write "Jump and dive" as the file name and click on "Save Motion". Start a new scene and import a DFF that you want to play the anim (in this case player.dff). Select all objects\bones except "Skin_Mesh" and go to File->Load Animation. Mark your saved anim and click on "Edit Mapping" button. Now deselect some options placed on the bottom of the new window like this.

Select all current scene objects you would like to merge the keyframes on and go to File->Load Animation. Once the plug-in fired up, you'll be able to notice 3 columns, each one does its function as follows:
  • CURRENT: it contains all objects currently selected in the scene
  • MAPPED: it lists all merging operation which the INCOMING objects could transfer on the CURRENT ones
  • INCOMING: it reports the objects whose animation has been previously exported
Now, choose which object you're willing to animate and match it with the relative INCOMING object, then push on:
  • Exact Name, if the comparing names are the same
  • Closest Name, if the names looks similar or completely different (I prefer this)
So select "Normal" (highlighted word, bold font) from right (CURRENT) and apply the animation onto the "Normal" object from left (INCOMING), " Pelvis" from right to " Pelvis" from left... and so on, as follows:

InfoCurrentMappedIncoming
BonesNormal Normal
StuffNormal \ TransformsNormal \ TransformsNormal \ Transforms

Where "Transforms" doesn't exist, select "World Transforms" instead.

After all, click on "Save Mapping As" and type "Jump and dive" as the file name and then to "Load Motion". Now if there are some position\scale frames for all the bones except the root one (original normal = position\rotation), you have to delete them to minimize the size of the exported .ifp. Download my created script before doing that:

Copyright © Wesser : DeleteAllKeys.ms

Put that script in 3dsmax\scripts, then go to MAXScripts->Run Script and choose that .ms file. Select all scene objects except the "Skin_Mesh" because it is useless, enable the "Scale keys" option and click on "Delete". Now disable that option and select all the bones except the root one (normal). Repeat the same steps by enabling "Position keys" option and clicking on "Delete" button.

4. Rendering

Move the root bone (normal) to 0.0 (xyz pos), for example. Now look at the 2 ways which would help you to export your result ingame.

Replacing Existing Animations

Follow the Custom Player Animations tutorial (made by jacob).

Creating Your Own IFP

Follow the Creating Custom IFP's tutorial (made by goin-god). Using this way, you should create a simple script which loads your created file and plays the anims which are placed into it. Before reading this, I advise all to learn at least the basics of coding, with the CLEO Script Tutorial (made by ZAZ). So, first you have to load the animation file with this code:
CODE
04ED: load_animation "CUSTOM"

Then, we have to check if it is correctly loaded, otherwise the game will crash or not load it properly:
CODE
:Loop
if
84EE:  not animation "CUSTOM" loaded
jf @Label
wait 0
jump @Loop

Finally, load your animation by its name with this opcode:
CODE
0812: AS_actor $PLAYER_ACTOR perform_animation "NEW_ANIM" IFP_file "CUSTOM" 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1 // versionB

Note, setting time to -1 will let the game to repeat the animation again.

Here is the whole script (just hold "IFP" to play your anim):
CODE

{$CLEO}

:ThreadHd
thread 'IFP'

:ThreadLoop
wait 0
if and
0AB0:  key_pressed 0x49 // I
0AB0:  key_pressed 0x46 // F
0AB0:  key_pressed 0x50 // P
jf @ThreadLoop

:AnimLoad
04ED: load_animation "CUSTOM"

:AnimCheck
if
84EE:  not animation "CUSTOM" loaded
jf @AnimPlay
wait 0
jump @AnimCheck

:AnimPlay
0812: AS_actor $PLAYER_ACTOR perform_animation "NEW_ANIM" IFP_file "CUSTOM" 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1
//jump @ThreadLoop
0A93:end_custom_thread

Once you finished, all is done. Enjoy!

Sample of what can you do with this tutorial and the ragdoll physics (video made by coin-god):


This is what polish guys understood with this translated tutorial. Polish try tounge.gif:


5. Unattached videos

PedRising endorphin animation test
Falling animation example
Endorphin freefall animation
GTA SA Custom animations
Helicopter hanging animation

6. Translations

LanguageTypeAuthorLink
FrenchSnippedVicolashipshere
PolishFullMatiSk8here
ChineseFullLeeaohere

7. Credits

If you have comments, opinions or evaluation you are welcome. Let me know if there are some errors and I'll correct them surely.

For who convert some animations from endorphin to gta please post them in this topic, so it would be like an animation showroom.

Don't make any requests here or by pms, please.

This guide is entirely created by me so I don't have to give credits to anyone.

8. Video demonstration

Russian version

GTANet Annual Forum Award

AwardDescription
user posted imageGTANet Annual Forum Award
» Winner of GTA Modding Awards 2008: Best Tutorial

Related post: Converting Endorphin anims to GTA

Thanks everybody, guys! tounge2.gif

MinnieMan121249
  • MinnieMan121249

    Carbon based Buffoon!!

  • The Yardies
  • Joined: 19 Jun 2008

#2

Posted 29 December 2008 - 08:01 AM Edited by MinnieMan121249, 29 December 2008 - 08:08 AM.

Nice tutorial. But is it for all (3D) GTA games? Like GTA 3 and San Andreas? Or just for IV? and BTW you can't post links for WAREZ sites. It's against the rules and their not welcome here. turn.gif

EDIT: It says you joined in 2006... I can't believe you don't know the rules man... It's only for your own good wink.gif

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci Racing
  • Joined: 19 Aug 2006
  • European-Union

#3

Posted 29 December 2008 - 09:08 AM Edited by Wesser, 28 January 2009 - 08:51 AM.

Don't worry, I know the rules wink.gif. I didn't post any download links but I just wrote where you can find a cracked version. Does it overpass the rules? If so, I'll delete what I wrote.

This tutorial works for all GTA games. You'll have to change only the bones\objects that you want to merge the animation\s as you can see.

Game\sBones
GTA III?24 bones
GTA VC24 bones
GTA SA32 bones

coin-god
  • coin-god

    High Roller

  • $outh $ide Hoodz
  • Joined: 18 Mar 2007

#4

Posted 30 December 2008 - 12:43 AM

Good to see you finally did it Wess. cookie.gif

iBall.
  • iBall.

    Mark Chump

  • Members
  • Joined: 07 Dec 2008

#5

Posted 01 January 2009 - 12:47 PM

I dont get this mod xD. what does it do exactly?

gta-fixed
  • gta-fixed

    LOL

  • Members
  • Joined: 10 Dec 2008

#6

Posted 02 January 2009 - 07:19 PM

QUOTE (iBall. @ Jan 1 2009, 12:47)
I dont get this mod xD. what does it do exactly?

you can make things for your gta game
looks like Grand Theft Auto 4

Function-X-
  • Function-X-

    Negativity Replenish

  • Members
  • Joined: 07 Jan 2008

#7

Posted 03 January 2009 - 02:02 AM

Wow amazing....so now we can have some realistic anims from Endorphin ?
anybody did something yet ? i really want to change some anims

gta-fixed
  • gta-fixed

    LOL

  • Members
  • Joined: 10 Dec 2008

#8

Posted 03 January 2009 - 10:43 AM

i'm import the car crash from gta iv to gta san andreas
thanks for this tutorial cookie.gif cookie.gif

cold fusion 33
  • cold fusion 33

    Slamman's distant relative

  • Members
  • Joined: 08 Jul 2006

#9

Posted 03 January 2009 - 12:40 PM

This sounds really cool, but I don't know how to do it/ I don't have time to learn how to do it... Are there any videos of this in action in San Andreas?

Maciel
  • Maciel

    Just LOLING around

  • Members
  • Joined: 07 Dec 2008

#10

Posted 04 January 2009 - 07:19 PM

Thanks wess you put it, i need it, i was working with JuarezSoares (freefall IV to SA) to make the ultimate IV mod i owe you one wess.




Function-X-
  • Function-X-

    Negativity Replenish

  • Members
  • Joined: 07 Jan 2008

#11

Posted 04 January 2009 - 10:49 PM

My hopes is really high on this one icon14.gif ,gta really needs a hell of a animation replacements.

Good luck guys, please try to do something awesome smile.gif

Maciel
  • Maciel

    Just LOLING around

  • Members
  • Joined: 07 Dec 2008

#12

Posted 05 January 2009 - 01:04 AM

due, where is "biped"

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci Racing
  • Joined: 19 Aug 2006
  • European-Union

#13

Posted 07 January 2009 - 06:43 PM Edited by Wesser, 07 January 2009 - 07:21 PM.

Look at the end of the first post and you'll see the tutorial.rar. Open that and choose the folder which is named "Started" and you'll find what you want in biped.max. Can anyone please re-upload my tutorial.rar because it can't be downloaded more than 10 times from rapidshare.com? Cause I deleted it from my hdd.

by_manyax
  • by_manyax

    Player Hater

  • Members
  • Joined: 27 Sep 2007

#14

Posted 07 January 2009 - 10:45 PM

rapid rapid rapid :S sad.gif confused.gif

CODE
Error

This file is neither allocated to a Premium Account, or a Collector's Account, and can therefore only be downloaded 10 times.

This limit is reached.

To download this file, the uploader either needs to transfer this file into his/her Collector's Account, or upload the file again. The file can later be moved to a Collector's Account. The uploader just needs to click the delete link of the file to get further information.



please tutorial.rar upload

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci Racing
  • Joined: 19 Aug 2006
  • European-Union

#15

Posted 09 January 2009 - 01:48 PM

Added new link. Try to download the file again. tounge.gif

bammargera
  • bammargera

    Just Call Me Rob, Its Easier That Way

  • Members
  • Joined: 24 Sep 2006

#16

Posted 09 January 2009 - 04:18 PM

wow i dont have time to learn it but i cant wait till someone does this for vc

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci Racing
  • Joined: 19 Aug 2006
  • European-Union

#17

Posted 09 January 2009 - 06:10 PM

There's not need to make another tutorial for vc. It works for all gta games. What you need to do is to change only the bones that you want to merge the anim.

loczek47
  • loczek47

    They call me "Random Funny Guy".

  • BUSTED!
  • Joined: 22 May 2008

#18

Posted 10 January 2009 - 11:24 AM

Holy sh*t...this means we can made make GTA3 ALOOOOOOOOT bettter by remaking animations ? cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif :cook

aoxsystems
  • aoxsystems

    www.xssed.com

  • Members
  • Joined: 31 Jan 2008

#19

Posted 10 January 2009 - 02:27 PM

any vids?

by_manyax
  • by_manyax

    Player Hater

  • Members
  • Joined: 27 Sep 2007

#20

Posted 10 January 2009 - 10:38 PM

QUOTE (Wesser @ Jan 9 2009, 13:48)
Added new link. Try to download the file again. tounge.gif


thanks

okei
  • okei

    Dressed to kill like I'm Gianni Versace

  • $outh $ide Hoodz
  • Joined: 04 Aug 2008

#21

Posted 10 January 2009 - 10:45 PM

QUOTE (aoxsystems @ Jan 10 2009, 14:27)
any vids?

I would also love to see this.

bammargera
  • bammargera

    Just Call Me Rob, Its Easier That Way

  • Members
  • Joined: 24 Sep 2006

#22

Posted 11 January 2009 - 12:49 PM

QUOTE (Wesser @ Jan 9 2009, 18:10)
There's not need to make another tutorial for vc. It works for all gta games. What you need to do is to change only the bones that you want to merge the anim.

i didn't mean a tut for vc i means a modded ifp with these chages.

lorand
  • lorand

    Job: Professional black guy

  • Members
  • Joined: 27 Sep 2008

#23

Posted 14 January 2009 - 12:14 PM

yeah i wanna see some videos

gta-fixed
  • gta-fixed

    LOL

  • Members
  • Joined: 10 Dec 2008

#24

Posted 21 January 2009 - 06:55 PM

the only what gta sa is missing is physics
i will wait for the freefall IV with physic body biggrin.gif

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci Racing
  • Joined: 19 Aug 2006
  • European-Union

#25

Posted 25 January 2009 - 11:46 AM

Well, my pc is broken and I can't get my files anymore until it is fixed. That rapidshare link is down so is there anyone who has the MergeAnimation.ms script? If so, can you upload it to sendspace.com and post it here? Then I change that annoying link with a newer one. wink.gif

coin-god
  • coin-god

    High Roller

  • $outh $ide Hoodz
  • Joined: 18 Mar 2007

#26

Posted 25 January 2009 - 08:02 PM Edited by goin-god, 26 January 2009 - 05:03 AM.

QUOTE (Wesser @ Jan 25 2009, 08:46)
Well, my pc is broken and I can't get my files anymore until it is fixed. That rapidshare link is down so is there anyone who has the MergeAnimation.ms script? If so, can you upload it to sendspace.com and post it here? Then I change that annoying link with a newer one.  wink.gif

Wess. If you get it. i will host it. You should asked me.

Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci Racing
  • Joined: 19 Aug 2006
  • European-Union

#27

Posted 28 January 2009 - 10:09 AM

I tried that script into 3dsmax9 and I saw it doesn't work for no reasons. Maybe the references of some maxscript functions are changed or noped, I don't know. Well, don't worry. I found a way to do the same thing like that .ms script does in 3dsmax7, so I added a mini tutorial for 3dsmax9. See the first post.

coin-god
  • coin-god

    High Roller

  • $outh $ide Hoodz
  • Joined: 18 Mar 2007

#28

Posted 28 January 2009 - 05:55 PM

Works really good. You are the man icon14.gif

I will get some screenies soon.

l911
  • l911

    ⒶⓌⒺⓈⓄⓂⒺ

  • Members
  • Joined: 02 Oct 2008

#29

Posted 29 January 2009 - 09:09 PM

PLEASE POST SOME VIDEOS!!!

coin-god
  • coin-god

    High Roller

  • $outh $ide Hoodz
  • Joined: 18 Mar 2007

#30

Posted 30 January 2009 - 05:37 PM





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users