[SOLVED] Another no text Getting rendered Post

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

User avatar
evilBeaver
Just popping in
Just popping in
Posts: 5
Joined: Wed Jun 08, 2011 23:56

[SOLVED] Another no text Getting rendered Post

Postby evilBeaver » Thu Jun 09, 2011 00:25

Hi,

I've started developing Cegui only a few days ago and had no Problem with Compiling and some Tutorials.

I've searched through this Forum, Tutorials and the Manual but I couldn't find an solution for the following Problem
seems like I'm missing something very essential!

I have no Problems displaying the Text in all off the CEGUI example .layout files.

Now I wanted to create my own layout using the CELayout editor, but I'm not able to Display any text(The Text appears in the LayoutEditor).
To make it more reproducible I created a little File using the given .sheme, .looknfeel and imageset files. Instead of my own.

The XML File I created looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<GUILayout >
    <Window Type="DefaultWindow" Name="Root" >
        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
        <Window Type="TaharezLook/StaticText" Name="Root/Foo" >
            <Property Name="Text" Value="Bar" />
            <Property Name="UnifiedAreaRect" Value="{{0.0246094,0},{0.03454,0},{0.189648,0},{0.148793,0}}" />
        </Window>
    </Window>
</GUILayout>


this is the code segment inside the cpp file:

Code: Select all

    CEGUI::SchemeManager::getSingleton().create("TaharezLook.scheme");
    CEGUI::System::getSingleton().setDefaultFont("DejaVuSans-10");

    CEGUI::System::getSingleton().setGUISheet(CEGUI::WindowManager::getSingleton().loadWindowLayout("TestLook.layout"));


as mentioned above loading other .layout files Renders Text without any Problem!

I'm working under ubuntu 11.04 and downloaded/compiled the latest CEGUI releases
my cegui.log shows the following informations:

Code: Select all

09/06/2011 01:50:32 (Std)    ---- Version 0.7.5 (Build: May 31 2011 GNU/Linux g++ 4.5.2 64 bit) ----
09/06/2011 01:50:32 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module.  TextureTarget support enabled via FBO extension. ----
09/06/2011 01:50:32 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
09/06/2011 01:50:32 (Std)    ---- Image Codec module is: DevILImageCodec - Official DevIL based image codec ----
09/06/2011 01:50:32 (Std)    ---- Scripting module is: None ----


I haven't found any errors in that file so I don't know what else I could post here from that file



any solutions for this Problem?

thx for any help
Last edited by evilBeaver on Fri Jun 10, 2011 12:30, edited 1 time in total.

User avatar
evilBeaver
Just popping in
Just popping in
Posts: 5
Joined: Wed Jun 08, 2011 23:56

Re: Another no text Getting rendered Post

Postby evilBeaver » Thu Jun 09, 2011 14:16

OK I found out that it Renders Text when I put a frame Window around it!

Is this needed or can I render text in a CEGUI/DefaultWindow without a CEGUI/FrameWindow Window as parent?

npritchard
Just popping in
Just popping in
Posts: 2
Joined: Fri Jun 10, 2011 10:34

Re: Another no text Getting rendered Post

Postby npritchard » Fri Jun 10, 2011 10:35

I am also experiencing this precise "problem".

If anyone has any insight it would be greatly appreciated.

I can also add that it's not specific to Text boxes. I was working with a progress bar, which was not reporting progress unless it's within a FrameWindow.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Another no text Getting rendered Post

Postby Kulik » Fri Jun 10, 2011 11:06

Very strange, I couldn't reproduce the issue :-(

A wild guess would be that you are "tainting" the OpenGL state before CEGUI gets rendered. As FrameWindows are rendered into offscreen surfaces, they work around that. Look into OpenGLRenderer::enableExtraStateChanges and try to isolate the issue into as little code as possible.

npritchard
Just popping in
Just popping in
Posts: 2
Joined: Fri Jun 10, 2011 10:34

Re: Another no text Getting rendered Post

Postby npritchard » Fri Jun 10, 2011 12:07

Thanks Kulik - that did the trick, the problem was indeed related to state changes, specifically GL_DEPTH_TEST which appeared to be failing for the Text and progress bar 'bar'.

User avatar
evilBeaver
Just popping in
Just popping in
Posts: 5
Joined: Wed Jun 08, 2011 23:56

Re: Another no text Getting rendered Post

Postby evilBeaver » Fri Jun 10, 2011 12:29

thx that really solved my Problem too !

double_you
Just popping in
Just popping in
Posts: 2
Joined: Mon Jun 20, 2011 08:49

Re: [SOLVED] Another no text Getting rendered Post

Postby double_you » Fri Jul 15, 2011 03:07

Cheers Kulik and npritchard. Disabling GL_DEPTH_TEST while rendering the gui did the trick.

Steve.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests