Min3d不显示任何内容(来自Min3d Wiki的示例) [英] Min3d doesn't show anything (in sample from min3d wiki)

查看:58
本文介绍了Min3d不显示任何内容(来自Min3d Wiki的示例)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 min3d库

以前,我已经从市场下载了带有min3d库示例的apk文件.此应用程序中的每个示例都可以在真实电话上正常运行.这表示手机在3d上没有问题.

Previously I have downloaded apk file from market with examples of min3d library. Every example in this application works fine on real phone. It means phone has not problems with 3d.

我用示例检查了min3d的源代码,并创建了一个简单的Android应用程序,并从示例中复制了单个活动:

I have chekouted source code of min3d with examples and created simple Android application with single activity copypasted from examples:

import min3d.core.Object3dContainer;
import min3d.core.RendererActivity;
import min3d.objectPrimitives.Box;
import min3d.vos.Light;

public class ExampleMostMinimal extends RendererActivity {
    Object3dContainer _cube;

    public void initScene() 
    {
        scene.lights().add( new Light() );
        _cube = new Box(1,1,1, null, true,true,false);
        _cube.colorMaterialEnabled(false);
        scene.addChild(_cube);
    }

    @Override 
    public void updateScene() 
    {
        _cube.rotation().y++;
    }
}

但是,当应用程序启动时,它会显示标题栏和黑屏.

But when application launched it shows title bar and black screen.

请帮助.

推荐答案

我解决了这个问题.

原因在于min3d文件的来源.我有 nyARToolkit 框架示例的框架文件.

The reason was in source of min3d files. I've got framework files from example of nyARToolkit framework.

当我用从min3d Google存储库中检出的文件替换文件时,问题已解决.

When I replaced the files by files checked out from min3d google repository, problem was resolved.

p.s.我从示例中复制了文件,因为nyARToolkit示例中的min3d可以正常工作.

p.s. I copied files from example because min3d in example of nyARToolkit works fine.

这篇关于Min3d不显示任何内容(来自Min3d Wiki的示例)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