Hello,
I have a little problem when i import my model in game after using de PDX Exporter : the model with none animation is right, but with animation it's... hum let's says "What's the fuck" (the parts [head, arms] are not in the good position). It looks like zombies ...
I'll restart from the beginning. There is probably an error somewhere.
So for this example, i'll try to import an actual 3D model (german unit) and to export it (just for this example).
So i went into jorodox tool to convert the .mesh into a .dae (to be able to import it into maya)
The first strange thing i've got is the black box which is arround the model.
So after that, i imported the .dae into maya and tried to immediately export the model.
When i open the .dae file, i've got tones of errors/warnings :
I just escaped this windows.
And then if i try to export my model, Maya will crash, so i have to remove the black-box to be able to export the model without a crash.
After that, i went into "hypershade", the in the tab "material" i left clicked on one of the different material.
After that i went into the pdx exporter and clicked on "add shader attr." and then "export". I've got the following message :
------------------
Error getting playbackSpeed: Forcing value of 1.0
Total vertices: 2014
Total triangles: 2807
Total drawcalls: 1
Total joints: 33
mesh_0Shape:
Mesh[0]:
Max joint influences: 4
Joints: 33
Vertices: 2014
UV sets: 1
Triangles: 2807
Shader: PdxMeshHoI4
Diffuse: D:\Bibliotheque\Documents\Paradox Interactive\PdxExporter\Test\GER_infantry_diffuse.dds
Specular: D:\Bibliotheque\Documents\Paradox Interactive\PdxExporter\Test\GER_infantry_spec.dds
pdx_exporter -s 1 -fz 1 -sm 0 -svm 0 -es 0 -cga 0 -v 0 -m 1 -a 1 -b 1 -ct 0 -lp 0 -sps 15 -f asset -bd "D:/Program Files/Steam/steamapps/common/Hearts of Iron IV/" -ep "D:/Program Files/Steam/steamapps/common/Hearts of Iron IV/hoi4.exe" -d "output/"
---------------------
So then i went into the jorodox tool to see if my mesh was correctly exported. For the "none" animation it was okay but for the other animation i've got very strange "thing" appear :
It looks like a model with the elements (head, arms...etc) which are not in the right place/position.
I changed the Mesh Shader by "PdxMeshAdvanced" and tried to select a "Normal texture" but everytime i save the mesh with the button "Save mesh changes to file" the "Normal Texture" reset to "-Other-" value.
Then i launched my game and i've got a very strange "thing" as a result :
It looks like the differents parts of the mesh are mixed or the texture is not applied correctly.
So my question is : do you know where is the problem ? Did i make a mistake somewhere ?
Thanks in advance for your answer.
Yours,
I have a little problem when i import my model in game after using de PDX Exporter : the model with none animation is right, but with animation it's... hum let's says "What's the fuck" (the parts [head, arms] are not in the good position). It looks like zombies ...
I'll restart from the beginning. There is probably an error somewhere.
So for this example, i'll try to import an actual 3D model (german unit) and to export it (just for this example).
So i went into jorodox tool to convert the .mesh into a .dae (to be able to import it into maya)


The first strange thing i've got is the black box which is arround the model.
So after that, i imported the .dae into maya and tried to immediately export the model.
When i open the .dae file, i've got tones of errors/warnings :

I just escaped this windows.
And then if i try to export my model, Maya will crash, so i have to remove the black-box to be able to export the model without a crash.

After that, i went into "hypershade", the in the tab "material" i left clicked on one of the different material.

After that i went into the pdx exporter and clicked on "add shader attr." and then "export". I've got the following message :
------------------
Error getting playbackSpeed: Forcing value of 1.0
Total vertices: 2014
Total triangles: 2807
Total drawcalls: 1
Total joints: 33
mesh_0Shape:
Mesh[0]:
Max joint influences: 4
Joints: 33
Vertices: 2014
UV sets: 1
Triangles: 2807
Shader: PdxMeshHoI4
Diffuse: D:\Bibliotheque\Documents\Paradox Interactive\PdxExporter\Test\GER_infantry_diffuse.dds
Specular: D:\Bibliotheque\Documents\Paradox Interactive\PdxExporter\Test\GER_infantry_spec.dds
pdx_exporter -s 1 -fz 1 -sm 0 -svm 0 -es 0 -cga 0 -v 0 -m 1 -a 1 -b 1 -ct 0 -lp 0 -sps 15 -f asset -bd "D:/Program Files/Steam/steamapps/common/Hearts of Iron IV/" -ep "D:/Program Files/Steam/steamapps/common/Hearts of Iron IV/hoi4.exe" -d "output/"
---------------------
So then i went into the jorodox tool to see if my mesh was correctly exported. For the "none" animation it was okay but for the other animation i've got very strange "thing" appear :

It looks like a model with the elements (head, arms...etc) which are not in the right place/position.
I changed the Mesh Shader by "PdxMeshAdvanced" and tried to select a "Normal texture" but everytime i save the mesh with the button "Save mesh changes to file" the "Normal Texture" reset to "-Other-" value.

Then i launched my game and i've got a very strange "thing" as a result :

It looks like the differents parts of the mesh are mixed or the texture is not applied correctly.
So my question is : do you know where is the problem ? Did i make a mistake somewhere ?
Thanks in advance for your answer.
Yours,