Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | qubodup | |
Old Version | Published before Godot 3 was released. |
In the 3d platformer sample project (Demos and Examples from the download page), I want to edit the grass texture, which seems to be stored in an image in the texture.tex resource.
How can I extract the image as a file in PNG format to edit it and then re-import it?
On the texture saving menu (tile scene>mesh>material>diffuse>texture), png appears as an option but throws an error message when trying to save.
The demo has a tiles.xcf
(gimp) file to play with, but the saving part of the editor is either an bug on supported format list or on the resource saver / libpng.
This is what I see on the output.
decompressing bc
libpng warning: Image width is zero in IHDR
libpng warning: Image height is zero in IHDR
libpng error: Invalid IHDR data
ERROR: ResourceSaverPNG::save_image: Method/Function Failed, returning: ERR_CANT_OPEN
At: drivers\png\resource_saver_png.cpp:134
If you or somebody else can investigate more and report an issue on GH, will be welcome.
eons | 2016-11-27 20:01