Junior Posted July 6, 2014 Share Posted July 6, 2014 Hello Guys,I need help to design a Camera Control Panel that works like the one in the 'Train' demo on the Babylon.js website. Is there a tutorial or an example on how to add a control Panel to a Babylon.js scene? I have been trying to follow the source code from the Babylon.js website but when I run the scene and click on the control panel tab, nothing happens. Can you please advise me as to what I am doing wrong? Thank you for your assistance. Here is a link to my project. http://3dpanacea.com/car/ Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 6, 2014 Share Posted July 6, 2014 There is no "back" element in your page. You should remove these lines: var backImg = document.getElementById("back"); backImg.style.maxWidth = window.innerWidth + "px"; window.addEventListener("resize", function () { backImg.style.maxWidth = window.innerWidth + "px"; }); Quote Link to comment Share on other sites More sharing options...
Junior Posted July 7, 2014 Author Share Posted July 7, 2014 Hello Deltakosh, I tried your suggestion but it did not work. Thanks for helping anyway. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 8, 2014 Share Posted July 8, 2014 can you already remove it and republish your site, maybe there are some issues Quote Link to comment Share on other sites More sharing options...
Junior Posted July 9, 2014 Author Share Posted July 9, 2014 I have made the modifications as you suggested and republished it to my website at http://3dpanacea.com/car/ . A zipped version of the project can be found here http://3dpanacea.com/car.zip. Thanks again for taking the time out to assist me with finding a solution to this problem. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 9, 2014 Share Posted July 9, 2014 Here is the deal: I fixed your code but I need you to finish this beautiful scene and allow me to showcase it on our site? Deal? Code fixed:http://www.babylonjs.com/forumpics/car.zip Junior and davrous 2 Quote Link to comment Share on other sites More sharing options...
Junior Posted July 9, 2014 Author Share Posted July 9, 2014 You've got a deal! Thanks for fixing my code. This means a lot to me. There a number of things that I would like to do with this car before it is finished. I would like for it to be fully interactive. i.e.open and close doors change car paint drive aroundI will send you the file after I complete the first stage (open and close doors). Thanks again. GameMonetize 1 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.