• Content Count

  • Joined

  • Last visited

  1. check the following: http://www.babylonjs-playground.com/#2FQOTS#8 there's 2 boxes parented to an abstractmesh each box is parent to a plane the abstractmesh position is updated, but the billboarded plane doesn't move any workarouns?
  2. Thanks for change - one tiny issue remains. If Instance has no rotationQuaternion, then I get an error at line 727 in babylon.sceneSerializer.ts. And I think the same check might need to be added for rotation field as well
  3. It appears InstancedMesh positions, rotations, and scaling are serialized as objects but deserialized as Arrays? contrast line 725 of babylon sceneSerializer.ts with line 863 of babylon.babylonFileLoader.ts Once I changed serializer to send those things as Arrays my scene would load properly
  4. looks like if i just set texture name to same as url minus rootUrl the problem is solved
  5. Okay I made a quick demo of the problem. It's a bit wonky to use but illustrates problem it's at http://enjoy3d.com/babylonjs/ basically it shows a scene made from an imported mesh it also loads the last 'saved' scene into another scene you can toggle to there are 3 keys you can press: if you type 's', it saves the current scene in the scene directory if you type 't', it toggles the scene with the one last saved in the scene directory if you type 'c', it changes the texture of the book to a jpg loaded from the scene directory. if you SAVE the original scene, no problem with the toggle. But if you change the texture and then save it, next time you refresh (and reload scene) there will be an error about texture and the toggled scene will show the missing texture pattern So I am trying to work with assets in a scene directory, but the way textures are made during scene de-serialize causes the rootURL to get prepended to the texture name - which already has the rootURL in its name. Let me know if any of this isn't clear or maybe my overall strategy could be improved somehow tnx! -scott
  6. I've encountered a problem that's preventing me from loading a saved, serialized scene. new Texture() constructor takes a simple url, and assigns that url to the texture's name. so if the texture url is in a scene directory, the name will include that directory however, Internals.loadTexture() when deserializing a scene whe encountering a texture, prepends the rootURL to the texture's name. Consequently, I get errors during loads about rootUrl/rootUrl/image.png not being found ... not causing problems for anyone else?
  7. I don't know what I am doing wrong. I go to http://www.babylonjs.com/sandbox/ and then choose to load a file. No .babylon file I've tried loads. I've tried the ROBOT and the RABBIT files from the Babylon Samples/Scenes directory. Doesn't make any difference if I drag-drop or choose to open file. The loader spins forever and the console gives GET http://www.babylonjs.com/sandbox/null 404 (Not Found) Any help would be useful thanks!