Hello
@Joror , and
@Skyllio and thank you for this mod.
I am currently trying to mod in a new mesh for the game March of the Eagles. Apparently it's closest to CK2 or EU3 DW.
I got the model I wanted, saved it from blender, opened it in Jorodox, converted it to a .mesh, and then copied over some square .dds images to apply the diffuse, normal and specular textures, as seen here:
I didn't specify a normal map because it doesn't seem to make a difference. I also used the PdxMeshStandard for the shader. Then I went ahead and clicked "Save mesh changes to file".
I copied the mesh into the game and it appears on the map, but it's completely black and has no textures:
I changed the PdxShaders from the list, but anything else I select just makes the unit completely invisible. Then I went into the game's gfx/fx/pdxlua.fx, and I found a list of techniques, including one of them called "technique PdxMeshStandardSkinned". The other one was the "PdxMeshStandard" and a third one which when used also made the units inviisble.
I changed PDX shader to "other" and I set it to use "technique PdxMeshStandardSkinned". In game, the units actually somewhat show up, but they're simply a ghostly shadowy outline of where the APC should be. Also, unlike with PdxmeshStandard, the game doesn't ignore the animations, so I can see the black shadows "walking" around which is pretty funny.
Here's the code from the PdxMeshStandardSkinned:
technique PdxMeshStandardSkinned
{
pass p0
{
MipMapLodBias[0] = -1;
CullMode = CCW;
AlphaBlendEnable = False;
AlphaTestEnable = False;
VertexShader = compile vs_3_0 VertexPdxMeshStandardSkinned();
PixelShader = compile ps_3_0 PixelPdxMeshStandard();
}
}
Is there any way for me to export my mesh to work with March of the Eagles without it being completely pitch black??
Thank you so much!