資源簡介
OpenGL 開發的一個人體模型。集成逆運動學(Inverse Kinematics , IK)算法, 點擊鼠標右鍵,手會自動觸摸目標。點擊上下左右方向鍵,可移動目標的位置。
運行環境 : Visual Studio
代碼片段和文件信息
#pragma?comment(?lib?“winmm.lib“?)
#pragma?comment(?lib?“GlU32.lib“?)
#pragma?comment(?lib?“glut32.lib“)
#pragma?comment(lib?“OpenGL32.Lib“)
#include?????????????//?Window?defines
#include???????????????//?OpenGL
#include??????????????//?GLU?library
#include?
//#include?“resource.h“???????????//?About?box?resource?identifiers.
#define?GL_PI?3.1415f?//?Define?a?constant?for?the?value?of?PI
//
// variable?declarations
//
//?data?structure?for?body?information
struct?HumanBody?{
GLfloat?xArmRot1; //?+?is?swinging?forward?at?shoulder [right]
GLfloat?yArmRot1; //?-?is?opening?arms?at?shoulder. [right]
GLfloat?zArmRot1; //?+?is?twisting?arm?along?axis1 [right]
GLfloat?xElbowRot1; //?+?is?bending?lower?arm?at?elbow [righ
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-03-28?22:23??HumanModelSimulator\
?????文件???????27136??2010-03-28?22:23??HumanModelSimulator\ReadMe.doc
?????文件???????43883??2010-03-28?22:13??HumanModelSimulator\simulator.cpp
- 上一篇:大型企業信息化建設方案
- 下一篇:數字電子技術課程設計—數字密碼鎖的設計
評論
共有 條評論