Difference between revisions of "Basic Animation Tutorial"
Jump to navigation
Jump to search
fixed a broken link
imported>XMarksTheSpot |
imported>Morerunes (fixed a broken link) |
||
| (18 intermediate revisions by 7 users not shown) | |||
|
{{Featured}}
[[Image:AnimGuide_Fig_1_Branch_Overview.gif|thumb|right|'''Fig. 1''': Typical view on a simple animation's block tree.]]▼
This guide aims at enabling modders to create very simple animated objects by applying pre-assembled basic animation files. Furthermore these animation files may be customized to allow for a multitude of more complex animations.<br>This might especially be geared towards modders who don't have access to or knowledge about using 3D applications (such as [[3D_Studio_Max_Trial_Versions|3D Studio Max]]) to create and export animations.<br>Basic knowledge about animations and about using [[NifSkope]] is required though.
Feel free to add to this article and/or correct any mistakes you might come across as this guide does neither claim to be complete nor to be 100% accurate.
[[Image:AnimGuide_Samples.gif|thumb|right|Examples of objects utilizing simple animations. Click to enlarge.]]
{{Tools|req0=[[NifSkope]]|opt0=[[3D_Studio_Max_Trial_Versions|3D Studio Max]]|opt1=[[Blender]]|opt2=[[Milkshape]]|opt3=...}}
==Anatomy of Animations==
▲[[Image:AnimGuide_Fig_1_Branch_Overview.gif|thumb|right|'''Fig. 1''': Typical view on a simple animation's block tree.]]
An animation sequence that's embedded into a .nif file is composed of characteristic block structures (see [[#Introduction|Fig. 1]]).<br>The following is a list of brief descriptions about the most common elements.
[[Image:AnimGuide_Fig_3_Basic_Nif_Setup.gif|thumb|right|'''Fig. 3''': The basic .nif branch setup that is required before attaching one of the provided animation sample files.]]
#Download sample package
#Open your .nif file in NifSkope and set it up similar to how it was done in [[#Step-by-step guides|Fig. 3]].
<blockquote>'''Note''': For the sample .kf files to be attachable it is crucial to have a '''''Base''''' ''NiNode'' like in the example. For some of the samples it is necessary to have either another ''NiNode'' named '''''Branch''''' and/or to rename your mesh node to '''''Target'''''.<br>Also adding a ''BSX Flags Extra Data'' block to the '''''Base''' NiNode'' and setting its ''Flags'' value to a certain number ('11' is confirmed to work in all provided examples) is a requirement for animations to function properly.</blockquote>
*[[#Creating a Texture Transform Controller animation|Texture Transform Controller]]
|}
<blockquote>'''Note''': Attaching is done via selecting ''Spells'' -> ''Animation'' -> ''Attach .KF'' in [[NifSkope]] - you'll need at least version [http://sourceforge.net/project/showfiles.php?group_id=149157&package_id=170735 0.9.5] or it will spawn an error message about the .kf file containing too many root nodes.</blockquote><br>
----
This is due to a missing target link in the ''NiTextureTransformController'' that is contained in the .kf file. You can fix this via assigning a target - simply enter the node number of the ''NiTexturingProperty'' of the '''''Target''''' mesh node into the ''Target Block Details'' entry of the ''NiTextureTransformController'' (similar to [[#Creating a Visibility Controller animation|Fig. 4]]).<br>
Also the ''NiMultiTargetController'', which will be created automatically, is targeting the '''''Target''''' mesh node (which will cause an error message, too); simply remove the ''NiMultiTargetController'' block as it is not needed there anyway.
''The animation will work without applying any of these fixes though''.</blockquote
<blockquote>'''Note''':The texture animation won't work on a texture that has a normal map. You must set the emissive colour contained in the MaterialProperty of the targeted NiTriStrips to White (ffffff) instead of the default Black, for a texture without a normal map to show up ingame..</blockquote><br>If you don't want your targeted object to behave like that see [[#Tweaking an animation|Tweaking an animation]].<br><br>
[[Image:AnimGuide_Fig_5_Changing_Animation_Time_Frame.gif|thumb|right|'''Fig. 5''': Updating the animation's global time frame after adjusting keyframe values.]]
===Tweaking an animation===
<br>
==Final Words==
Further iterations of this guide may include instructions about how to merge multiple controllers into a single controller sequence and maybe provide example files for this
Currently, there's also an .esp file included in the package which places all example files on a table in the TestingHall cell (type 'coc testinghall' in the in-game console to get there).
[[Category:Tutorials]]
[[Category:Animation Tutorials]]
[[Category:NifSkope Tutorials]]
| |||