[Solved] Buttons Rendering as Clear Rectangles...

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

davislast19
Just popping in
Just popping in
Posts: 7
Joined: Mon Apr 10, 2017 21:08

[Solved] Buttons Rendering as Clear Rectangles...

Postby davislast19 » Mon Apr 10, 2017 21:27

I have set up all the 'ResourceGroupDirectory's (including imageSets, schemes, fonts, lua_scripts, layouts, and looknfeels) and also the corresponding 'DefaultResourceGroup's, I have also set the root window, and made a context. When I try to render the button, (Taharez/Button) it renders a clear rectangle. I used the 'beginRendering' and 'endRendering' functions, and I had set my font and loaded my scheme by that time. Here's my CEGUI.log if you need it:

Code: Select all

10/04/2017 17:02:44 (Std)    ********************************************************************************
10/04/2017 17:02:44 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
10/04/2017 17:02:44 (Std)    ********************************************************************************
10/04/2017 17:02:44 (Std)    ---- Version: 0.8.4 (Build: Apr 13 2016 GNU/Linux g++ 5.3.1 20160412 64 bit) ----
10/04/2017 17:02:44 (Std)    ---- Renderer module is: CEGUI::OpenGL3Renderer - Official OpenGL 3.2 core based renderer module.  TextureTarget support enabled via FBO OGL 3.2 core implementation. ----
10/04/2017 17:02:44 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
10/04/2017 17:02:44 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
10/04/2017 17:02:44 (Std)    ---- Scripting module is: None ----
10/04/2017 17:02:44 (Std)    ********************************************************************************
10/04/2017 17:02:44 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
10/04/2017 17:02:44 (Std)    ********************************************************************************


Any help is greatly appreciated :)
PS: If you need more info, I will gladly give it to you :D
Ack! I forgot to mention that I'm using an OpenGL3Renderer as my renderer, and I used core profile version 4.5 for my OpenGL (and then changed it to 3.2, as you can see in the log), with SDL 2.0
Last edited by davislast19 on Mon Apr 24, 2017 20:41, edited 7 times in total.

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Buttons Rendering as Clear Rectangles...

Postby Ident » Thu Apr 13, 2017 12:24

Please post the log under code or quote brackets, there is a button above the texteditbox if you look above it.
CrazyEddie: "I don't like GUIs"

davislast19
Just popping in
Just popping in
Posts: 7
Joined: Mon Apr 10, 2017 21:08

Re: Buttons Rendering as Clear Rectangles...

Postby davislast19 » Wed Apr 19, 2017 20:48

Hey Ident, I've posted the CEGUI.log like you asked :)

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Buttons Rendering as Clear Rectangles...

Postby Ident » Wed Apr 19, 2017 21:24

Hi, you do not need to change your OpenGL version to 3.2 anywhere at OpenGL Context creation, if you use anything higher than 3.2 that's fine. We use only 3.2 Core Profile functionality in the OpenGL3Renderer, which should be well supported up to the latest OpenGL version, both in core and not-core.


Have you tried rendering CEGUI without rendering any of your own stuff - So really just have CEGUI doing OpenGL calls? If no, could you please try that? Also after you have tried that, could you please see what happens when you enable the following on the CEGUI Renderer:
enableExtraStateSettings(true)
See if it changes anything for you.

If neither of the above helps, did you compile and run the SampleBrowser and try to make the button you wann use there?
CrazyEddie: "I don't like GUIs"

davislast19
Just popping in
Just popping in
Posts: 7
Joined: Mon Apr 10, 2017 21:08

Re: Buttons Rendering as Clear Rectangles...

Postby davislast19 » Sun Apr 23, 2017 01:05

Thanks for the suggestions, although I won't be able to try them for a bit... Computer problems :/
I'll notify you when I've tried them :)

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Buttons Rendering as Clear Rectangles...

Postby Ident » Sun Apr 23, 2017 09:11

Alright
CrazyEddie: "I don't like GUIs"

