0

heres the code i put

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


public class shoulders {
	
  	try
	{	
  		Scene s = null;
  		Loader loader = new MS3DLoader (MS3DLoader.LOAD_ALL);	// .ms3d Loader

  		
  		java.io.File file = new java.io.File("./model.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 (java.net.MalformedURLException ex1){	
      	}
      	catch (java.io.FileNotFoundException ex){
      	}
}
}

is has errors where is sais loader.setbasepath(file.getparent() + java.io.File.seperator);
Scene scene = loader.load(file.getName());
BranchGroup group = scene.getSceneGroup();

and where it sais

Scene s = null

Loader loader = new MS3DLoader (MS3DLoader.LOAD_ALL);

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by jdfskitz
0

i just imported

import com.sun.j3d.utils.*;

cause it sais that it has access restrictions to /program file/java/jre6/lib/ext/j3dutils.jar

but it didnt change a thing

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.