3DS to OGL converter

Does anyone know of a free converer that can generate ogl.c files from 3ds files (just mesh) ?

What in the world do you mean by creating a *.c file from a 3ds file?

I wrote something in C++ to read a 3ds file and spit it out to the screen, if that is what you mean… If it is, email me and I can give it to you…

Originally posted by antoan:
Does anyone know of a free converer that can generate ogl.c files from 3ds files (just mesh) ?

I am thinking more along the lines of something that can read 3DS file and express/write the geometry in terms of opengl vertex declarations into a file like:

glBegin()
glVertex3f(1,2,3);


glEnd()
I saw a 3rd party tool which I think does this
called 3Dwin. http://www.tb-software.com/format_info.html

Theres a handy program for this called “3d exploration”
http://www.righthemisphere.com/sitemap.htm

for the free download trial

Allan

Well, what I meant by spitting it out to the screen is that it displays the model made with 3ds max,I did not mean spitting out the values of the vertices and stuff…

Yeah, the code has:

glVertexXXX( 1,2,3 );
.
.
.
.
glEnd();

Ah, a site that also has something for loading 3ds files is: http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg4.htm#FileLoading

I hope this helps.

Mancha,
Thanks 4 the link, the tutorial to which you fowarded me is just what I was looking for. Its a site with a lot of other usefull info to me. I would like to look at your code as well if you dont mind.
Thank you too Allan, I’m just downloading the demo to check it out.