|Topic was automatically imported from the old Question2Answer platform.
So, making a portrait maker. User can choose between different hair, eyes, clothing, etc options. It shows up just fine in the project as a bunch of TextureRects. However, I have no clue how to save the image. I’ve scaled down the textures to fit on screen so I can’t just capture the viewport. Previously, I just created a new Image and then replaced all pixels that weren’t transparent with the pixel from the TextureRects in succession. But that was for pixel art. If I did that with the resolution of the portraits I’m going to use for this one, I would have to iterate over 8 million times per image.
What should I do to export the images from this portrait maker? Should I use something besides Godot? If so, what?
I decided to just run the code anyway and it took 1.7 seconds to save an image. I guess that’s acceptable. Maybe I’ll put up a loading animation. Still wonder if there’s a better way to do this.
exuin | 2020-12-23 18:56