Hello
I have a question:
In an application with only 2 windows, when i put all windows overlapped
the FPS ratio still invariable (compared with the same app with the windows
without contact points)
Is possible that CEGUI always draw all windows, independent from window visibility?
Thank you...
Drawing windows
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Yes, this is largely correct, though don't confuse 'visible' with 'occluded', the distinction is important, since one is a setting and the other is a visual condition. A window marked as non-visible (i.e. a hidden window) will not be drawn, windows that are simply occluded by having a window in front of them are still drawn (there are some valid reasons for this too, such as imagery with alpha and so on).
Some form of occlusion culling of windows may be implemented at some stage in the future - I mentioned it a couple of times when talking about the renderer rewrites - it's not there at the moment though.
CE.
Some form of occlusion culling of windows may be implemented at some stage in the future - I mentioned it a couple of times when talking about the renderer rewrites - it's not there at the moment though.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
masch wrote:Are there many different using one of the image codecs or are there the same thing?
Huh?
Note sure if this answers your question, but I'll give it a shot: Typically you choose a codec based upon the facilities you need as far as image loading goes. Your decision may additionally be influenced if you are already using one of the underlying libraries in your game / engine / application. If such decisions seem unimportant to you, the just choose a codec and stick with it (in such cases our own SILLLY based codec is a fair choice).
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
There have been issues experienced in both Freeimage and DevIL depending upon the version built against. SILLY is recommend because it is pretty lightweight and generally has no CEGUI related issues - this is probably because it was created specifically for use in CEGUI
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Drawing windows
Sorry to "reopen" and old thread but, Is it possible to make that CEGUI draw the windows that are only visible? because I'm running my app and old machine and I really need this feature. Is it possible that you can guide me to do it???.
Salu2...
masch...
Salu2...
masch...
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Drawing windows
Hi,
Do you mean only draw those windows that are not fully obscured? I have to verify this because of the ambiguous nature of the word 'visible'
I think this is possible to get, though obviously you'll need some reworking of parts of CEGUI.
The cliff-notes overview of one way of doing this is effectively to modify the Window class to include an 'occluded' flag, which is checked when it comes time to draw the window - those with the flag set are skipped. Every time a window is moved, sized, shown, hidden, added or removed, a pass should be done against all sibling windows to update the occluded flag as appropriate.
The above will work in the basic cases, though there are many potential cans of worms - which is why I did not implement it myself (yet?).
CE.
Do you mean only draw those windows that are not fully obscured? I have to verify this because of the ambiguous nature of the word 'visible'
I think this is possible to get, though obviously you'll need some reworking of parts of CEGUI.
The cliff-notes overview of one way of doing this is effectively to modify the Window class to include an 'occluded' flag, which is checked when it comes time to draw the window - those with the flag set are skipped. Every time a window is moved, sized, shown, hidden, added or removed, a pass should be done against all sibling windows to update the occluded flag as appropriate.
The above will work in the basic cases, though there are many potential cans of worms - which is why I did not implement it myself (yet?).
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Drawing windows
yes, I get the idea, but the hard thing to do is to draw only the part that are not occurred. Do you know to do it?
I do not have much experience.
Salu2..
masch...
I do not have much experience.
Salu2..
masch...
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Drawing windows
See, that's a different issue entirely. In the beginning it was about windows that were not 'visible' (meaning completely covered by some other window), yet now we're getting onto not drawing portions that are obscured, which is obviously far more complex.
Off the top of my head like this, no, I don't particularly know how to do it.
CE.
Off the top of my head like this, no, I don't particularly know how to do it.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 8 guests