Converting Lightwave Objects to OpenGL ES for iPhone SDK


#1

Does anyone have any experience converting LW Objects into a format for OpenGL ES.

This is the hardware accelerated format for Apple’s iPhone SDK. I found a short sample code on the iPhone developer’s website @ http://developer.apple.com/iphone/index.action listed under “Sample Code>GLteapot” that runs a 3D model of the OpenGL teapot in real time 3d. (you have to register to login…)

This sample code package includes a header file labled, “teapot.h” which includes the data for the teapot vertices, normals, etc. under “float teapot_vertices [] = {, float teapot_normals [] = {, ect.”

Is there a way that I could convert one of my own LW model’s data into this format? The sample code simply allows the user to spin/rotate the teapot object around similar to a QTVR experience. Although I don’t even own and iPhone, I’m still interested in toying with the iPhone SDK. Unfortunately OpenGL doesn’t run in the SDK emulator (yet…), but that’s another issue :slight_smile:


#2

Yes it can be done, i’m not sure of any easy automated way, but you could manually do it, or even likely use a program like Deep Exploration which can convert from .lwo to at least OGL.

There are other likely ways and programs of translating it, scripts and plugins could be fairly easy to write. But having said all of that LW9.5 will have FBX/Collada, Collada in particular will be a good format to convert to OGL-ES as there are already a wealth of tools to do this from Collada.


#3

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.