我在一个3D应用程序中工作,我需要加载一个大的3D模型。cocos3D不能呈现它,但Ogre3d (www.ogre3d.org)可以。
我尝试将orge3d添加为视图控制器,但幸运的是,我无法添加。Orge3d创建一个uiwindow对象
UIWindow* uiWindow;
RenderWindow* mWindow = Ogre::Root::getSingleton().getAutoCreatedWindow();
mWindow->getCustomAttribute("WINDOW", &uiWindow);我的应用程序是一个导航应用程序,在添加3D模型之前,我需要推送一些视图控制器,所以我不知道该怎么做。有人能帮上忙吗?
谢谢。
发布于 2013-01-17 19:38:44
Ogre3d提供OgreView和EAGLViewController。
因此,我相信您可能会直接实例化视图或控制器,然后通过以下方式初始化ogre:
[self initOgreWithWnd:nil andView:glview];或
[self initOgreWithWnd:nil andView:glController.view];我会尝试直接实例化控制器,不过,看起来让一切正常工作可能会比这复杂得多,如this discussion所示。
https://stackoverflow.com/questions/14377904
复制相似问题