Examples of BlenderFileException


Examples of com.jme3.scene.plugins.blender.file.BlenderFileException

                break;
            case 4:// Area
                light = new DirectionalLight();
                break;
            default:
                throw new BlenderFileException("Unknown light source type: " + type);
        }
        if (light != null) {
            float r = ((Number) structure.getFieldValue("r")).floatValue();
            float g = ((Number) structure.getFieldValue("g")).floatValue();
            float b = ((Number) structure.getFieldValue("b")).floatValue();
View Full Code Here

Examples of com.jme3.scene.plugins.blender.file.BlenderFileException

        Class<? extends ConstraintDefinition> constraintDefinitionClass = CONSTRAINT_CLASSES.get(constraintClassName);
        if (constraintDefinitionClass != null) {
            try {
                return (ConstraintDefinition) constraintDefinitionClass.getDeclaredConstructors()[0].newInstance(constraintStructure, ownerOMA, blenderContext);
            } catch (IllegalArgumentException e) {
                throw new BlenderFileException(e.getLocalizedMessage(), e);
            } catch (SecurityException e) {
                throw new BlenderFileException(e.getLocalizedMessage(), e);
            } catch (InstantiationException e) {
                throw new BlenderFileException(e.getLocalizedMessage(), e);
            } catch (IllegalAccessException e) {
                throw new BlenderFileException(e.getLocalizedMessage(), e);
            } catch (InvocationTargetException e) {
                throw new BlenderFileException(e.getLocalizedMessage(), e);
            }
        } else {
            String constraintName = UNSUPPORTED_CONSTRAINTS.get(constraintClassName);
            if (constraintName != null) {
                return new UnsupportedConstraintDefinition(constraintName);
            } else {
                throw new BlenderFileException("Unknown constraint type: " + constraintClassName);
            }
        }
    }
View Full Code Here

Examples of com.jme3.scene.plugins.blender.file.BlenderFileException

            case TEX_ENVMAP:
            case TEX_OCEAN:
                LOGGER.log(Level.WARNING, "Unsupported texture type: {0} for texture: {1}", new Object[] { type, tex.getName() });
                break;
            default:
                throw new BlenderFileException("Unknown texture type: " + type + " for texture: " + tex.getName());
        }
        if (result != null) {
            result.setName(tex.getName());
            result.setWrap(WrapMode.Repeat);
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.