Package com.jmex.model.collada

Examples of com.jmex.model.collada.ThreadSafeColladaImporter.load()


                            boolean applyColladaAxisAndScale,
                            ThreadSafeColladaImporter.LoaderErrorListener listener) {
        Node modelNode;
        ThreadSafeColladaImporter importer = new ThreadSafeColladaImporter(name);
        importer.setErrorListener(listener);
        importer.load(in);
        modelNode = importer.getModel();

        CullState culls = DisplaySystem.getDisplaySystem().getRenderer().createCullState();
        culls.setCullFace(CullState.Face.Back);
        modelNode.setRenderState(culls);
View Full Code Here


        ZipEntry modelEntry = zipFile.getEntry(filename);
        BufferedInputStream in = new BufferedInputStream(zipFile.getInputStream(modelEntry));

        ThreadSafeColladaImporter importer = new ThreadSafeColladaImporter(filename);
        importer.setErrorListener(errorListener);
        importer.load(in);
        Node modelNode = importer.getModel();

        // Adjust the scene transform to match the scale and axis specified in
        // the collada file
        float unitMeter = importer.getInstance().getUnitMeter();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.