CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - load file e
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - load file e - List
[
3D Graphic
]
Cload3ds
DL : 0
该类是在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
Date
: 2025-12-24
Size
: 10kb
User
:
郭培
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.