Solved [1.12] How to save with an extension other than .png? Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
ksr921110
Gnoblar
Posts: 16
Joined: Mon Jun 17, 2019 7:45 am
x 1

Solved [1.12] How to save with an extension other than .png?

Post by ksr921110 »

OS window 10
Version 1.12
RenderSystem d3d9

Hello
We have even succeeded in storing images as .png using RenderWindow::writecontentsToFile.
But the rate is too slow to store every frame, so I want to change the extension to .bmp or .jpg; other extensions that are not png fail.
It was expected to be a problem with the pixel format, and it changed several times, but it failed.
Is there a solution?
Last edited by ksr921110 on Fri Aug 23, 2019 10:37 am, edited 1 time in total.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: [1.12] How to save with an extension other than .png?

Post by paroj »

use Codec_FreeImage instead of Codec_STBI or patch the latter:
https://github.com/OGRECave/ogre/blob/m ... c.cpp#L112
ksr921110
Gnoblar
Posts: 16
Joined: Mon Jun 17, 2019 7:45 am
x 1

Re: [1.12] How to save with an extension other than .png?

Post by ksr921110 »

@
Thank you for your kind reply.
have a good day
Post Reply