ShufordTechnology Posted March 17 Posted March 17 Using examples from: https://www.ultraengine.com/learn/GUI?lang=cpp I can build the UI as i want, and it works fine, when the user presses "start game" i switch to the main game loop, loading all of the objects for the game. When the user presses ESC, it removes the world, scene, objects, etc then reloads the UI, and enters the UI loop. The problem is, the user interface buttons etc are all hidden behind a frozen screen of the last view in the 3D game. The buttons can be clicked, but you cannot see them. I tried to find a way to clear the screen before loading the UI, but have not found anything in the documentation. Quote
Dreikblack Posted March 17 Posted March 17 No luck with SetOrder as well? https://www.ultraengine.com/learn/Camera_SetOrder?lang=cpp You can also take a look how i did loading a game from menu and loading menu from a game: https://github.com/Dreikblack/CppTutorialProject Quote
ShufordTechnology Posted March 17 Author Posted March 17 There is no camera loaded when viewing the 2D menu. Example here: https://www.ultraengine.com/learn/CreateButton?lang=cpp Quote
Josh Posted March 19 Posted March 19 That GUI example is creating the ui directly on the window. It's not a good idea to mix this approach with 3D graphics. You probably want something like the second example here: https://www.leadwerks.com/learn/CreateInterface?lang=cpp Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.