Click here to Skip to main content
Rate this: bad
good
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 19:20pm
Comments
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 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

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

Solution 1

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.
  Permalink  
Comments
smokindinesh at 9-Nov-11 2:29am
   
thanks
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 250
1 George Jonsson 175
2 Jochen Arndt 150
3 Kornfeld Eliyahu Peter 149
4 PIEBALDconsult 110
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 9 Nov 2011
Copyright © CodeProject, 1999-2014
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