vsh91 Posted July 8, 2016 Share Posted July 8, 2016 Hello, I'm not sure what I'm doing wrong but I can't get bgui to show up in my scene. I'm creating it within the createScene() function. I've tried different variations of the code below, carefully following examples and documentation to no avail. I know my texture is loading in fine, I tested it on a plane. I noticed that bgui is creating a separate camera to display objects, maybe that's off? Any direction is much appreciated. gui = new bGUI.GUISystem(scene, window.innerWidth, window.innerHeight); gui.updateCamera(); gui.enableClick(); var head = new bGUI.GUIPanel("head", face, null, gui); head.position(new BABYLON.Vector3(5,5,0)); head.setVisible(true); Quote Link to comment Share on other sites More sharing options...
adam Posted July 8, 2016 Share Posted July 8, 2016 You should probably using Canvas2D instead of bGUI. http://doc.babylonjs.com/tutorials/Using_the_Canvas2D vsh91 1 Quote Link to comment Share on other sites More sharing options...
vsh91 Posted July 8, 2016 Author Share Posted July 8, 2016 Oh wow, ok. Thanks for the heads up, I was spinning sideways trying to figure out how bgui works. Canvas2D looks amazing. Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 10, 2016 Share Posted July 10, 2016 I shoudl add a message in bGUI to say it's obsolete now... Quote Link to comment Share on other sites More sharing options...
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.