I am currently designing an application in C++. Part of this applica开发者_运维技巧tion would be displaying changing 3D objects.
I have designed several bits of these 3D objects in Blender And also am aware of other programs with which to do this (Maya, etc.) However, I am unsure how to use C++ To display these objects, much less manipulate them in response to changing variables. What programs/approaches/disciplines do I need to learn/use in order to accomplish this task?
Just about any game engine will do this for you — and much more. There are plenty of open source and commercial options out there. If you're not writing a game, a more general-purpose engine like OGRE may suit. It only provides resource management and a rendering pipeline, and excludes game-specific cruft like AI and Physics.
I haven't done this myself, but you can export the 3d objects into obj format then load them into a C++ program with OpenGL libraries using http://sourceforge.net/projects/objloader/
If you are using 3DS Max to build those object, you can check out 3DS loader for openGL. This page might be of some use to you
Opengl is fairly low level, Another option you might want to look at is using a so called Scenegraph for what is called retained rendering like OpenScenegraph
精彩评论