I need functionality to add camera to the world and to render what it sees onto a texture that I can use later. Something like rear view mirror or portals. The only thing I found was RenderWorld call on 3DEngine class, but calling it directly either break the rendering of the game( triggers asserts when in editor mode, or some of the rendering is broken), or just nothing is rendered in my texture, which is set as render target. Is there easier way or I’m just sending wrong parameters to RenderWorld call ?
The parameters passed to RenderWorld are taken from QModelViewport.cpp where RenderWorld is called.