Community Forum

All meshs exporting with same material?

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created05.11.2019 05:24


Josh Shapiro (Unknown) 05.11.2019 05:24
Having a bizarre issue that I can't seem to solve, not even though some notepad++ editing of the i3d. When I import an FBX or exported i3d from Blender or Maya all of the mesh objects import into GE with the same material. Looking at the i3d in notepad, there are multiple materials properly assigned to their respective meshes, but after importing into GE and saving, the i3d shows just one material assigned to all meshes.

If I try to export from Blender/Maya piecemeal by exporting out just the mesh objects with material_A, material_B, material_C, and then importing them into GE separately, they all adopt the material of the first imported mesh. For example, if I import an i3d that contains a few meshes with only material_A, they come in fine with material_A on them. But when I then import an i3d with material_B, they import with only material_A, and so on. I don't seem to have a way to import anymore than one material.

Any ideas? I'm not getting any errors in the GE log upon import.


I have a thread on the forum with some snips of code: https://forum.giants-software.com/viewtopic.php?f=895&p=1203526&sid=d06f86f06e50cf3e45faca2ac6ff8501#p1203526

Dave Chuckry (CaptainD430) 24.11.2019 16:52
change the diffuse color just enough and make sure to add a texture

Bd Bdbssb (bdbssb) 01.01.2020 17:01
This is how I change the materials in notepad ++ after exporting my models, I find it easier. Giants editor basically is merging materials that have not difference except material name. It is their way of saving data, getting rid of redundancy (in my opinion). So like Dave said above either diffuse color, texture, or shaders have to be different.

So this is the material b4 edit

<Materials>
<Material diffuseColor="0.800000011920929 0.800000011920929 0.800000011920929 1" materialId="1" name="Material" specularColor="1.0 1 1.0" />
<Material diffuseColor="0.800000011920929 0.800000011920929 0.800000011920929 1" materialId="2" name="Material.001" specularColor="1.0 1 1.0" />
</Materials>

after edit

<Materials>
<Material diffuseColor="0.1 0.800000011920929 0.800000011920929 1" materialId="1" name="Material" specularColor="1.0 1 1.0" />
<Material diffuseColor="0.800000011920929 0.800000011920929 0.800000011920929 1" materialId="2" name="Material.001" specularColor="1.0 1 1.0" />
</Materials>
I simply change one of the material's diffuse color in notepad, just simpler for me. I do all my file pathing in notepad or ge as well, Ive had issue with pathing in blender.

Bd Bdbssb (bdbssb) 01.01.2020 17:15
I’ve actually merged materials in a mod with redundant materials. In rare cases I’ve found mods out there that had material differences that didn’t affect anything, so I edited them in notepad, saved, opened in ge, saved again. Ge it will merge the materials.
It’s common for a material to have different colMat parameters that aren’t being used. I’ve a actually purposely changed those unused parameters in duplicated parts to add materials so I can have a different color. If the part is simply duplicated because the material is shared, color change affects both parts.
Sorry for the extra info if you already know this, thought it may be helpful to others.

Wilson Craveiro (Flywilson) 27.11.2022 06:08
Hey guys, how are you? I'm having a problem like you, I have two objects that use the same material option on the bar in material settings in GE, I caneta find a way to separate them, any ideas? Thank you.

Yuvaraj G (yuvarajgs8) 17.12.2022 14:11
I have a simple solution for that. Make fbx files from blender (the name should be different). import to giants editor, change the image or texture file.


Note: Log in to post. Create a new account here.