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) .
本文介绍如何创建自己的3D模型并将其转换为3ds格式。使用view3ds.exe程序在命令行中查看3D模型,并将其转换为OpenGL文件格式。在项目中包含相应的头文件,使用GL3DS_initialize_函数加载模型,并通过调用glCallList显示模型。
724





