dbawel Posted January 25, 2018 Share Posted January 25, 2018 Hello, I need to create allot of boxes proceeduraly, and cannot figure out how. I tried many methods to create meshes (boxes), but nothing works. I tried the same code in the following playground scene; http://www.babylonjs-playground.com/#1PWCZ8#2 But I keep getting the message in the console that the variable function is not a constructor. Example using the code from the playground as a test in my scene: TypeError: YellowStar is not a constructor Please help if you can. Thanks, DB Quote Link to comment Share on other sites More sharing options...
dbawel Posted January 25, 2018 Author Share Posted January 25, 2018 Never mind... I was over complicating things and it's late - time for sleep. Still.. the playground code won't work in my scene. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 25, 2018 Share Posted January 25, 2018 It works for me Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted January 26, 2018 Share Posted January 26, 2018 Look at you getting better at your code structure! Makes me proud! Pretty cool once you reference a good texture : http://www.babylonjs-playground.com/#1PWCZ8#3 Quote Link to comment Share on other sites More sharing options...
dbawel Posted January 26, 2018 Author Share Posted January 26, 2018 @Pryme8 Did you run the code independent of the playground? It works fine for me on the playground, but not in my scene. However, I just reduced 70 lines of code to 30 lines - with 40 seperate imported and native meshes animating on screen. You'd be surprised what I'm building these days. Although I still have to experiment allot. Did you get the job in Colorado? DB 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.