Package com.jmex.model.converters

Examples of com.jmex.model.converters.AseToJme.convert()


    private void loadASE() {
        AseToJme converter = new AseToJme();
        URL objFile = getClass().getResource("/models/test/cube-1m.ase");
        ByteArrayOutputStream BO = new ByteArrayOutputStream();
        try {
            converter.convert(objFile.openStream(), BO);
            Node obj = (Node) BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
            obj.setName("OBJ");
            rootNode.attachChild(obj);
        } catch (IOException e) {
            e.printStackTrace();
View Full Code Here


    private void loadASE() {
        AseToJme converter = new AseToJme();
        URL objFile = getClass().getResource("/models/test/cube-1m.ase");
        ByteArrayOutputStream BO = new ByteArrayOutputStream();
        try {
            converter.convert(objFile.openStream(), BO);
            Node obj = (Node) BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
            obj.setName("OBJ");
            rootNode.attachChild(obj);
        } catch (IOException e) {
            e.printStackTrace();
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.