Easy User Interface with KXGUI [WIP]

can you change the UI -> render to texture

this could then be used again without redrawing,

or it could be used on a computer screen in game etc :smiley:

@BluePrintRandom
Render to texture of fixed functions is not possible. The BGL module lacks the ability of framebuffer creation. I added it by editing the Blender source, but it’s very slow, and there’s no way to listen to mouse inputs correctly.

EDIT:
ADDED: CheckBox

http://i.imgur.com/q5eg4tW.gif

New theme for the examples section.
http://i.imgur.com/1TaL0hc.png

New feature: Draggable Windows. Now you can create even more advanced GUIs :wink:
Updated the ZIP in the main post and the Git repo. There are 3 versions, the lastest one is KXGUI_v0.8.
https://dl.dropboxusercontent.com/s/19s11egcs4fdkgo/window.gif

OK when this done I’m making a inventory using this…:slight_smile:

It would be great if, as well as releasing the library and example scripts, you also had some example blends that were just ‘run and play’

Its here -> https://github.com/DCubix/kxgui
This would be nice to have. Only the bgl is slow and should be replaced with pyopengl.

Very nice thing and now I have time to test it.

But one simple question is there a way to hide or delete a gui or elements of a gui for example for event controlled gui elements or Submenüs?
I can’t find functions for that maybe a documentation would be helpful.

By the way what about the license, there are any limitations?

This is cool man. Nice :slight_smile:

The project is cancelled. BGL is too limited

Oh okay hm, yes I see.

I never used bgl for complexe tasks but now I realized that drawing to the screen runs very slow. Also pyOpenGl works not so good as I have thought but I only made some tests with it so maybe it can work better I don’t know.

You need to mix PYopenGL and PIL to get fast drawn UI that only updates on changes…

Mix images -> pass to buffer and don’t spend any time on unless it’s changed.

with how small the resolutions would be up that close, *I get 60 fps mixing 32x32 into a 1024x1024 and passing into buffer…

I bet you could do some complex stuff, and it would not cost anything unless you changed it.

A custom cursor via bgl would actually a cool feature for a PythonComponent where the user only must set the path to the cursor image as string in the component ui. Unfortunaly I don’t managed it yet to extract the code from the rest of the gui system.

Hmm I plan to add that to my addon. But I’m not sure of making it a Python Component. A component of which object? The cursor of the game is unique peer game, it shouldn’t be attached to a specific object nor to the current scene either.

Hence, what about an option on the render properties? Or where do you think this interface would be appropriate? (Since the render properties are already pretty bloated)

Yeah, you’re right an option in the render properties would be a better solution, if you want to add it.

I’ll work on it. But not until next week at least, my GPU drivers for Windows suddenly broke on an update and I only have a 32bit Ubuntu for which no builds of UPBGE are available (and building it myself throws errors, as usual). So I’ll have to wait until either AMD fixes this shit or downgrade to Windows 7 and install the original drivers.

EDIT: After some tweaking I managed to build UPBGE for Ubuntu 32bit.

The new version is in here -> https://blenderartists.org/forum/showthread.php?402890-Compz-GUI-System/page2

ahh is this project cancelled by the dev? say it an’t so… on the blender marketplace I’d buy it for 50$ this would have been very awesome as finished tool even with some limitations, I mean to be honest blender has many limitation… don’t mean to criticize, blender is my favorite software and is like a miracle.