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?
Solved [1.12] How to save with an extension other than .png? Topic is solved
-
- 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?
Last edited by ksr921110 on Fri Aug 23, 2019 10:37 am, edited 1 time in total.
-
- 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?
use Codec_FreeImage instead of Codec_STBI or patch the latter:
https://github.com/OGRECave/ogre/blob/m ... c.cpp#L112
https://github.com/OGRECave/ogre/blob/m ... c.cpp#L112
-
- 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?
@
Thank you for your kind reply.
have a good day
Thank you for your kind reply.
have a good day