auduct Posted September 13, 2016 Share Posted September 13, 2016 I want to add controls like buttons and range sliders into the babylon.js scene. I am making an interior scene of a room. Can anyone share a link or page where i can find any info about that. Quote Link to comment Share on other sites More sharing options...
ViBe Posted September 13, 2016 Share Posted September 13, 2016 Hi, Do you want to add your controls on top of the canvas ? Maybe this extension could be used: https://doc.babylonjs.com/extensions/CastorGUI) Or do you want something integrated in your 3D scene like in this demo: http://www.babylonjs.com/Demos/ActionBuilder/. I don't know if anyone has implemented a such 3D library (button, slider, etc.) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 13, 2016 Share Posted September 13, 2016 You can also just use regular HTML on top of your canvas. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted September 13, 2016 Share Posted September 13, 2016 where is the playground with the 3 2d boxes in the bottom left corner, and the GUI in the top right with the sliders that let you manipulate the boxes? This is a great example I saw yesterday and I cant for the life of me find it now. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted September 13, 2016 Share Posted September 13, 2016 http://babylonjs-playground.com/#CMZLC#7 Wingnut and babaorhum 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 13, 2016 Share Posted September 13, 2016 You got it Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted September 13, 2016 Share Posted September 13, 2016 I always get dat is not defined when trying to call var gui = new dat.GUI(); whats up? I thought dat.GUI.js was packed with BJS or something I guess I need to include it? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 13, 2016 Share Posted September 13, 2016 It is not (but the playground references it for you) 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.