Sign in to follow this  

Converting 3D Files

This topic is 4813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a converter that can load OpenGL code and save it as another format, such as LightWave? I've seen many converters that load LightWave files and save them as OpenGL, but not the other way around. Does anyone know of such a converter or an easier way to do this?

Share this post


Link to post
Share on other sites
I meant a .c file that contains something such as:

glBegin(GL_TRIANGLES);
glVertex3f(1,1,1);
glVertex3f(1,1,0);
glVertex3f(0,1,0);
glEnd();

Share this post


Link to post
Share on other sites
Look into Anim8or on google. I think it had an export a .h file that contained all the data to create whatever model you wanted. Unfortunately in the version I looked at textures and animation were not supported. Good luck.
~Wave

Share this post


Link to post
Share on other sites

The only way I could see something like this being possible would be if someone wrote a custom OpenGL DLL similar to GLTrace, but instead of it logging OpenGL calls made, it wrote out a 3D model file based on the OpenGL calls it intercepts. I don't know if something like this already exists or has ever been attempted... I'm sure it would be challenging. However, if it was possible, it would be very useful since it would allow a 3D model to be extracted from any running OpenGL program into any 3D file format the custom OpenGL DLL would support.

Share this post


Link to post
Share on other sites

This topic is 4813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this