我已经下载了最新的Rajawali示例。我试图加载从互联网上下载的.FBX文件
我的课在这里
try {
LoaderFBX parser = new LoaderFBX(this,
R.raw.wolf_fbx);
parser.parse();
Object3D o = parser.getParsedObject();
o.setY(-.5f);
getCurrentScene().addChild(o);
} catch (ParsingException e) {
e.printStackTrace();
}
此代码抛出java.util.EmptyStackException
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: org.rajawali3d.loader.ParsingException: java.util.EmptyStackException
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: at org.rajawali3d.loader.fbx.LoaderFBX.parse(LoaderFBX.java:140)
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: at com.monyetmabuk.rajawali.tutorials.examples.loaders.FBXFragment$FBXRenderer.initScene(FBXFragment.java:68)
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: at org.rajawali3d.renderer.Renderer.onRenderSurfaceSizeChanged(Renderer.java:346)
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: at org.rajawali3d.view.TextureView$GLThread.guardedRun(TextureView.java:1266)
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: at org.rajawali3d.view.TextureView$GLThread.run(TextureView.java:997)
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: Caused by: java.util.EmptyStackException
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: at java.util.Stack.peek(Stack.java:102)
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: at org.rajawali3d.loader.fbx.LoaderFBX.readLine(LoaderFBX.java:602)
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: at org.rajawali3d.loader.fbx.LoaderFBX.parse(LoaderFBX.java:136)
04-29 19:33:11.657 17786-17906/com.monyetmabuk.rajawali.tutorials W/System.err: ... 4
有什么想法吗?