Page 1 of 1

I got the gui rendering, but only when I don't draw my own s

Posted: Thu Feb 24, 2005 03:00
by toysnob
I finally got CEGUI to render the same stuff that is in the demo, however as soon as I try to render so much as my own quad, the UI doesn't render, only my quad. It's one or the other, but never both.

I am rendering the UI last of course, and not using any alpha or any textures. Is there anything I should be doing or not be doing?

Any renderstates in my device I should be setting?

I am using the DX9 renderer.

Re: I got the gui rendering, but only when I don't draw my o

Posted: Thu Feb 24, 2005 09:55
by CrazyEddie
Most render states are set in DirectX9Renderer::initPerFrameStates, though it is highly likely that there are some missing. Depending upon what settings your app uses when rendering geometry, something is probably being missed.

If you do discover which state it is before I can, I would be very grateful for the help :)

CE.

Re: I got the gui rendering, but only when I don't draw my o

Posted: Fri Feb 25, 2005 05:44
by toysnob
Yes I found it. You forgot to disable CULLing. Just disable it and it works fine (in my case) since my app had enabled it.

Re: I got the gui rendering, but only when I don't draw my o

Posted: Fri Feb 25, 2005 10:00
by CrazyEddie
Cool. I'll get this added over the weekend :)

CE