PDA

View Full Version : 3DS to OGL converter



antoan
07-09-2002, 02:58 PM
Does anyone know of a free converer that can generate ogl.c files from 3ds files (just mesh) ?

Miguel_dup1
07-10-2002, 06:48 AM
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) ?

antoan
07-11-2002, 01:31 AM
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

Allan Walton
07-11-2002, 03:06 AM
Theres a handy program for this called "3d exploration"
http://www.righthemisphere.com/sitemap.htm

for the free download trial

Allan

Miguel_dup1
07-11-2002, 09:54 AM
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();

Miguel_dup1
07-11-2002, 09:56 AM
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. http://www.opengl.org/discussion_boards/ubb/smile.gif

antoan
07-11-2002, 12:49 PM
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.