Example: Displaying A 3D .OBJ Model In Cocos2D iPhone v2.x (W/Zooming, Rotation, And Movement)

I’ve mentioned the Cocos3D project that adds a full 3D modelling space to the Cocos2D environment.

Unfortunately as of yet Cocos3D does not support Cocos2D v2+, and there has been a lot of discussion about loading 3D models within Cocos2D.

Today I came across an example demonstrating how to do just that.  This example provides a sample application rendering a Wavefront 3D obj model along with rotation, zooming, and movement transformations.

Here’s an image from the thread showing the example in action:

3D Model Displayed in Cocos2D 2.x

You can find and download the example through this thread in the Cocos2D iPhone forums.

In the example project you’ll see how an object can be loaded and rotated, and you can also swipe along the lines on each side to zoom in and move the object.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Example: Displaying A 3D .OBJ Model In Cocos2D iPhone v2.x (W/Zooming, Rotation, And Movement)

©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *