Open DengCun opened 5 years ago
I can not load zip file by using under code.
var modelURL = 'character.zip'; var request = osgDB.readNodeURL(modelURL);
request .then(function(model) { var mt = new osg.MatrixTransform(); osg.mat4.rotateZ(mt.getMatrix(), mt.getMatrix(), -Math.PI); mt.addChild(model); rootNode.addChild(mt); viewer.getManipulator().computeHomePosition(); var loading = document.getElementById('loading'); document.body.removeChild(loading); }) .catch(function() { osg.warn('cant load ' + modelURL); });
I can not load zip file by using under code.
var modelURL = 'character.zip'; var request = osgDB.readNodeURL(modelURL);