Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a solid sphere with texture and without animation in Blender.I have exported it in md2 file format.Now I want to load it with OpenGL using c++.Iam new in programming,I have learned about md2 file formate but can't write code to load it so please provide me code or any site link where I will get code. Thanks you
Posted
Comments
Andrew Brock 9-Nov-11 1:40am    
I would suggest using the Wavefront Object format (.OBJ) instead. This is the industry standard for sharing models and meshes. It is widely used, and there is no doubt a loader for it, see https://encrypted.google.com/search?hl=en&q=opengl+obj

It supports pretty much everything except for character animations, and Blender has both import and export scripts for it.

1 solution

Well you can check this out http://content.gpwiki.org/index.php/OpenGL:Tutorials:Tutorial_Framework:MD2Animation[^]. Might I suggest that you use a graphics engine (at least until you get better at programming) some engines I know of are Irrlicht (fairly easy to get started with) and Ogre (more difficult to get started with but a better engine IMO). There are more engines out there as well both free/open source and commercial just google for c++ graphics engine, game engine, or similar.
 
Share this answer
 
Comments
smokindinesh 9-Nov-11 2:29am    
thanks
LanFanNinja 9-Nov-11 2:33am    
Your welcome. Hope it helped you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900