Friday, November 15, 2019

Some bugfixing done on my import script

Also started the export script

Here is a look at the new shaman model:



Download updates from my script on my github:

My Github Maxscripts

Saturday, November 9, 2019

Griffon Studios Warcraft 3 Reforged Model importer

Since the dawn of creation of Warcraft 3 Reforged, I've been looking into the new 3D Model formats.

This new(ish) format is very comparable to the old mdx format... however

If you want to import these models, well, now you can.
The import script can be downloaded here:

Download Warcraft 3 Reforged Import Script for Max

Unzip the archive into your startup folder of 3D Studio Max, currently every version (2016+) has been tested.

The tool installs some plugins for Max:

In the create pane, select the helpers, there you will find 6 new plugins:


Opening the Material editor, you will find the Material Plugin:


During the import, the script will use these plugins. If they are not installed, you will not be able to use the importer.

To run the importer, first select the Asset Root folder, this is used to automatically map the correct textures, if not set correctly, no bitmap will be imported

Navigate to the utility pane, and select MaxScript to open the script


Once the path is set, press the import button and select the model you want to import:

Some layers are hidden, especially when you decided to import all the LOD's. To view them, open the Layer Explorer and hide/unhide what you need:



Open my Animation Properties window to view the animation sequences, click on any of them to change the timeline and check out the animation. This can be found in the Macro scripts, if you don't find it, check the Griffon Studios folder you unpacked earlier and run the GriffonStudios_AnimationProperties.ms script again and select the macro.


Now I know this is a importer on beta models, that are not ready to be released yet, neither is this importer fail safe ofcourse
But for studying models this should be good enough

A quick way to look through the whole list of models is to use my  3D Model Viewer, this can be downloaded here:

3D Model Viewer

Open up the viewer, select the root path of the files you extracted and feast your eyes


Next on my todo list is to create a custom exporter for the new mdx file format



Wednesday, July 3, 2019

Some usefull Max scripts

function CleanUpLayers=
    (
        /*
            set the (default) layer as the current one and delete all empty layers
        */

        local nLayers = LayerManager.Count
        local defaultLayer = LayerManager.GetLayer(0)
        defaultLayer.current = true

        local layers = #()
        for i= 1 to nLayers do append layers (LayerManager.GetLayer(i-1))

        for layer in layers do
        (
            layer.nodes &nodes
           
            if ( layer.name != "0" and nodes.count == 0 ) then
                LayerManager.deleteLayerByName layer.name
        ) 
    )

Monday, July 2, 2018

Changes to my 3D Model Viewer v3.2

Support for Overwatch models, raw models and owmdl files

both file types can be exported via a tool called datatool.exe which can be found here: Overwatch-Model-Thread-v3


Once you exported a map or any model, you can view the list of unique models in my viewer, as shown below:

Exporting the model to obj also exports an mdl file that contains the mapping to the textures. The obj file can be viewed via numerous of tools, like Autodesk FBX Review viewer.


Support for Gangstar New Orleans

Funny open world game from GameLoft, Gangstar: New Orleans.


The new model viewer can be downloaded here:


NOTE: .NET Framework 4.7 required!! (Download .NET Framework 4.7)














Monday, September 25, 2017

Comparison between Tracer Model from OW and Tracer Model from HotS


Left (Green) is the Tracer model from Overwatch, this is the LOD 2 showing.
LOD 4 and 8 are obviously not highly detailed enough.

Right (gray) is the Tracer model from Heroes Of The Storm. Very polished if I may add!



When overlapping both ( when imported they were not the same scale ) so it is not a 100% match,
but as you may see, the proportions are identical.

The unwrapping on the other hand look like this



First Tracer from Overwatch, the face and body share the same uv set, but the hair and the glasses are separate.

The HotS one is a traditional unwrap, with the right upper corner empty for the ult skin mesh parts, and it also includes the unwrap of the weapon.


Overall quit comparable but not compatible.

T.

Wednesday, September 13, 2017

The original m2 import script for 3D Studio MAX nolonger supports the new models from Legion.
So, after a long weekend of brain breaking, I updated the existing script (written by Nintoxicated) to work with these new models.

