spimort / TerraBrush

MIT License
645 stars 23 forks source link

Black terrain when adding textures #98

Closed HEofOttoman closed 3 months ago

HEofOttoman commented 4 months ago

image I was just trying to give water noise textures when this happened. Removing the noise textures didn't help, but I had to remove and re-add every texture I had. Godot 4.2.2 Terrabrush 0.6.1 Edit: The cause is having 2 textures at once, not water

HEofOttoman commented 4 months ago

upon further testing, when I tried to add normal textures to the water again, it worked. But when I added new textures, the black terrain returned, meaning that something is broken, or I did something wrong

spimort commented 4 months ago

Hey @HEofOttoman !

This is due to the fact that not all of your textures share the same format (this is required by the shader).

The thing you should check is the compress mode and the mipmap generation. Right now you should have an error in the console saying you this.

Also, as soon as you put for example a normal texture, make sure you provide one for all the texture sets.

I talk about this in this video (at about this time) : https://youtu.be/n5WeAqeea1c?t=271

Let me know if it helps 🙂

HEofOttoman commented 4 months ago

oh ok thank you. Does it have to be the same file format (ie. all .png or .jpg) because image this happened after I fixed all the settings

HEofOttoman commented 4 months ago

Removing the other materials didn't remove the issue either, image

HEofOttoman commented 4 months ago

reloading the scene only removed the black parts, but turned everything grainy. image

HEofOttoman commented 4 months ago

I tried to change the compression, but Godot wouldn't let me change it at all

Schwagsone commented 4 months ago

Join discord and can help quicker if you like. Textures need to be of same file and look like this to my knowledge. image https://discord.com/channels/654161562927366154/1187648369464713247

HEofOttoman commented 4 months ago

Thank you for helping. However, after closing godot and trying again 15 hours later, the issue had disappeared, and all the textures, upon being re-added were working again, even though some of the files have different formats.

spimort commented 4 months ago

Alright, cool! So, I can close this issue for now 🙂? You can always open another one if needed later!

HEofOttoman commented 3 months ago

Thank you very much. I will, but one more question image is there a way to fix these artifacts? never mind it's because of snow.

HEofOttoman commented 3 months ago

Once again, thank you very much. This is a very good plugin.

spimort commented 3 months ago

Sounds good, I'm glad you like it! 🙂