Sign in to follow this  
Thanhda

SDL MD2 Loader?

Recommended Posts

Thanhda    100
hi i was wondering if anyone knew of any SDL OGL loader that doesnt use windows.h. cone3d seems to have one, but none of its code works, and the code is not downloadable. if anyone can help me out that would be great thanks.

Share this post


Link to post
Share on other sites
Drew_Benton    1861
Well there is a OpenGL MD2 Model Loader here. To get to it, click on Tutorials->OpenGL->Page 8. There are two there, one for loading and animating. However since they are in Win32, I made a quick port to SDL. Took 2 minutes [lol]. Here it is.

You can compare what I did to the original if you want to use the Animating Tutorial. If you have any questions on it feel free to ask - the MD2 code itself will work on anything - it's just the demo program that shows how to use it is for Win32. In my example, I just used that OpenGL SDL example from that last post [grin].

From all of your posts I see you are going for a cross platform FPS?

- Drew

Share this post


Link to post
Share on other sites
Thanhda    100
Quote:
Original post by Drew_Benton
Well there is a OpenGL MD2 Model Loader here. To get to it, click on Tutorials->OpenGL->Page 8. There are two there, one for loading and animating. However since they are in Win32, I made a quick port to SDL. Took 2 minutes [lol]. Here it is.

You can compare what I did to the original if you want to use the Animating Tutorial. If you have any questions on it feel free to ask - the MD2 code itself will work on anything - it's just the demo program that shows how to use it is for Win32. In my example, I just used that OpenGL SDL example from that last post [grin].

From all of your posts I see you are going for a cross platform FPS?

- Drew


haha thanks a lot for all the help. and yes i am trying to make a cross platform game. but not an fps, trying to make a 3rd person adventure, i just thought it would be easier by using md2 file format. BTW do you know of any good sdl bsp map importers?

Share this post


Link to post
Share on other sites
Drew_Benton    1861
Same site, OpenGL page 7 [grin] They have two tutorials on it. It in the same format as the MD2 , Win32 - you just need the files with it. The demo files only show you how to work it. You can add it to your own SDL project.

Share this post


Link to post
Share on other sites

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