DirectX backbuffer problems with CEGUI.

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Ivian
Just popping in
Just popping in
Posts: 6
Joined: Sun Apr 10, 2011 07:26

DirectX backbuffer problems with CEGUI.

Postby Ivian » Sun Apr 10, 2011 07:32

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?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: DirectX backbuffer problems with CEGUI.

Postby Kulik » Mon Apr 11, 2011 14:38

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.

IrmatDen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sat Feb 26, 2011 08:04

Re: DirectX backbuffer problems with CEGUI.

Postby IrmatDen » Wed Apr 13, 2011 15:04

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 14 guests