Blender export to Trainz.

jd_james

Member
Hey everyone. Not sure if this is the correct place to ask this question. But I am trying to exprt a train car model from Blender to an IM file. Any time I attempt to do this, it spits back this message.

Material Material.001 on object 2.001 is missing a valid material extension. This may cause issues in games earlier than TANE. A list of valid legacy material extensions is available here: https://online.ts2009.com/mediaWiki/index.php/Material_Types
Material RUST on object 2.001 is missing a valid material extension. This may cause issues in games earlier than TANE. A list of valid legacy material extensions is available here: https://online.ts2009.com/mediaWiki/index.php/Material_Types

I watched this video, but everything I try and do from labeling to renaiming files won't work!
https://www.youtube.com/watch?v=qTXgaNOETF0

What am I doing wrong?
 
"Material.001" or "RUST" are not valid material names, Trainz does not recognize them, and marks them as "missing" .
It should be "Material.001.m.onetex" or "RUST.m.onetex" if you want to export to IM. (Generally avoid capitals )
 
After doing some research, it seems I am supose to use the M.tbumpenv lable for each texture and follow the node example provided here. https://online.ts2009.com/mediaWiki/index.php/M.tbumpenv

But now when I export the model to IM, I get these warnings...

- <kuid:126743:1> VE82: Individual mesh files are not supported for traincar assets. Upgrade 'trailer.im' to a .lm file.
- <kuid:126743:1> VE37: The texture 'multilevel_d.png' is not a power of 2, please resize it.
- <kuid:126743:1> VE37: The texture 'multilevel_n.png' is not a power of 2, please resize it.
- <kuid:126743:1> VE37: The texture 'rust.png' is not a power of 2, please resize it.
- <kuid:126743:1> VE37: The texture 'rustnormal.png' is not a power of 2, please resize it.
 
Last edited:
VE82 : You need three or four lod levels, for build 4.6 also an LM.txt file indicating what they are and where they are is mandatory.
VE37 : The textures should be 512x512 , 1024x1024, 1024x512, etc. ( power of 2) ... this indicating yours are not
 
Ok so I made a LM file. I made 4 copies of the IM file and label it as mesh0.im, mesh1.im, mesh2.im, and mesh3.im

I now get a new set of errors now...

- <kuid:126743:1> VE109: The low-detail meshes total more than 500 polygons. This may have a negative impact on performance: 0: 5150, 1: 5150, 2: 5150, 3: 5150
- <kuid:126743:1> VE111: The meshes in LOD level 3 must total at least 20% fewer polygons than the next higher LOD: 0: 5150, 1: 5150, 2: 5150, 3: 5150
- <kuid:126743:1> VE111: The meshes in LOD level 2 must total at least 20% fewer polygons than the next higher LOD: 0: 5150, 1: 5150, 2: 5150, 3: 5150
- <kuid:126743:1> VE111: The meshes in LOD level 1 must total at least 20% fewer polygons than the next higher LOD: 0: 5150, 1: 5150, 2: 5150, 3: 5150
 
You're doing well ...
But the meshes should have fewer and fewer polys.
You must simplify them significantly let's say 5000 Lod0 , 2500 Lod1 , 1000 Lod2 and 400 Lod3 for example...
The error VE111 that marks you is that they all have the same weight: 5150 polys.
Don't forget that the last one (400) probably isn't even visible...
 
Back
Top