Importing multiple models with the same textures creates individual copies. Undesired

Ok so i have several objects that i want to import into my project that all use the same texture files, about 15 different textures.

the problem is, when i import 1 object the 15 textures get imported
and then i import a second model,15 more textures get imported that are unique to that model, even though they are just copies of the same texture.

so basically it goes like this in the materials folder

Materials>object1-matbasegroundf
Materials>object2-matbasegroundf

the matbasegroundf is the same material only renamed.

hopefully i got my point across.

what im asking is how to make each model use the same material automatically without importing the models without textures and applying them manually.

bump.

Here is what i do,
while modelling, i put all the textures in unity folder, and assign these textures to my model in the modelling application. Then when i export, they all use the same textures anyways but create individual materials for each object as desired.

Thats what i dont want, I dont want individual materials for each object. Im trying to have each model reuse the same material instead of each model having its own materials

You could simply assign each model to use the same textures, but thats not the automatic method you are asking for.

The truth is that even though this fbx uses a material called “Blinn2” and this fbx uses a material called “Blinn2”, there is nothing besides a name connecting those two materials together. Perhaps someone has devised a method to doing it automatically, but that sort of information isnt stored in a typical fbx. But disabling automatic material generation and doing it yourself will eventually get the results you want, with a little bit of manual work of course

lots of it. lol. but anyway i found a tutorial on how to just bake multiple materials from a model into just one single texture map, and in doing that i also learned about how to bake shadows and lights all at the same time.

lovely bit of information.

each building i had, had at least 15 draw calls. totaling about 350 drawcalls at any given time. on MY computer that runs just fine, but for the other people that want to play my game, well that was just way too much. so i reduced it to about 35 drawcalls. even my computer went from an average of 130 fps to 190 fps. with just THAT

1 Like