Back to project page min3d.
The source code is released under:
MIT License
If you think the Android project min3d listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.min3d; // w ww .j av a 2 s. co m import com.min3d.lib.IParser; import com.min3d.lib.Parser; import com.min3d.lib.animation.AnimationObject3d; import com.min3d.lib.core.RendererActivity; import com.min3d.lib.vos.Light; public class ExampleLoadMD2File extends RendererActivity { private AnimationObject3d ogre; @Override public void initScene() { scene.lights().add(new Light()); IParser parser = Parser.createParser(Parser.Type.MD2, getResources(), R.raw.ogro, getPackageName(), false); parser.parse(); ogre = parser.getParsedAnimationObject(); ogre.scale().x = ogre.scale().y = ogre.scale().z = .07f; ogre.rotation().z = -90; ogre.rotation().x = -90; scene.addChild(ogre); ogre.setFps(70); ogre.play(); } @Override public void updateScene() { } }