Scene NOT updated, except UI area ?
Posted: 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.
]
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.
]