capture picture in irrlicht

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Kairu
Posts: 18
Joined: Mon Sep 08, 2008 11:03 am

capture picture in irrlicht

Post by Kairu »

hi everyone

i am making sort of 3d graph, in irrlichti may have post earlier about the meshing and i hv solve that. now i want to export the scene to an external picture (jpg,gif) because i need to print it out for reporting. Is there anyway to do it?

thanks alot
abhishekdey1985
Posts: 102
Joined: Sat Jan 17, 2009 4:33 am
Location: Pune
Contact:

Post by abhishekdey1985 »

You must go through the Last tutorial of Quake 3 Map Shader. There's a whole class declared for that purpose. I guess there's no provision of saving screen shot as GIF.

Search for this line:

Code: Select all

video::IImage* image = Device->getVideoDriver()->createScreenShot();
I work on "The Best Real-Time 3D Engine"
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, after that call writeImageToFile on one of our image writers, jpg, png, bmp, pcx, ppm, and maybe even more are supported.
Kairu
Posts: 18
Joined: Mon Sep 08, 2008 11:03 am

Post by Kairu »

thanks and sorry for wasting post since i haven't go through all the tutorial
thoroughly
Post Reply