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: 9
Joined: Mon Jun 17, 2019 7:45 am

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

Post by ksr921110 » Thu Aug 22, 2019 11:55 am

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.
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 853
Joined: Sun Mar 30, 2014 2:51 pm
x 168
Contact:

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

Post by paroj » Thu Aug 22, 2019 3:23 pm

use Codec_FreeImage instead of Codec_STBI or patch the latter:
https://github.com/OGRECave/ogre/blob/m ... c.cpp#L112
1 x

ksr921110
Gnoblar
Posts: 9
Joined: Mon Jun 17, 2019 7:45 am

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

Post by ksr921110 » Fri Aug 23, 2019 2:40 am

@
Thank you for your kind reply.
have a good day
0 x

Post Reply