Archived

This topic is now archived and is closed to further replies.

Badone

Help with loading models.

Recommended Posts

Badone    122
Hi, I''ve already searched through the forum on this and I couldn''t find anything. I saw nehe''s tutorial showed how to load ms3d models, but does anyone know of a place to get them? It''s just for a little math extra credit project at school, a review game. Also, I found a couple really need md2 models but I can''t figure out how to load them in. I''ve looked through many tutorials on the subject but none of them have worked for me. I tried using the one out of the OpenGL Game Programming book but it just gives me either a zoomed in screen of my desktop or an error from some .dll file. Any help on this subject would be very much appreciated. I have a trial of Milkshape so I guess I could try to make some, but if there is another format that is easy to load, and you can get free models for, I would appreciate it if you could let me know. Thanks again :O)

Share this post


Link to post
Share on other sites
masonium    118
model loading isn''t too hard to do if you''re adept at reading files with fopen, fclose, etc. You might want to check the documentation of the format that you want to load.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
I believe MilkShape can open 3DS files and such, so you could just get some from free models from http://www.3dcafe.com/asp/meshes.asp
Then open them in MilkShape and save them as ms3d and use NeHe''s tutorial to load them.

Share this post


Link to post
Share on other sites
Badone    122
I''ve already imported the md2 files into Milkshape, and I will try 3ds files, but when you import them, does it keep all the animation? I want to have the walking, dying, and winning or taunting animations that came with the models. Thanks.

Share this post


Link to post
Share on other sites
Badone    122
I got the code from The OpenGL Game Programming book and it works with the 2 models that it came with, but when I try and put my own models in there it doesn''t work. And it''s not that the mesh won''t load, I don''t get anything. Any help on this would be greatly appreciated.

Share this post


Link to post
Share on other sites
HellRiZZer    308
I''ve got MD2 loading code working as well as someone else where I took it from and heavily modified.
If you need it, ICQ me on 42699190 or reply here, and I''ll send you the source.

Cheers.

Share this post


Link to post
Share on other sites