You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
Is it possible to print one of my render to textures? I'm trying to work out post processing issue's and it would be really helpful If I could maybe do something similar to Irrlicht's print screen function.
irr::video::IVideoDriver* const driver = device->getVideoDriver();
//get image from the last rendered frame
irr::video::IImage* const rt = driver->createScreenShot();
if (rt) //should always be true, but you never know. ;)
{
//construct a filename, consisting of local time and file extension
irr::c8 filename[64];
snprintf(filename, 64, "screenshot_%u.bmp", device->getTimer()->getRealTime());
//write screen shot to file
if (!driver->writeImageToFile(rt, filename))
device->getLogger()->log(L"Failed to take screenshot.", irr::ELL_WARNING);
//Don't forget to drop image since we don't need it anymore.
rt->drop();
}
Like the above but have it use an already made render target texture so I can see in one steps or the post processing an issue is occurring.