Page 1 of 1

Render to file

Posted: Mon Feb 17, 2014 5:45 pm
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

Re: Render to file

Posted: Mon Feb 17, 2014 6:00 pm
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.

Re: Render to file

Posted: Tue Feb 18, 2014 1:04 am
by mongoose7
Irrlicht has a screen dump facility. Just dump each frame to file after rendering it.

Re: Render to file

Posted: Tue Feb 18, 2014 5:11 pm
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.

Re: Render to file

Posted: Tue Feb 18, 2014 5:28 pm
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).