Export texure2D as a png file

I render a offscreen viewport to a texture2D. Now I would like to somehow save this texture to a file, but I have no clue how. Preferred to a png file. If that is impossible would JME’s BinaryExporter work for just a Texture? I see that Texture implements Savable, so it should work somehow…?
Any help would be appreciated.

5 seconds googled and found that :smirk:

2 Likes

Thanks, seems like that’s what I need. Googling and searching this forum gave me nothing useful, so thanks for that link :wink: