This repository was archived by the owner on Oct 20, 2020. It is now read-only.

Description
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);
});