Adem Posted December 30, 2016 Share Posted December 30, 2016 hy guys, this may b the wierdest question to ask but i need a tutorial on how to use array loop to instance mesh, i don't want to use BJS instanced feature Quote Link to comment Share on other sites More sharing options...
JohnK Posted December 30, 2016 Share Posted December 30, 2016 Each word know I not meaning however.? Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Adem Posted December 31, 2016 Author Share Posted December 31, 2016 @JohnK i mean i want to learn how to use array like this Var meshes = [ ]; for(i = 0, i<meshes.length, i++).....etc Quote Link to comment Share on other sites More sharing options...
JohnK Posted December 31, 2016 Share Posted December 31, 2016 This is basic Javascript? And you know basic Javascript! As you show in this question So still do not understand what it is you want to know. Please get it absolutely clear in your own mind exactly what it is you want to know and try to state it specifically and in detail. What data do you have and what do you want to do with it to achieve what ends? The above question was much clearer so what is your new question? Having done that start again with a new question and title. Pryme8 1 Quote Link to comment Share on other sites More sharing options...
iiceman Posted December 31, 2016 Share Posted December 31, 2016 You can get all the meshes in a scene by using scene.meshes: http://www.babylonjs-playground.com/#DH9CZ#0 Maybe your problem is that you tried scene.getActiveMeshes() or scene.getMeshesByID() or something like that? Those work a bit differently. I don't see what other problem could occur. What's your goal, what do you want to achieve in the end? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 31, 2016 Share Posted December 31, 2016 It would be good Aden if you could make the subject title clearer, because until then, I only see words: "instanced", "textures", "array", You write only words. And if you find a bug, you do what as title "bug", "problem", "error". And your explanations are so short that we can not understand what you want to do. Feel free to take a long time to create your topics, put details so that everyone understands the issues. Do not hesitate also to use formulas of politeness, hello, thank you does not hurt people. I find this unpleasant people who never thank for the time others take to help. Quote Link to comment Share on other sites More sharing options...
Adem Posted December 31, 2016 Author Share Posted December 31, 2016 thank you guys, i'll try to simplify my question again, thanks for your time Dad72 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.