Nabroski Posted August 16, 2016 Share Posted August 16, 2016 Hello In some cases, its more efficient to compute models in real time, rather then download the provided geometry in a babylon file. I want to create markers in my room, terrain ...and replace this specific spots with something like a trees currently i have to create a separate mesh as marker, it would save some space, if i could simply define a marker as a different material Thank you all very much, whoever wants to contribute The playgroundhttp://babylonjs-playground.com/#22TZPO#1 Johnny007 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 17, 2016 Share Posted August 17, 2016 Hi @Nabroski First off, I want to say SUPER THANKS for all the helping you do for the forum users. Nice work! Have you looked at "decals" in Blender? Are you using Blender? Problem is... decals might use more bytes than mesh. And I don't even know if they export, because they are a Cycles thing, whatever that means. What I would do is... use planes with unique names. Names like "marker_tree" and "marker_bush". And, each of these planes would be scaled 1x1... IF the tree or bush needs to be scaled 1, 1, 1. If it needs a bigger tree, scale the marker plane 2x2. Or 3x3. After import into BJS, iterate thru scene.meshes, gathering all the mesh whose name begins with "marker", and then process each marker and its scaling... and change your markers into whatever they need to be changed-into, also taking the marker's scaling into consideration. Just some ideas - likely poor ones. I hope I am on-topic and that this gives you some ideas. Surely, more ideas will come soon, from smarter people than I. GameMonetize and Nabroski 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 17, 2016 Share Posted August 17, 2016 I think you can also think about using multimaterials. You can have specific sub materials for markers and in realtime replace them with the meshes that you want. (a mesh with submaterials contains a list of submeshes which will give you specific bounding boxes) Wingnut and Nabroski 2 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 18, 2016 Author Share Posted August 18, 2016 @Wingnut I took a short break from all the endless parties, and i feel like i can go back, ppl already leave messages on my answering machine. I decided to make a game. Thank you for advice!@Deltakosh I got the same idea ...yesterday. (i have to figure out how this works in blender, but i'll fix it) 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.