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.
]
Scene NOT updated, except UI area ?
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 4
- Joined: Fri Apr 23, 2010 17:45
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Scene NOT updated, except UI area ?
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.
HTH
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 30 guests