Hi,
i need to add a 3d model viewer functionality to an existing iphone app. User should be able to click a button and then a new view with the 3d model displayed should appear. The view should not be fullscreen. Once the view becomes visible i want to laod a 3d model and display it.
I know cocos3d can display 3d models easily but i'm not sure if i can do the following:
1) setup xcode so i can use cocos3d inside an app that started without using it...
2) display cocos3d layer in a reusable custom view. I think i need to manually create an opengl view and set it to the CCDirector. This view is then added to the existing UI. Maybe this view may always exist in memory but become visible only if needed (performance issue?). The 3d model should be rotated touching the view but i suppose that's very easy to do with cocos3d (or just manipulating view matrix, i'm familiar with 3d programming on other platforms)
3) start/stop the CCDirector update/render on demand (as i said above, i could just hide the opengl view when i don't want to render it)
please someone could tell me best method to achieve the above points? I already used cocos2d (not 3d) in the past.
Alternative solution would be to drop cocos at all and use pure opengl es, but i fear it could be very hard to learn and i need to finish the project in a couple of weeks...
Please help!