NeHe OpenGL Lesson31 – Model Loading

screen_shot15-300x225 This sample shows us how to parse, load and display texture mapped Milkshape3D models.

Milkshape3D is a free modeling package. Of course it is not popular as Maya or 3D Max. If you want to save money or avoid license problem, Milkshape3D should be a good choice for you.
A Milkshape3D file format parser also provided here. This parser written with native c++ code without using MS3D(short for Milkshape3D) sdk library(I am not sure whether it had some sdks or not). And MS3D format is not a kind of popular file format like FBX, so this may cause some serious problem as versions updating. We have to read those murky TDD and modify our code and even re-write the reading code. Well, all that is beyond this sample. Loading the file from the disc, read vertex position, mesh triangles, texture coordinates, materials and textures, then display the what you read on the screen with OpenGL API.

The full source code could be checked from here.

原文链接: https://www.cnblogs.com/open-coder/archive/2012/08/23/2651853.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    NeHe OpenGL Lesson31 – Model Loading

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/60700

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月9日 上午9:34
下一篇 2023年2月9日 上午9:35

相关推荐