文件名称:Cload3ds
介绍说明--下载内容均来自于网络,请自行研究使用
该类是在qt4.6上运行通过,是我将网上流传的两个文件进行了整合,使得适用于qt了,加载了3ds文件成功显示。注意头文件。
使用方法:
CLoad3DS *m_3ds_p = new CLoad3DS()
m_3ds_p->Init("e:/plane1.3ds",0)
//以上代码置于OpenGL的Init部分
//以下代码置于OpenGL画图部分
m_3ds_p->show3ds(0,50,50,-50,10.0)
说明:上面的0表示绑定的模型ID,该类可以绑定0~9个模型,分别进行显示
50,50,-50是程序员将该模型置于空间中的xyz坐标,10.0是该模型的放大倍数
如果要旋转的话自己使用OpenGL提供的选装函数吧-The class is run by the qt4.6 that I will be circulated on the Internet integration of the two documents were made applicable to qt, and load the 3ds file a successful show. Note that header file. Usage: CLoad3DS* m_3ds_p = new CLoad3DS () m_3ds_p-> Init (" e:/plane1.3ds" , 0) // more code in the Init OpenGL part of// the following code in the OpenGL drawing some m_3ds_p- > show3ds (0,50,50,-50,10.0) Note: The above model 0 that bind ID, the class can be bound to 0 ~ 9 models were for display 50,50,-50 programmers The model is placed in the xyz coordinate space, 10.0 is the magnification of the model so if you want to spin their own use OpenGL functions it provides optional
使用方法:
CLoad3DS *m_3ds_p = new CLoad3DS()
m_3ds_p->Init("e:/plane1.3ds",0)
//以上代码置于OpenGL的Init部分
//以下代码置于OpenGL画图部分
m_3ds_p->show3ds(0,50,50,-50,10.0)
说明:上面的0表示绑定的模型ID,该类可以绑定0~9个模型,分别进行显示
50,50,-50是程序员将该模型置于空间中的xyz坐标,10.0是该模型的放大倍数
如果要旋转的话自己使用OpenGL提供的选装函数吧-The class is run by the qt4.6 that I will be circulated on the Internet integration of the two documents were made applicable to qt, and load the 3ds file a successful show. Note that header file. Usage: CLoad3DS* m_3ds_p = new CLoad3DS () m_3ds_p-> Init (" e:/plane1.3ds" , 0) // more code in the Init OpenGL part of// the following code in the OpenGL drawing some m_3ds_p- > show3ds (0,50,50,-50,10.0) Note: The above model 0 that bind ID, the class can be bound to 0 ~ 9 models were for display 50,50,-50 programmers The model is placed in the xyz coordinate space, 10.0 is the magnification of the model so if you want to spin their own use OpenGL functions it provides optional
(系统自动生成,下载前可以参看下载内容)
下载文件列表
说明.txt
cload3ds_1.h
CBMPLoader.cpp
cload3ds_1.cpp
CBMPLoader.h
cload3ds_1.h
CBMPLoader.cpp
cload3ds_1.cpp
CBMPLoader.h