Menu

Welcome, Guest. Please login or register.
October 21, 2019, 09:48:48 pm

Login with username, password and session length

Author Topic: [TOOL] WotLK to Cata, MoP and WoD Model Converter (v1.0)  (Read 1188 times)

inico

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 243
    • View Profile
    • http://www.youtube.com/inicocustom
[TOOL] WotLK to Cata, MoP and WoD Model Converter (v1.0)
« on: February 11, 2018, 04:37:49 am »

This script for 010 editor converts Wrath of the Lich King .M2 and .SKIN files to Cataclysm, Mists of Pandaria and Warlords of Draenor.

Supports:
-Cameras.
-Particles.
-Animation flags.
-Projected shadows.
-Transparency flags.
-Blend mode overrides.

Also includes:
-Batch file converter.
-Shadow remover script.
-Sequence flag remover script.
-Skin template for 010editor with shadow batches added.


Some notes and technical information:

-make sure you are working on "OVR" mode before running the script.

Projected shadows
As you may know, projected shadows are stored inside the .skin file since Cataclysm. This script creates shadows for all texture units, including those with additive materials.
If you want to remove the shadows from a specific geoset, just open the skin file with 010editor, run the skin template included inside the tools folder and delete the texture batch corresponing to that mesh.
If you want to remove ALL shadows from a model, just use the "Cataclysm Shadow Remover" included in the tools folder (it's useful for stuff like fire or lights, that are not supposed to cast a shadow).


As you can see, the glow, which is a billboarded square with addivite renderflag, is casting a shadow and the game can't handle shadows with additive materials. To remove it I selected its shadow batch, deleted it and reduced the shadow batch count by 1 in 010editor.
More info in this video:


Flying mount animations
In WotLK, mounts use swimming animations for flying. Since Cataclysm, however, there are separate ids for swimming and flying since flying mounts can now be used as ground mounts and therefore swim.
But, if a mount model doesn't have fly animations, the game will use its swimming animations. That's why this script doesn't duplicate them. It's not necessary. WotLK flying mounts should still work perfectly in Cata, MoP and WoD.

Reflections
This script doesn't convert reflections since there is no exact way to know when a texture unit is used for a reflection, glow, etc. So you must do it by hand.
Just open your skin file, convert it to Cata+, go to the texunit with the reflection and change its shader to "144". Here is an example using "Creature\Murloc\Murloc00.skin":



You can change the "texunit" and "texunit2" fields to "0" but it's optional since those fields are unused since Cataclysm, but just in case.

Animation sequence flags
Sequence flags are 128 digits bigger since Cataclysm. Without these flags some animation frames loop when they shouldn't and sequences don't blend correctly. This script fixes that problem and gives smoothness to the animations.
If you want to remove the extra flags for some reason, just run the "Cataclysm Sequence Flag Remover" script included in the tools folder.
« Last Edit: February 26, 2018, 04:07:43 pm by inico »