现在的位置: 首页 > 综合 > 正文

Load 3D Model in OpenGL

2013年01月08日 ⁄ 综合 ⁄ 共 411字 ⁄ 字号 评论关闭

Create your own 3D model, then convert to 3ds fromat. Use the view3ds.exe program in the command line to view the 3D model. When it shows, click the window and select "convert to Opengl c files" or press key "E". After that you'll see a *.gl and  *.h files the same place where your 3D model is.(* represents your model file name.)

In your project, include *.h file and use Model = GL3DS_initialize_*()  to creat the model.

To show the model, you just need to call glCallList(Model) .

View3ds.exe

抱歉!评论已关闭.