Page 1 of 1

DirectX backbuffer problems with CEGUI.

Posted: Sun Apr 10, 2011 07:32
by Ivian
Hi.

I've made a CEGUI test project to check GUI rendering with custom objects on the screen.
But when I run it iit seem to me, that CEGUI blocks backbuffer clearing.

I've tried the MRT, but my graphic card doesn't support it.

Problems looks like that:

Code: Select all

while(dx.run()) //winapi etc.
{
      dx.device -> BeginScene();
      dx.device -> Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0L );
      
      dx.draw.fillRect(0,0,500,500,0xffff0000);
                            dx.draw.flush();
      sys.renderGUI();

      dx.end_render(); //end scene & present
};


Image

So what is wrong with it?

Re: DirectX backbuffer problems with CEGUI.

Posted: Mon Apr 11, 2011 14:38
by Kulik
I don't have much DX experience so I can only give theoretical advice.

CEGUI doesn't clear any buffers AFAIK, you have to clear them yourself. Try clearing the depth buffer.

Re: DirectX backbuffer problems with CEGUI.

Posted: Wed Apr 13, 2011 15:04
by IrmatDen
Hi,

Have you compared the differences between the CEGUI DX sample code and yours?
ATM, I'm afraid you don't show enough for anyone (whom didn't run into the same issue) to tell you what's wrong.