• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

WoW to Sc2 made nice, fast and easy: Research

Status
Not open for further replies.
I've been working lately on expanding my NeoDex toolset into Sc2. I started these project as NeoDex's new direction. I looked into many tutorials and I realised that, in avarage, getting a WoW model with decent quality into Sc2 can take a long time. Specialy if the model you want has a LOT of textures.

For this purpose I looked into the most time consuming and boring parts of the whole process. Here's how you convert them as of now:

1º You extract your model's .m2, .skin and textures from WoW. (2 mins max)
2º You create the diffuse, normal, specular and emissive maps. (3 mins per texture) (10 textures = 30 mins! without stopping)
3º You import the model using ufoz & Nintoxicated's m2 importer. (1 min)
4º You must rescale and reset up the model and its materials (10mins to 1 hour)
5º You must redeclare each of the sequences for Sc2. (5 minutes to some hours)
6º you must create the sc2 helper objects (10 minutes at max)
7º Preview and change some values with live update (20 mins to many hours of refining).

Problems with the current workflow:
1º Imported models are buggy and hard to edit.
2º The importer does not translate WoW materials and sequences into Sc2's.
3º There's no automatic way to get the diffuse, normal and specular components from a texture. (There's a big bad conception that the diffuse and normal WoW texture are the same, the first only describes colors, the second one has shading).
4º too much time is wasted recreating things that the importer can handle.
5º No easy way to integrate WoW and Wc3 models for major edits.
6º No current way to convert ribbon/particle emitters.

Solutions:
1º Improve the importer, make it faster and fix the big problems.
2º Integrate the importer into NeoDex and Sc2ArtTools.
3º Create a photoshop script to take the diffuse, normal and specular out of each texture as fast as possible.

Artefacts:
M2 Importer:
attachment.php


Now how an scene imported correctly looks like just as the importer finishes (no extra touches):
attachment.php


The Photoshop actions:
attachment.php


Now a test on a WoW texture:
attachment.php


After running Make Diffuse:

attachment.php


(as you can see, a lot less shading)

After running Make Normal:
attachment.php

Quite decent.

After running Make Specular:
attachment.php


Now let's do a simple test on a complex model:
attachment.php


The model has 13 textures! Omg who could convert that? No problem there's batch operation in photoshop.

We organize our files in the next way:
attachment.php


Our m2 and skin are on the main folder, all the textures as .tga are in the OriginalTextures folder. Now we need to pass 3 batches to the original textures in photoshop, to create the maps.


First I pass the Diffuse Batch using MakeDiffuse2 (these one generates .dds unlike MakeDiffuse):
attachment.php


I used my sourced folder, the originalTextures and my destination folder as my main main folder.

After 1 min, I have the diffuse map of each texture:
attachment.php


Now I'll repeat the batch for normal map and specular map:
attachment.php


Done, this should have taken me about 10 minutes.

Now I'll Import the model:
attachment.php


After I have imported it, it looks like this:
attachment.php


Now, without any changes, I'm going to preview it, but I'll do it with the liveUpdater so I can tweak the material properties.

I hit LiveUpdate and then Update All now:
attachment.php


Now this is how it should look in-game:
attachment.php


Normals:
attachment.php


Close look:
attachment.php


Quite close, but it may need some tweakings. For instance, some materials may need more specularity so you must change the specular multiplier. The wood planks, need a more defined Normal map, so it must be done by hand to scale off a bit more. However, it's very close to a perfect export and it only took 15 minutes!

Now some other tests, the SpellBreaker made using WoW's BF Guard and some meshes and textures from wc3:

It took me 1 hour and half to make, but works like a charm:
attachment.php


on night:
attachment.php


from the back:
attachment.php


Things I did after importing: I created the emissive maps by hand, added the SPbreaker mask from wc3, added teamcolors, added Sc2 Helpers, tuned a bit the animations, added attachments, made the sword use an envio mask and added some particles.

I expect to release the tools in about 1 week. I still have a lot of work to do:
  • Fix some little importing issues.
  • Add neodex support, in order to edit the models using wc3 tools.
  • Add an option for the NeoDex Importer to import the model for sc2 art tools.
 

Attachments

  • Diffuse.jpg
    Diffuse.jpg
    187.5 KB · Views: 1,058
  • Importer.jpg
    Importer.jpg
    62.2 KB · Views: 1,142
  • Original.jpg
    Original.jpg
    175 KB · Views: 1,785
  • Specular.jpg
    Specular.jpg
    56.5 KB · Views: 1,079
  • Actions.jpg
    Actions.jpg
    92.2 KB · Views: 1,072
  • ImportedScene.jpg
    ImportedScene.jpg
    273.2 KB · Views: 1,131
  • Normal.jpg
    Normal.jpg
    197 KB · Views: 1,064
  • Test1.jpg
    Test1.jpg
    168.6 KB · Views: 1,112
  • Test5.jpg
    Test5.jpg
    320.3 KB · Views: 1,045
  • Test6.jpg
    Test6.jpg
    158.8 KB · Views: 1,052
  • Test4.jpg
    Test4.jpg
    93.7 KB · Views: 1,112
  • Test3.jpg
    Test3.jpg
    137.5 KB · Views: 1,037
  • Test2.jpg
    Test2.jpg
    27.8 KB · Views: 1,026
  • Test7.jpg
    Test7.jpg
    265.3 KB · Views: 1,098
  • Test8.jpg
    Test8.jpg
    121 KB · Views: 1,047
  • Test9.jpg
    Test9.jpg
    170.8 KB · Views: 1,023
  • Test10.jpg
    Test10.jpg
    184.4 KB · Views: 1,015
  • Test11.jpg
    Test11.jpg
    134.1 KB · Views: 1,016
  • SPBreaker1.jpg
    SPBreaker1.jpg
    45.7 KB · Views: 1,009
  • SPBreaker2.jpg
    SPBreaker2.jpg
    65.8 KB · Views: 1,056
  • SPBreaker3.jpg
    SPBreaker3.jpg
    133.3 KB · Views: 1,127
Okey to anyone interested in helping me test up the WoW importing script here it is.

The script was originaly made by Ufoz, later improved by NiNToxicated and now by me.

Feutures:
  • Rescales and sets the model correctly for Sc2 Art Tools
  • Can import Sc2 materials
  • Can import Attachments
  • Can import Particle Emitters
  • Cleaner Scene, better settings
 

Attachments

  • m2_import_v0.4.ms
    92 KB · Views: 65
Status
Not open for further replies.
Top