Page 1 of 1

Scene NOT updated, except UI area ?

Posted: Mon May 03, 2010 02:36
by sky_answer
I want to make a login 'dialog'.

I used an image(named LoginBG) [BaseType=CEGUI/DefaultWindow Renderer=Falagard/StaticImage] as the background image,
and it is the parent of 'login button' [BaseType=CEGUI/PushButton Renderer=Falagard/Button],
and the root is a 'DefaultWindow'

I use CEGUI along with Gamebryo engine.

I loaded a scene(snowing). First draw the scene, and render UI, and then display.

Log doesn't show any errors.

But the scene only updates within the LoginBG area. WHY ? (only in the image area the snow is falling, other areas the snow does't move but i can see it)
It seems that the scene is 'clipped'.

If no 'login button', only an image, it works good.
Or if i set the 'ClippedByParent' property of the button to 'False', it works good.

( Because some part of the LoginBG image is transparent so i know the scene within the image area is updated)

[The problem is roughly solved. New window hierachy is:

NullFrameWindow
| - NullFrameWindow
| |-LoginBG
| | |-LoginButton

'NullFrameWindow' is a CEGUI/FrameWindow. i created it. it draw nothing.

But i am still confused why said problem happened.
]

Re: Scene NOT updated, except UI area ?

Posted: Tue May 04, 2010 08:40
by CrazyEddie
If scene rendering is clipped to a particular area, it sounds to be like the scissor rect area is being set by the renderer and not reset afterwards. If you're using a Gamebryo specific renderer you should raise the issue with whoever wrote that module. I'm not sure of the Gamebryo architecture, one other solution would be to disable scissoring after rendering CEGUI.

HTH

CE.