[BUG] RTT size is incorrectly truncated
Posted: Sat Mar 06, 2010 23:00
Above is a screenshot with Irrlicht Renderer. As you can see the render target texture starts to repeat itself and the text is blurry. This also happens with Direct3D9 and OpenGL, although it's not quite as evident.
You can reproduce this with Sample_FirstWindow. Just modify the setSize call to the following:
Code: Select all
wnd->setSize(UVector2(UDim(0, 200.9), UDim(0, 200.9)));
If you disable AutoRenderingSurface it renders correctly.
I did some debugging (with irrlicht renderer), and here's what I noticed:
- RTT dimensions are truncated to 200x200. Because it's smaller than FrameWindow size, d_texelScaling causes the texture to start repeating itself.
- Clipping rect is rounded to 201x201 while the viewport is truncated to 200x200. For this reason the scissor matrix slightly scales down everything that is rendered on the surface.
I am using v0-7 branch, rev 2442.
BTW, should I post bugs here or on the mantis tracker or both?