开发者

3-d animation in C++

开发者 https://www.devze.com 2023-02-11 17:16 出处:网络
I am doing a scientific project in C++ and I need to draw simple animated 3-d images of moving atomic groups. What is a good and convenient graphics library to do that? Some general remarks are also a

I am doing a scientific project in C++ and I need to draw simple animated 3-d images of moving atomic groups. What is a good and convenient graphics library to do that? Some general remarks are also appreciated. I work in Linux.

Thank you in adva开发者_JAVA百科nce, Roman


OpenGL of course,

one library you could use is glut for that.

have a look on http://nehe.gamedev.net/


If you want to show 3D in linux, you should use OpenGL. But since it is a C library, you can use a wrapper, like for example glt or sfml


The easiest library to use is Vtk. A more difficult and slower, but potentially better rasterization can be achieved using POVRAY.


I suggest looking at game oriented graphics engines. They provide OO wrappers around openGL and have lots of utility functions for loading 3d model formats etc.

If you don't want to get bogged down in writing the graphics, a game oriented renderer is likely the fastest way for you to get stuff on screen.

Ogre may be a good choice - it has a fairly large and helpful community.

Irrlicht is another possibility.


There are several possibilities, some perhaps more suitable than others, obviously!

I think any one of the options mentioned above would serve to do so.

I personally recommend OSG.

http://www.openscenegraph.org/projects/osg

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号