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

The problem for loading zip #1012

@DengCun

Description

@DengCun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions