Click here to Skip to main content
11,790,816 members (50,757 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ OpenGL
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 at 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 at 9-Nov-11 2:29am
LanFanNinja at 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
0 OriginalGriff 385
1 ppolymorphe 339
2 Richard MacCutchan 118
3 Maciej Los 70
4 George Swan 70
0 OriginalGriff 1,154
1 Maciej Los 825
2 KrunalRohit 686
3 ppolymorphe 660
4 CPallini 621

Advertise | Privacy | Mobile
Web04 | 2.8.1509028.1 | Last Updated 9 Nov 2011
Copyright © CodeProject, 1999-2015
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