SpaceEngine

SpaceEngine

Expand your Universe
Create and download catalogs, models, textures, planets, space ships, and more! Click the link below to read our workshop guidelines and learn how you can make an add-on!
Learn More
Not all Materials are recognized when adding a custom spacecraft?
One of my biggest issues with making ship addons is that for some reason no matter what i do, space engine doesn't recognize every material that the model is supposed to have. For instance, with my U.S.S Vengeance model that i ported, its missing its windows, this is because when i try to include it, space engine only puts the models base texture on it instead, and even when i add the material in the sml file, nothing changes. To me the game only seems the notice the materials that it happens to notice, being only up to 3 through testing.

This to me doesn't make sense since i know space engine allows you to use multiple materials on a single ship model, but no matter if i add the materials in the sml file, name the material file pictures names the same as in blender, nothing works, after you refresh the game after loading the game the first time, the materials it recognizes is what you get, and you can;t seem to change it.

I've been stumped for months on this and have found no solution no matter where i looked on the space engine website or on other sites. I can't figure out what i'm doing wrong. Is it how my model is layed out in blender? Are my export settings incorrect? Is there a specific way that i'm supposed to layout the materials in the sml files? Am i not supposed to use blender at all? I'm not sure at the moment.

This issue is the reason why the star trek ships i've added have no windows, decals, and other features that are supposed to go with them, but couldn't add because it seemed like if i wanted to do that, i'd have to somehow combine all the textures into one (which wouldn't be possible without their being either an obvious drop in texture quality or many noticeable inconsistencies).

If anyone knows some information or could perhaps give a detailed guide on how i can fix this, I would greatly appreciated it!
< >
Showing 1-4 of 4 comments
HarbingerDawn  [developer] 15 12 Jul @ 3:36pm 
Check the ship's cfg file, that's where materials are actually assigned to ships. The number and order of materials there must match what is required by the ship model.

I remember having a similar problem a few times in the past, but it's been so long that I forgot exactly what the cause was and how to fix it.
So i checked out one of my ships cfg file, and it turns out the issue does lie in the list of materials

The cfg file i looked at is the Uss Synergy (one of my custom star trek ships), which has 7 materials in total, though while the seven materials are listed on there, for some reason they are all named after the first material on the list which is in this case; "synergy_body". If you were to look at my blender file of it, you would see that the model name and material name "synergy_body" is at the top of the list of meshes.

This means that for some reason when the model is first loaded in the game, space engine will list the correct amount of materials the model has, but will be named to the same name as the first materials name.


From this, what i'd imagine you would do then is go to the cfg file and rename the all the materials except the first one.

From this:

Material "synergy_body"
Material "synergy_body"
Material "synergy_body"
Material "synergy_body"
Material "synergy_body"
Material "synergy_body"
Material "synergy_body"


To this (based on what order the meshes and materials are in on blender);

Material "synergy_body"
Material "synergy_disc"
Material "synergy_disc2"
Material "synergy_hull"
Material "synergy_nacelle1"
Material "synergy_nacelle2"
Material "synergy_saucer"


I'll go ahead and test with a new ship to make sure it works, and if it does, mystery solved :)
Update: It worked! Mystery solved.

Thank you so much for your help! :)
HarbingerDawn  [developer] 15 12 Jul @ 11:10pm 
Great, glad I could help :)
< >
Showing 1-4 of 4 comments
Per page: 1530 50