Hi everyone,
I'm writing a plugin for Wordpress that use Babylon JS and I got a little problem.
I try to load a mesh :
var obj = loader.addMeshTask("tortue", "", WPURLS.plugin_dir+'/models/turtle/', "turtle-lowpoly.obj");
obj.onSuccess = function(task){
console.log('ok');
}
The model is loaded (I see it in Firebug) but the onSuccess function is never triggered.
If I put the code as standalone it works well...
You can see here the problem : http://www.info-d-74.com/test-3d-object/
URL of the script is : http://www.info-d-74.com/wp-content/plugins/3d-objects/js/3d_object.js?ver=4.5.2
Any idea to fix it ? Thanks