Page 1 of 1

[2.1]How to take in-game photos?

Posted: Sat Apr 15, 2017 11:03 pm
by MadnessOfMadara
How to take in-game photos? I want to make a camera that takes in-game pics like in Pokemon Snap and Zelda: Breath of the Wild. Honestly all I need to know is how to access a frame buffer's data. Once I get that, I can use a codec to save the image in whatever file format I want.

Re: [2.1]How to take in-game photos?

Posted: Sun Apr 30, 2017 10:25 pm
by Kohedlo
simple call : rwindow->writeContentsToTimestampedFile(string,string);

Code: Select all

Ogre::Root::getSingletonPtr()->getRenderTarget(MapManager::getSingleton().currentRenderTargetName)->writeContentsToTimestampedFile("Screenshots/"+CfgManager::getSingleton().current_game_project+"_", ".jpg");