spimort / TerraBrush

MIT License
645 stars 23 forks source link

Error when having more than 4 textures #114

Closed EmineBS closed 2 months ago

EmineBS commented 3 months ago

When I add more than 4 textures I get this error and the map becomes invisible, I also found that a new empty Splatmap is created and added to the splatmaps array and when I delete it the main map appears again and everything works fine, so how to add more textures without facing this problem again ? Capture

spimort commented 3 months ago

Hey @EmineBS !

In your fifth textureset, make sure you provide the same kind of textures you do for the others. Meaning that you need to provide at least the albedo. If in the others you provided a normal map, you need to provide one as well. If you provided a roughness texture, you need to provide one as well for the new one. And so on.

Can you confirm me everything as been set this way? 🙂

EmineBS commented 3 months ago

Yes I placed all the textures correctly, even when I try to assign the same texture from textureSet 4 to textureSet 5, the error appears again and a new empty Splatmap is added and I can't delete it only when I delete textureSet 5.

spimort commented 3 months ago

Alright, would you be able to share the project with me? I could check what is happening 🙂

spimort commented 3 months ago

Any news on that @EmineBS ?

Schwagsone commented 3 months ago

image Check the settings on all of them. Godot is weird.

EmineBS commented 2 months ago

Solved! Yes, all imported textures must be on the same import settings, even if there is any small thing different from others, this error will appear, to avoid problems when importing textures, go to Project Settings -> Import Defaults -> Importer: Texture2D and set all parameters like this:

image

spimort commented 2 months ago

Alright thanks @EmineBS for the info about the defaults 🙂