Source code and sample demo for player's camera animation while using weapons.
This mod has been implemented in "Arx: End of Sun" project and "Perfected Doom 3" mod. Originally released at doom3world.org
Doom 3 - Head animation
by doomtrinity
//=================================================================================// About: //=================================================================================
This mod implements the head animation by using a new bone "head", in the first person view model.
The bone "head" must be an immediate child of the bone "origin", to work properly.
You can configure a viewport in your 3D modelling software ( e.g. 3DS Max ) to emulate first person view
in the game, so you can see the result of animation immediately. You only need to set up a camera
in your project.
For this camera, you basically need to set the same position and orentation of the bone "head", and bind it to that bone.
Then, switch the view of the viewport to that camera. You may need to set up properties like "fov" to get a good result.
Now you can animate this bone like any other bone in the model.
The code will detect only the orientation of bone "head" ( the position will be ignored ).
This mod includes example anims for pistol/machinegun/rocketlauncher while reloading.
//=================================================================================// Installation://=================================================================================
Simply extract the "head_anim" folder into your Doom 3 directory.
( e.g. "C:\Program files\Doom 3" )
You can load the mod in 2 ways:
1) load it through the "Mods" main menu item
OR
2) launch "head_anim.bat" in the "head_anim" folder.
NOTE: you must have Doom 3 patched to version 1.3.1 for Windows
//=================================================================================// Files://=================================================================================
readme.txt - this file you are reading.
head_anim.bat - launch the mod
D3Game.pk4 - contains compiled SDK code (.dll)
zHead.pk4 - mod related files ( defs, animations, etc. )
d3_head_anim_src.zip - the SDK source code - search "doomtrinity" to see the code has been added/changed.
3ds_max_setup.jpg - screenshot of 3ds max anim example
//=================================================================================// Thanks/Credits//=================================================================================
doom3world.org
id Software
der_ton - for the md5 importer/exporter
Simulation ( EMZ team ) - for the SDK tool