Hi,
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.
Thanks!
Recalling Render Target Limit
-
thomascheah
- Posts: 77
- Joined: Sat Jul 08, 2006 5:55 am
- Location: Cyberjaya, Malaysia
-
thomascheah
- Posts: 77
- Joined: Sat Jul 08, 2006 5:55 am
- Location: Cyberjaya, Malaysia
-
hybrid
- Admin
- Posts: 14144
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.
http://sourceforge.net/tracker/?group_id=74339
This only fixes DX9, I guess that a similar patch would work for DX8.
-
thomascheah
- Posts: 77
- Joined: Sat Jul 08, 2006 5:55 am
- Location: Cyberjaya, Malaysia
-
thomascheah
- Posts: 77
- Joined: Sat Jul 08, 2006 5:55 am
- Location: Cyberjaya, Malaysia