首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 简单的二进制格式的OBJ网格变换。该程序还可以生成和添加切线坐标到顶点。

简单的二进制格式的OBJ网格变换。该程序还可以生成和添加切线坐标到顶点。

资 源 简 介

Obj is the simplest and most widely supported format. However it is not well suited for their direct use in videogames. Another problem arise when you want to use normal mapping, because tangents are needed if you want to use tangent-space normalmaps; but only space coords, normals and uv are available per vertex. This tiny program parses an obj file, generates tangents and rewrites the "augmented" mesh in a very simple binary format. //byte flag -> XXXX XXNT N = Normals; T = Tangents //int nVertices -> number of vertices //int nTriangles -> number of triangles // foreach vertex // float x float y float z // float u float v // short nx ny nz // short tx ty tz // foreach triangle //unsigned short vi1 vi2 vi3

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.214716s