Package org.jdesktop.wonderland.client.jme.artimport

Examples of org.jdesktop.wonderland.client.jme.artimport.LoaderManager


//        LOGGER.warning("Loading URL " + url.toExternalForm());

        // Simply create a new ModelCell by creating a ModelCellServerState
        // with the URL passed in via the properties. First load the deployed
        // model from the given URL.
        LoaderManager lm = LoaderManager.getLoaderManager();
        DeployedModel dm = null;
        try {
            dm = lm.getLoaderFromDeployment(url);
        } catch (IOException excp) {
            LOGGER.log(Level.WARNING, "Unable to load deployed model from " +
                    url.toExternalForm(), excp);
            return null;
        }
View Full Code Here


        }
        return node;
    }

    private void attachModel(Node aNode) throws IOException {
        LoaderManager manager = LoaderManager.getLoaderManager();
        URL url = AssetUtils.getAssetURL("wla://coneofsilence/pwl_3d_coneofsilence_016d.dae/pwl_3d_coneofsilence_016d.dae.gz.dep", this.getCell());
        DeployedModel dm = manager.getLoaderFromDeployment(url);
        Node cosModel = dm.getModelLoader().loadDeployedModel(dm, entity);
        aNode.attachChild(cosModel);
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.jme.artimport.LoaderManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.