Example project for the Cheetah3D header converter

by Rob Bajorek on June 8, 2009

Some folks have asked me for examples of how my Cheetah3D -> iPhone header converter works. To help you out, I’m posting an Xcode project that I’m using to test the converter.

You can get it here: C3DConverterTest.tgz

This project renders four different shapes generated in Cheetah3D. It’s pretty simple; a lot of the code is from the Xcode’s standard OpenGL ES project template. I’ve added lighting to show that the normals work properly, though.

Some notable files:

  • 4 shapes.jas — the Cheetah3D project
  • 4 shapes.h — the header file exported from Cheetah3D. You can run this through the converter yourself if you like.
  • 4 shapes_iphone.h — the header file made by my converter
  • pure_colors.jpg — A simple texture. Replace this with your own for a different look.

I hope this helps!  Let me know if you have questions or comments.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • Slashdot
  • StumbleUpon

Leave a Comment

Powered by WP Hashcash

Previous post:

Next post: