开发者

Why doesn't the object show up in the scene?

I am using the following code to load .md2 model in a scene using Papervision3D 2.1.932.

_md2.load(MD2_FILE ,new Bi开发者_运维问答tmapFileMaterial("./assets/dragon.png"));
scene.addChild(_md2);

By looking at the trace log, the texture is successfully loaded and so is the mesh.

INFO: BitmapFileMaterial: Loading bitmap from ./assets/dragon.png 
INFO: Parsed MD2: assets/dragon.md2
 vertices:294
 texture vertices:262
 faces:582
 frames: 200

I can't understand why the object isn't visible in the scene.

Can anyone help me out ?


Check that the camera is facing the model. Check the scale by comparing with other md2 models that showup with no problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