mandim Posted May 3, 2018 Share Posted May 3, 2018 Hello, I have a .babylon file exported from blender with a rotation animation but when I try to load it (I have tried both addMeshTask() and ImportMesh()) I get a "position animation" with zero values and "scaling animation" with fixed values. This cause me a problem when I call beginAnimation() because I'm not able to scale and position the model in my scene. Moreover when I edit the file and remove the "position animation" and "scaling animation" the engine somehow loads them again (even with cleaning cache). https://www.dropbox.com/s/789lx8gm3v7zrsc/container_ship_sinking.babylon?dl=0 https://www.dropbox.com/s/5odj9orv9cwcshp/container_ship_sinking.blend?dl=0 Why there are these animations added? Is it something wrong with my export in blender? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted May 3, 2018 Share Posted May 3, 2018 Yes, all three of these have always been written, before I was working on the exporter. For Mesh actions, the exporter can tell which frames are actually in the action & only export those frames. If you can live with linear actions, you can pull out all but the first - last frames, or some other removal combination. The exporter does not directly read the the animation keys, but rather sort of "plays" the animation & pulls the values off the mesh. This is easier than reading the keys, but does not make it easy to know what type of keys are involved. I now know how to read (& write) animation keys. I'll think about looping thru the keys to determine what is actually being used in the future, but not now. I thought you could delete those out of the file. @Deltakosh, that is possible, right? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2018 Share Posted May 3, 2018 Correct. This is absolutely ok Quote Link to comment Share on other sites More sharing options...
mandim Posted May 4, 2018 Author Share Posted May 4, 2018 Ok, but removing these slots has no effect because as I mentioned above the engine somehow loads them again (even with cleaning cache). Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted May 4, 2018 Share Posted May 4, 2018 Do an sanity check by changing the name of the file, or switching to a browser you have not loaded this on before. Quote Link to comment Share on other sites More sharing options...
mandim Posted May 4, 2018 Author Share Posted May 4, 2018 1 hour ago, JCPalmer said: Do an sanity check by changing the name of the file, or switching to a browser you have not loaded this on before. Yes, this is working but how is this explained? I mean why efter cleaning the cache there are still remainings? And why do I need to rename the file each time? Is there any workaround to this? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted May 4, 2018 Share Posted May 4, 2018 Better than re-installing your OS ?! Actually, I do not know, call Google, Microsoft, Apple, or Mozzilla. Maybe just reboot, or just close the app. Caching is a performance feature that might not affect what a running instance of the application. mandim 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.