There is a catch tho... there is no longer any support to import materials. So you will need to do this manually.

You can download it here from my assets on SC2Mapster: Download m2 import script

Enjoy!
The original m2 import script for 3D Studio MAX nolonger supports the new models from Legion.
So, after a long weekend, I figured o

Thursday, May 25, 2017

When I reverse engineer models, I don't think too much about abnormalities. Normally it is just the vertices, indices or faces, normals and texture coordinates.
These are the primary things I look for and apply them to a mesh in 3D Studio Max.
For long I used the following method to apply texture coordinates:

local theMesh = mesh vertices:vertex_list \
name:meshName \
faces:faces_list \
vnorms:normal_list \
tverts:textcoord_list

buildTVFaces theMesh false

for f = 1 to faces_list.count do
setTVFace theMesh f faces_list[f]

update theMesh

This was my method to make it work.
Recently I stumbled on a more advanced setup, that of Overwatch models. They have multiple UVW map channels. So I need to apply this to the imported model too.
At first it looked like impossible job...

After reading, like, a LOT of the documentation and searching the internet, which of course had no real solution and certainly no example, I had to figure this out by myself.

So here is my solution:


meshop.setMapSupport theMesh 1 true
for i=1 to textcoord_list[1].count do
meshop.setMapVert theMesh 1 i textcoord_list[1][i]
meshop.buildMapFaces theMesh 1
update theMesh

if(textcoord_list.count>1) then
(
Format "Applying secondary uv texture coordinates mapping"

meshop.setNumMaps theMesh 3
meshop.setMapSupport theMesh 2 true
for i=1 to textcoord_list[2].count do
meshop.setMapVert theMesh 2 i textcoord_list[2][i]

meshop.buildMapFaces theMesh 2
update theMesh

)


For each additional channel, up to 99, you need to set the number of supported maps explicitly.

How can you see these mappings?
Select the model and add the "Unwrap UVW" modifier and press "Edit..." for the initial texture coordinates.
Change the channel to 2 and press the button "Reset UVWs", when prompted, press Yes. And press the "Edit..." button again.
This will display the second applied texture coordinates as shown in the picture below.

Secondary texture coordinates are usually used as an emission map or light map.


T.





Thursday, May 18, 2017

Overwatch Import Tools v1.0 for Autodesk 3D Studio Max.

Supports
- Overwatch model import (*.00C)
- Overwatch Animation import (*.006) 

The animations are split up into different categories or types. 
The Overtool does an excellent job separating them into different folders.
Currently there is only support for animation category 160. Other types may work, but are usually layered animations and are currently not supported.

The Overwatch Import Tool v1.0 is a tool to be used as is and I cannot be held responsible for any other issues that may or may not occur.

You need the following:
Overtool (for extracting files from the game archive)
Overwatch Import Tools (my tool :) !)

Install the Tools (.mzp file) by going to Scripting -> Run Script and select the file.
This will install a menu item "Overwatch Import Tools"



Tutorial for this is here:

New model viewer can be downloaded here:

3D Model Viewer v3.0

Supported file types

  • .obj
  • Orc Must Die .model
  • Cocos 3D .c3b
  • Ninja Ripper .rip
  • Darksider .dcm
  • World of Warcraft World Models .wmo
  • World of Warcraft Models .m2
  • Heroes of the Storm .m3
  • Starcraft II .m3
  • Diablo III .app
  • Disney Infinity .ibuf
  • Silver .as

Support folder types, this looks through a selected folder and builds up a whole treeview with supported files. Except Heroes of Newerth, there you only  need to select the actual game folder. For everything else, you will need to extract it from game (like ninja ripper) or from the game archives
  • Heroes of the Storm
  • Diablo III
  • Heroes of Newerth
  • Starcraft II
  • Cocos 3D
  • World of Warcraft
  • Strife
Currently working on the latest format for Overwatch.

Enjoy

Some bugfixing done on my import script Also started the export script Here is a look at the new shaman model: Download updates fr...