Click here to Skip to main content
13,052,900 members (63,845 online)
Rate this:
Please Sign up or sign in to vote.
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 8-Nov-11 18:20pm
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

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

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Well you can check this out[^]. 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.
smokindinesh 9-Nov-11 2:29am
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 9 Nov 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100