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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值