Recalling Render Target Limit

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
thomascheah
Posts: 77
Joined: Sat Jul 08, 2006 5:55 am
Location: Cyberjaya, Malaysia

Recalling Render Target Limit

Post by thomascheah »

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!
Objective World Pvt. Ltd.
"Turning Knowledge Into Wisdom."
http://www.objectiveworld.com
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

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.
thomascheah
Posts: 77
Joined: Sat Jul 08, 2006 5:55 am
Location: Cyberjaya, Malaysia

Post by thomascheah »

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?
Objective World Pvt. Ltd.
"Turning Knowledge Into Wisdom."
http://www.objectiveworld.com
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

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.
thomascheah
Posts: 77
Joined: Sat Jul 08, 2006 5:55 am
Location: Cyberjaya, Malaysia

Post by thomascheah »

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?
Objective World Pvt. Ltd.
"Turning Knowledge Into Wisdom."
http://www.objectiveworld.com
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I don't know why, but line 35 seems to lack a space at the beginning. I can upload a new patch.
thomascheah
Posts: 77
Joined: Sat Jul 08, 2006 5:55 am
Location: Cyberjaya, Malaysia

Post by thomascheah »

Thanks Hybrid, it's working now. :)
Objective World Pvt. Ltd.
"Turning Knowledge Into Wisdom."
http://www.objectiveworld.com
jcarew
Posts: 34
Joined: Wed Jul 04, 2007 3:54 pm

Post by jcarew »

I can't find patch under this link:/ Where can I find this patch?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

It's there, just click on patch tracker and search for dx9 rendertarget stuff.
jcarew
Posts: 34
Joined: Wed Jul 04, 2007 3:54 pm

Post by jcarew »

Very Thanks:)
Post Reply