davislast19
Just popping in
Just popping in
Posts: 7
Joined: Mon Apr 10, 2017 21:08

Re: Buttons Rendering as Clear Rectangles...

Postby davislast19 » Sun Apr 23, 2017 15:01

Ok, so I've tried your suggestions, and it didn't seem to make any difference, although when I tried running the sample browser it gave an error message:

Code: Select all

CEGUI::FileIOException in function 'virtual void CEGUI::DefaultResourceProvider::loadRawDataContainer(const CEGUI::String&, CEGUI::RawDataContainer&, const CEGUI::String&)' (/build/cegui-mk2-2y5uBW/cegui-mk2-0.8.4+dfsg/cegui/src/DefaultResourceProvider.cpp:66) : /usr/share/cegui-0.8.4/imagesets/logo.png does not exist
An exception was thrown within the sample framework:
/usr/share/cegui-0.8.4/imagesets/logo.png does not exist

As the error states, it thinks that /usr/share/cegui-0.8.4/imagesets/logo.png doesn't exist, so I checked, and the directory usr/share/cegui-0.8.4 doesn't exist...

Also, I noticed that the space where the button should be rendering is clear, almost as if the texture for the button isn't found, but I'm not getting any error messages (except for the one above) :?

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Buttons Rendering as Clear Rectangles...

Postby Ident » Sun Apr 23, 2017 16:00

Have you installed CEGUI via the project? Not sure what the correct terminology for "installing" is, since I am not an Unixer. There should be something that deploys / installs CEGUI when you build it.
CrazyEddie: "I don't like GUIs"

davislast19
Just popping in
Just popping in
Posts: 7
Joined: Mon Apr 10, 2017 21:08

Re: Buttons Rendering as Clear Rectangles...

Postby davislast19 » Mon Apr 24, 2017 12:50

I installed from both the linux repository and also from source, to see if it would install into the right directory (usr/share/cegui-0.8.4)
Turns out that neither did... So I physically moved a file (in usr/**local**/share) to usr/share, and now everything is upside down and small.
Is there any other way to install CEGUI? Or should I try uninstalling and reinstalling?

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Buttons Rendering as Clear Rectangles...

Postby Ident » Mon Apr 24, 2017 17:41

If it is upside down and sizded to about a third, then get the latest CEGUI version. There was a problem with a glm update and you probably have the new glm version, which caused exactly this, but we fixed this then in CEGUI for all glm versions. I don't remember when exactly we fixed this but might have been 0.8.5.

I think you installed it right if you did from source. If it lands in a wrong folder then this is a bug. I only develop on Windows, unlike the rest of the team, so I can't help with this at all :(

Sorry that this is such a hassle, seems like two bugs (one old) is striking you atm. Maybe the other one - the install path one - was fixed in latest CEGUI as well? Would be great if you could try out and tell us.
CrazyEddie: "I don't like GUIs"

davislast19
Just popping in
Just popping in
Posts: 7
Joined: Mon Apr 10, 2017 21:08

Re: Buttons Rendering as Clear Rectangles...

Postby davislast19 » Mon Apr 24, 2017 19:52

I'm using version 1.8.4... Why have I not thought about updating it?
*Sigh*
I guess I'll uninstall and then install a newer version from source :) Thanks for the quick reply and all the help, I'll try it out right now

davislast19
Just popping in
Just popping in
Posts: 7
Joined: Mon Apr 10, 2017 21:08

Re: Buttons Rendering as Clear Rectangles...

Postby davislast19 » Mon Apr 24, 2017 20:39

Victory at last! It turns out that the problem was that I was only using CEGUI version 1.8.4... I installed 1.8.7 and it worked perfectly :D :D :D
Thanks a lot for helping me so much.
No more problems! :rofl:

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [Solved] Buttons Rendering as Clear Rectangles...

Postby Ident » Tue Apr 25, 2017 07:10

Amazing, thanks for checking this :pint:
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 1 guest