@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); animClipMap = (Map<String, AnimClip>) ic.readStringSavableMap("animClipMap", new HashMap<String, AnimClip>()); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); terrain = (TerrainQuad) ic.readSavable("terrain", null); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); controlDir = ic.readEnum(CONTROL_DIR_NAME, ControlDirection.class, ControlDirection.SpatialToCamera); camera = (Camera)ic.readSavable(CAMERA_NAME, null); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); controlDir = ic.readEnum(CONTROL_DIR_NAME, ControlDirection.class, ControlDirection.SpatialToLight); light = (Light) ic.readSavable(LIGHT_NAME, null); }
@Override public void read(final JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); terrain = (Terrain) ic.readSavable("terrain", null); lodCalculator = (LodCalculator) ic.readSavable("lodCalculator", new DistanceLodCalculator()); useRenderCamera = ic.readBoolean("useRenderCamera", false); } }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); trisPerPixel = ic.readFloat("trisPerPixel", 1f); distTolerance = ic.readFloat("distTolerance", 1f); numLevels = ic.readInt("numLevels", 0); numTris = ic.readIntArray("numTris", null); } }
@Override public void read(JmeImporter e) throws IOException { super.read(e); InputCapsule capsule = e.getCapsule(this); orient = (Matrix3f) capsule.readSavable("orient", null); look = (Vector3f) capsule.readSavable("look", null); left = (Vector3f) capsule.readSavable("left", null); alignment = capsule.readEnum("alignment", Alignment.class, Alignment.Screen); } }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule in = im.getCapsule(this); skeleton = (Skeleton) in.readSavable("skeleton", null); HashMap<String, Animation> loadedAnimationMap = (HashMap<String, Animation>) in.readStringSavableMap("animations", null); if (loadedAnimationMap != null) { animationMap = loadedAnimationMap; } if (im.getFormatVersion() == 0) { // Changed for backward compatibility with j3o files generated // before the AnimControl/SkeletonControl split. // If we find a target mesh array the AnimControl creates the // SkeletonControl for old files and add it to the spatial. // When backward compatibility won't be needed anymore this can deleted Savable[] sav = in.readSavableArray("targets", null); if (sav != null) { // NOTE: allow the targets to be gathered automatically skeletonControl = new SkeletonControl(skeleton); spatial.addControl(skeletonControl); } } } }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule in = im.getCapsule(this); skeleton = (Skeleton) in.readSavable("skeleton", null); numberOfBonesParam = (MatParamOverride) in.readSavable("numberOfBonesParam", null); boneMatricesParam = (MatParamOverride) in.readSavable("boneMatricesParam", null); if (numberOfBonesParam == null) { numberOfBonesParam = new MatParamOverride(VarType.Int, "NumberOfBones", null); boneMatricesParam = new MatParamOverride(VarType.Matrix4Array, "BoneMatrices", null); getSpatial().addMatParamOverride(numberOfBonesParam); getSpatial().addMatParamOverride(boneMatricesParam); } }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule in = im.getCapsule(this); armature = (Armature) in.readSavable("armature", null); numberOfJointsParam = (MatParamOverride) in.readSavable("numberOfBonesParam", null); jointMatricesParam = (MatParamOverride) in.readSavable("boneMatricesParam", null); if (numberOfJointsParam == null) { numberOfJointsParam = new MatParamOverride(VarType.Int, "NumberOfBones", null); jointMatricesParam = new MatParamOverride(VarType.Matrix4Array, "BoneMatrices", null); getSpatial().addMatParamOverride(numberOfJointsParam); getSpatial().addMatParamOverride(jointMatricesParam); } }
@Override public void read(JmeImporter im) throws IOException { super.read(im); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule in = im.getCapsule(this); skeleton = (Skeleton) in.readSavable("skeleton", null); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); controlDir = ic.readEnum(CONTROL_DIR_NAME, ControlDirection.class, ControlDirection.SpatialToLight); light = (Light)ic.readSavable(LIGHT_NAME, null); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); controlDir = ic.readEnum(CONTROL_DIR_NAME, ControlDirection.class, ControlDirection.SpatialToLight); light = (Light) ic.readSavable(LIGHT_NAME, null); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); controlDir = ic.readEnum(CONTROL_DIR_NAME, ControlDirection.class, ControlDirection.SpatialToCamera); camera = (Camera)ic.readSavable(CAMERA_NAME, null); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); controlDir = ic.readEnum(CONTROL_DIR_NAME, ControlDirection.class, ControlDirection.SpatialToCamera); camera = (Camera)ic.readSavable(CAMERA_NAME, null); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); state = ic.readEnum("state", FridgeDoorControl.STATE.class, FridgeDoorControl.STATE.CLOSED); angularSpeed = ic.readFloat("angularSpeed", FastMath.HALF_PI * 0.7f); openingAngle = ic.readFloat("openingAngle", FastMath.HALF_PI * 0.7f); }
@Override public void read(JmeImporter e) throws IOException { super.read(e); InputCapsule capsule = e.getCapsule(this); orient = (Matrix3f) capsule.readSavable("orient", null); look = (Vector3f) capsule.readSavable("look", null); left = (Vector3f) capsule.readSavable("left", null); alignment = capsule.readEnum("alignment", Alignment.class, Alignment.Screen); } }
@Override public void read(JmeImporter im) throws IOException{ super.read(im); InputCapsule ic = im.getCapsule(this); trisPerPixel = ic.readFloat("trisPerPixel", 1f); distTolerance = ic.readFloat("distTolerance", 1f); numLevels = ic.readInt("numLevels", 0); numTris = ic.readIntArray("numTris", null); }
@Override public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); trisPerPixel = ic.readFloat("trisPerPixel", 1f); distTolerance = ic.readFloat("distTolerance", 1f); numLevels = ic.readInt("numLevels", 0); numTris = ic.readIntArray("numTris", null); } }