-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using sprite as normalmap change sprite import options #33709
Comments
Normal maps make use of RGTC compression to save memory and improve quality, so Godot is likely turning on VRAM compression automatically if you set a texture to be used as normal map. |
This is the same issue as the very first bug report I opened for Godot: #15920 |
This does not happen if you have "Detect 3D" import setting disabled. So it's likely intended. |
Is there possibly a way to detect that the texture is being used for albedo, and un-set the normal mapping compression? I found some docs here that suggest albedo textures use SRGB, perhaps SRGB being enabled should disable RGTC. I tried adding |
What exactly is the intention here to change the icon settings and autoreimport? Especially in 2D that seems very counter productive. See my issue. |
Here is another simple replication of this issue: https://github.com/rakkarage/NewTileMapTest
If you change import settings back to 2d and do this all over it works fine? But this does not seem intended? Auto detect should auto detect? Before:
After:
|
As I said above, the fact that import options are automatically changed for normal maps is expected. What shouldn't happen is VRAM compression being forced for small textures (<= 256×256 by default), but this is something that needs to be implemented separately. I attempted this a while ago, but it was rejected as it needs to be done in a cleaner, user-adjustable manner. |
my code does not use Normal Maps... just a sprite and a shader yet the import options are changed, excuse my ignorance |
|
Using filter_linear or filter_nearest (maybe anything) (sampler2D being passed into shader with a hint) also seem to cause this unwanted and unneeded change of import settings causing the TileMap and TileSet to display wrong in this example. |
This is now made clear by #61497 (#62004 in
|
Godot version:
3.2 beta 1
OS/device including version:
Ubuntu 19.10
Issue description:
It is really strange, that using sprite as normalmap in spatialmaterial, change import settings in
icon.png.import
fromto:
Steps to reproduce:
Minimal reproduction project:
Tanks.zip
The text was updated successfully, but these errors were encountered: