0 votes

I want pixel art looking sprite3d so i want textures to be loseless and unfiltered, how do i set that from gdscript?

If i use load/preload the result is almost always filtered.

Another thing, in the editor i set my default setting for importing images but when i want to import an image there are always godot's default settings and i have to manually load my default settings, shouldn't be automatic?

EDIT:

I'm talking about the import dock settings.

About the code I have investigated a little and the problem might be that in the .import folder there are 3 files for the same image, the s3tc.stex, etc2.stex and .stex, the .stex is the one with my settings while the other 2 have default settings, in fact only if from code i load the .stex instead instead of the .png(or the s3tc.tex or the etc2.tex) i get the result i want, otherwise the result is filtered, but i don't want to deal with any of those stex files that have really long and complex names! I want to use the .png filenames in the code.

If i disable s3tc and etc2 in the settings and delete those files godot sometimes doesn't debug because it says it needs them and when i try to use not yet imported files godot says they aren't resources and doesn't open them.

I'm on windows 10 64bits and godot 3.0.2 but i'm pretty sure i had the import dock problem on 3.0.0 too.

in Engine by (198 points)
edited by

1 Answer

+2 votes
Best answer

This problem has been solved already: https://godotengine.org/qa/24044/disabling-filter-for-non-blurry-pixel-art-not-working-in-3-0?show=24044#q24044

However, on the question specifically, I would be curious myself to know how to set import settings, especially when images are generated by tools... but I'm not sure if that was your real intention.

by (27,902 points)
selected by

I'm talking about the import dock settings.

About the code I have investigated a little and the problem might be that in the .import folder there are 3 files for the same image, the s3tc.stex, etc2.stex and .stex, the .stex is the one with my settings while the other 2 have default settings, in fact only if from code i load the .stex instead instead of the .png(or the s3tc.tex or the etc2.tex) i get the result i want, otherwise the result is filtered, but i don't want to deal with any of those stex files that have really long and complex names! I want to use the .png filenames in the code.

If i disable s3tc and etc2 in the settings and delete those files godot sometimes doesn't debug because it says it needs them and when i try to use not yet imported files godot says they aren't resources and doesn't open them.

I don't think you should be loading the .stex files manually, these are used depending on which platform you are exporting your game for.

For filtering, it's a common option located in the .import file, which you can either set in the import dock, or make it the default preset for texture resources as I linked in my answer.
Note that making this option the default will not retroactively update all textures you already imported, so you will either need to clear their import files to trigger a reimport with defaults, or set the options yourself.

If after you do this you still have filtered images, then it's a bug.

It's probably a bug because my preset settings show neither with old textures nor with new ones, i always have to choose the preset option to set the options i want.

In the .import files of the files with problems there are usually references first to .stex with godot settings and then to the one with my settings, the problem is probably that godot considers the first one that usually has godot settings.

I guess i could edit all the .import files but i would like a more streamlined and automatic process.

Thanks for the answer :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.