Skip to main content

Milkshape to Java Help?!

No replies
jdfskitz
Offline
Joined: 2009-07-26
Points: 0

For Some DUmb Reason.. whenever i try to use this code

almost everything sais it cant load scene but

the scene wont work itself cause it sais it has a access restriction to
/program files/java/jre6/lib/ext/j3dutils.jar

but i imported those into the program. and added it into the properties menu.. i am using eclipse to do this.. and i am using the milkshape loader

so here is the code

import java.net.URL;
import com.sun.j3d.loaders.*;
import com.glyphein.j3d.loaders.milkshape.MS3DLoader;
import com.sun.j3d.utils.*;

public class shoulders {

try {
Scene s = null;
Loader loader = new MS3DLoader (MS3DLoader.LOAD_ALL);

java.io.File file = new java.io.File("SpikedShoulderPlates.ms3d");
if (file.getParent().length() > 0)
loader.setBasePath(file.getParent() + java.io.File.separator);
Scene scene = loader.load(file.getName());
BranchGroup group = scene.getSceneGroup();

} catch(Exception e) {
e.printStackTrace();
}
}
}