Package com.jme.util.export.binary

Examples of com.jme.util.export.binary.BinaryImporter


        Object model = null;
        try {
            URL url = getResource(path);
            modelFormat.converter().setProperty("mtllib", url);
            modelFormat.converter().convert(url.openStream(), BO);
            model = new BinaryImporter().load(new ByteArrayInputStream(BO.toByteArray()));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return (Spatial) model;
View Full Code Here


    public static Spatial loadSpatial(String path, ModelFormat modelFormat) {
        ByteArrayOutputStream BO = new ByteArrayOutputStream();
        Object model = null;
        try {
            modelFormat.converter().convert(getResource(path), BO);
            model = new BinaryImporter().load(new ByteArrayInputStream(BO.toByteArray()));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return (Spatial) model;
View Full Code Here

TOP

Related Classes of com.jme.util.export.binary.BinaryImporter

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.