Page 1 of 1

[Solved] Buttons Rendering as Clear Rectangles...

Posted: Mon Apr 10, 2017 21:27
by davislast19
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

Re: Buttons Rendering as Clear Rectangles...

Posted: Thu Apr 13, 2017 12:24
by Ident
Please post the log under code or quote brackets, there is a button above the texteditbox if you look above it.

Re: Buttons Rendering as Clear Rectangles...

Posted: Wed Apr 19, 2017 20:48
by davislast19
Hey Ident, I've posted the CEGUI.log like you asked :)

Re: Buttons Rendering as Clear Rectangles...

Posted: Wed Apr 19, 2017 21:24
by Ident
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?

Re: Buttons Rendering as Clear Rectangles...

Posted: Sun Apr 23, 2017 01:05
by davislast19
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 :)

Re: Buttons Rendering as Clear Rectangles...

Posted: Sun Apr 23, 2017 09:11
by Ident
Alright

Re: Buttons Rendering as Clear Rectangles...

Posted: Sun Apr 23, 2017 15:01
by davislast19
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) :?

Re: Buttons Rendering as Clear Rectangles...

Posted: Sun Apr 23, 2017 16:00
by Ident
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.

Re: Buttons Rendering as Clear Rectangles...

Posted: Mon Apr 24, 2017 12:50
by davislast19
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?

Re: Buttons Rendering as Clear Rectangles...

Posted: Mon Apr 24, 2017 17:41
by Ident
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.

Re: Buttons Rendering as Clear Rectangles...

Posted: Mon Apr 24, 2017 19:52
by davislast19
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

Re: Buttons Rendering as Clear Rectangles...

Posted: Mon Apr 24, 2017 20:39
by davislast19
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:

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

Posted: Tue Apr 25, 2017 07:10
by Ident
Amazing, thanks for checking this :pint: