Hi, Hmmm...I might be mistaking but it seems but from what I know MD2 and AC3D are not the same kind of files.
I used the MD3 loader for this animation http://www.la-cfd.com/cassos/test/md3/index.html (need webstart) only yet so I don't know everything but here what I figured out: //load the model and add it to a branch MD3Loader loader = new MD3Loader(); MD3Model model = loader.loadCharacterModel("whatever"); //load the data with whatever as prefix MD3ModelInstance modelInstance = model.getInstance(); MD3ModelInstance rootBranchGroup.addChild(modelInstance); Now a few things to know: - you can download models from the internet as .pk3 files. pk3 is just a compressed archive you can uncompress using some tool (I used winzip) - the files need to be on the classpath as the loader looks for them in the ressources. The prefix indicates which directory/package the loader will look for - apparently the loader "guess" the location of the other files (textures...) using a standard directory structure. The problem I ran into (perhaps because of a bad use) is that the loader didn't guess well so I had to copy back the models\players\whatever structure under my prefix. - MD3Model is NOT a singleton: every call to the getInstance() method will create and return a NEW instance, so you better not loose the one you get. - the animation is set using modelInstance.setAnimation("lower", MD3AnimConfig.IDLE); - and it is 'played' by calling modelInstance.nextFrame("lower"); from what I understand, it is up to you to call this method every time you want to switch frames - you might have noticed that there are 3 parts: upper, lower, head Well that's all I see as a short answer. Hope it'll help Alec *********** REPLY SEPARATOR *********** On 12/05/2004 at 14:03 *V* wrote: >Hi all i am from Italy, i' new on this list :) > >now the response.. > > >import in the code: > >import org.newdawn.j3d.loaders.ac3d.AC3DLoader; >import org.newdawn.j3d.loaders.ac3d.AC3DModel; >import java.net.URL; > >then load the object... > >String src = "myfile.ac" ; >BranchGroup modelBranch = null; >try { > AC3DModel model = AC3DLoader.load(new URL("file:"+src)); > modelBranch = model.createInstance(); >} catch (Exception e) { > System.err.println("Error importing object " + src + ": " + e); > e.printStackTrace(); >} > > >now append model Branch to your world :) > >bye >Hi, all, > I downloaded md3 loader from http://www.newdawnsoftware.com/. But I do >not know how to use this loader, for I have not used it before. I hope >somebody who ever used it can help me. > > > > > > >Best regards! > > > > > Zch > >=========================================================================== >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff JAVA3D-INTEREST". For general help, send email to >[EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".