eboo Posted April 24, 2016 Share Posted April 24, 2016 i'm trying to "optimize" my loading system. my current script, place a "temp" box mesh. load the mesh. dispose "temp" and clone the loaded mesh to the expected position. is there a way to work on the "clone" origine (here a simple sphere)? http://www.babylonjs-playground.com/#1FGIGL#0 in this (not working) example, i d like to have 3 boxes Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 25, 2016 Share Posted April 25, 2016 Hello...can you elaborate more, I'm not sure to understand what you want to achieve with your PG Quote Link to comment Share on other sites More sharing options...
adam Posted April 25, 2016 Share Posted April 25, 2016 Is this what you are trying to do? http://www.babylonjs-playground.com/#PVXBF Quote Link to comment Share on other sites More sharing options...
eboo Posted April 25, 2016 Author Share Posted April 25, 2016 yes @adam that's the way i actualy use. But i have a looot of clones (for exemple trees). Maybe there is an "elegant" way to switch a mesh with an other and "re"clone. clear answer try: Is there a way to "copy" a mesh and attach to the original mesh. (maybe instances, i've not doc about it) French try ^^: je cherche un moyen de lier les clone et la source. Ainsi si je charge un modéle et remplace la source, les "copies" seraient automatiquement remplacées. Exemple je copie une boite a la place des mes arbres. Pendant ce temps, l'arbre se charge. Une fois chargé, cela remplacerai "automatiquement" mes arbres. Google is my friend: I look for a way to link the clone and the source. So if I load a model and replaces the source, the "copies" will be automatically replaced. Example I copy a box in place of my trees . Meanwhile, the shaft load. Once loaded, it will restore to "automatically" my tree Quote Link to comment Share on other sites More sharing options...
adam Posted April 26, 2016 Share Posted April 26, 2016 http://www.babylonjs-playground.com/#PVXBF#1 eboo and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
eboo Posted April 26, 2016 Author Share Posted April 26, 2016 great! thanks a lot 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.