I don’t understand your problem, the textures just work fine:
http://img184.imageshack.us/my.php?image=ninjatextas8.jpg
You know that you have to asign the textures manually ( in the most cases ) ?
URL tex=PlayerModel.class.getClassLoader().getResource("models/nskinwh.jpg");
...
TextureState ts=display.getRenderer().createTextureState();
ts.setTexture(TextureManager.loadTexture(tex,Texture.MM_LINEAR,Texture.FM_LINEAR));
ts.setEnabled(true);
yourmodel.setRenderState(ts);
I didn't know that =]] tyvm!
Alric
3
The Milkshape importer will load textures automatically, if you have added them in Milkshape and it can find them.
I often think it's better to load them manually as above though.
So the model I have in there is playing through all of it's animation cycles… how do I tell it to play something like frames 20-30, so it just walks?
skyuzo
5
JointController controller = (JointController) model.getController(0);
controller.setActive(true);
controller.setTimes(startFrame, endFrame);
controller.setRepeatType(Controller.RT_CLAMP);