Jump to content

bGui not showing (Starting bGui)


vsh91
 Share

Recommended Posts

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);

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...