Scene NOT updated, except UI area ?

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

sky_answer
Just popping in
Just popping in
Posts: 4
Joined: Fri Apr 23, 2010 17:45

Scene NOT updated, except UI area ?

Postby sky_answer » Mon May 03, 2010 02:36

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.
]

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Scene NOT updated, except UI area ?

Postby CrazyEddie » Tue May 04, 2010 08:40

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 27 guests