private static void loadNode(Node node) throws IOException { loadTransformable(node); node.setRenderingEnable(readBoolean()); node.setPickingEnable(readBoolean()); int alpha = readByte(); node.setAlphaFactor((float) alpha / 255.0f); node.setScope(readInt()); if (readBoolean()) // hasAlignment { // TODO: set node alignment int zTarget = readByte(); int yTarget = readByte(); readInt(); // zReference readInt(); // yReference } }
private static void loadObject3D(Object3D object) throws IOException { object.setUserID(readInt()); int animationTracks = readInt(); for (int i = 0; i < animationTracks; ++i) readInt(); // object.addAnimationTrack((AnimationTrack)getObject(readInt())); int userParameterCount = readInt(); for (int i = 0; i < userParameterCount; ++i) { int parameterID = readInt(); int numBytes = readInt(); byte[] parameterBytes = new byte[numBytes]; dis.readFully(parameterBytes); } }