Render to file

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
RobertRR
Posts: 4
Joined: Mon Feb 17, 2014 5:33 pm

Render to file

Post by RobertRR »

Hi all,

Could anyone help me?
How to setup the OpenGl engine to render scene to file/memory ONLY.

What I would like to do:
1)setup engine
2) load model
3)set camera position from list
4)Render single frame (with complex effects) to file without showing on screen.
5) jump to 3

Thanks in advance for help
CuteAlien
Admin
Posts: 9720
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Render to file

Post by CuteAlien »

You can't avoid the graphic-card completely (OpenGL is basically an interface to access the hardware functionality of graphiccards). But you can render to a texture, then it won't show up on the screen. See example 13 for how to to set that up. That example does some more and uses the rendered texture again as material for a scene, but you can ignore that part and just look at the stuff inside the "if (rt)" part.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Render to file

Post by mongoose7 »

Irrlicht has a screen dump facility. Just dump each frame to file after rendering it.
RobertRR
Posts: 4
Joined: Mon Feb 17, 2014 5:33 pm

Re: Render to file

Post by RobertRR »

Thanks for yours contribution in my problem.
Is there any way to avoid displaying the rendered image on screen. I would like to render it only to file. Like in 3dStudio when you render Animation it is rendered by GPU only to memory.
CuteAlien
Admin
Posts: 9720
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Render to file

Post by CuteAlien »

Yes, render to texture writes only into a texture. Like I wrote above it won't show up on screen (the example just has a second draw call to make it show up - just leave that one out).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply