buildaworldnet / IrrlichtBAW

Build A World fork of Irrlicht
http://www.buildaworld.net
Apache License 2.0
122 stars 28 forks source link

IrrlichtBaW CEGUI #480

Closed AnastaZIuk closed 3 years ago

AnastaZIuk commented 4 years ago

status:

Well, I launched new version and it looks and behave like old one without

GLStateManager.saveOpenGLState();         
setOpenGLClip();
// here it renders GUI
GLStateManager.restoreOpenGLState();

those are here

the results are as follows

old with commented those 3 above:

image

new with working fonts:

image

old with uncommented those 3 above:

image

What I don't understand is why it happens something with a state has an impact on half GUI that most is invisible, but we won't use those states and clips probably however. Need to figure out what to do with that.

I'm sure that the widgets are placed in new example correctly, since I can interact with them but I don't see them due to those states and clip.

notes:

devshgraphicsprogramming commented 4 years ago

when the code is commented out the OpenGL vs.Vulkan NDC set-up is wrong (it doesn't get reset to OpenGL default before CEGUI is invoked)

However when its uncommented there's probably something wrong with saving the blend state (glEnable + glBlendFunc stuff)

devshgraphicsprogramming commented 3 years ago

closing temporarily.... reopen when ready for merge