Off screen rendering

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!
Post Reply
hella137
Posts: 1
Joined: Fri Jan 13, 2023 11:05 am

Off screen rendering

Post by hella137 »

Hi,
is it possible to do off screen rendering with Irrlicht?
I want to stream the frames to another application without the window created by Irrlicht device
If possible what would be a minimal example of this?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Off screen rendering

Post by CuteAlien »

Hm, bit tricky. Easiest solution is probably to use an invisible (hidden) window. The rendering itself should be done to a render target texture and a screenquad. Example 27.PostProcessing in svn trunk version of Irrlicht shows how to do that (https://sourceforge.net/p/irrlicht/code ... g/main.cpp) (might work a bit different in Irrlicht 1.8 as rendertarget api changed, but working with Irrlicht svn trunk is worth it anyway).
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