Package com.jmex.model.converters

Examples of com.jmex.model.converters.MaxToJme


        n.getLocalRotation().fromAngles(2.1f, 1.8f, i);
    }

    @SuppressWarnings("unused")
    private void load3DS() {
        MaxToJme converter = new MaxToJme();
        URL objFile = getClass().getResource("/models/test01.3ds");
        ByteArrayOutputStream BO = new ByteArrayOutputStream();
        try {
            converter.convert(objFile.openStream(), BO);
            Node obj = (Node) BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
            obj.setName("OBJ");
            n = obj;
            rootNode.attachChild(obj);
        } catch (IOException e) {
View Full Code Here


        n.getLocalRotation().fromAngles(2.1f, 1.8f, i);
    }

    @SuppressWarnings("unused")
    private void load3DS() {
        MaxToJme converter = new MaxToJme();
        URL objFile = getClass().getResource("/models/test01.3ds");
        ByteArrayOutputStream BO = new ByteArrayOutputStream();
        try {
            converter.convert(objFile.openStream(), BO);
            Node obj = (Node) BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
            obj.setName("OBJ");
            n = obj;
            rootNode.attachChild(obj);
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of com.jmex.model.converters.MaxToJme

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.