Converting 3D Files
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?
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();
glBegin(GL_TRIANGLES);
glVertex3f(1,1,1);
glVertex3f(1,1,0);
glVertex3f(0,1,0);
glEnd();
I think he means a tool that can convert code from one programming language to another. (Code containing OpenGL calls)
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
~Wave
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement