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!
I recalled I read somewhere in the forum that the Render Target has the limit of the screen size for DirectX drivers as it is the size of the backbuffer.
I also remembered Hybrid mentioning that the limit no longer exists in DirectX 9, just that nobody in the Irrlicht (DirextX) team remove the code for enforcing the limit.
I need to create a render target of arbitrary size, and thus I tried to fiddle around with the source code, and remove the limit set in setRenderTarget. It does not cause an error now if I set a render target that is larger than the screen size, but the image appears on the render target texture seems to be incomplete, i.e. not the full image that I expect, it's like cutting halfway.
Any idea about this? I could use some pointers on where should I modify to allow creating render target of arbitrary size using DirectX 9 driver.
No, there is no limit under OpenGL (due to FBO support), but for DX only a patch exists at the moment. I expect that the patch will be added for 1.5, though.
Hybrid, I am using DirectX 9 driver at the moment. Can you let me know where can I find this patch (or which reivision in the Irrlicht SVN where this was fixed)? I might just replace my current source with the changes and recompile it.
Just wondering, does this apply to DirectX 8 driver as well?
The patch can be found on the SourceForge patch tracker page for Irrlicht http://sourceforge.net/tracker/?group_id=74339
This only fixes DX9, I guess that a similar patch would work for DX8.
Thanks! Found the RenderTargetXXL.patch. But get the error "An unknown line type was found in line 35 !" Any idea what's wrong? I presume I can apply the patch on the version 1.3.1 that I have now?