Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments