本文介绍了在min3d framwork的Andr​​oid .OBJ模型缺少质感的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照这样tuttorial:

I am following this tuttorial:http://www.mat-d.com/site/tutorial-load-a-3d-obj-model-with-min3d-for-android/

这是我的MTL文件:

    newmtl Texture0
    Ns 20
    d 1
    illum 2
    map_Kd face_eyel_hi.jpg
    Kd 0.7 0.7 0.7
    Ks 0 0 0
    Ka 0 0 0
    newmtl Texture1
    Ns 20
    d 1
   illum 2
   map_Kd face_eyer_hi.jpg
   Kd 0.7 0.7 0.7
   Ks 0 0 0
   Ka 0 0 0
   newmtl Texture2
   Ns 20
     d 1
   illum 2
   map_Kd face_skin_hi.jpg
   Kd 0.7 0.7 0.7
   Ks 0 0 0
   Ka 0 0 0
   newmtl Texture3
   Ns 20
   d 1
   illum 2
   map_Kd face_sock.jpg
   Kd 0.7 0.7 0.7
   Ks 0 0 0
   Ka 0 0 0

obj的文件在我上面给的网址最后一个注释

the obj file is in the last comment in the url i gave above

纹理总是缺少u能告诉我什么是错?

The texture is always missing can u tell me whats wrong ?

如果u想看code。检查上面的网址。

if u want to see the code check the url above.

推荐答案

我发现什么是错,

问题是在MTL文件的列表,

the problem is in the tabulation of the mtl file,

只是确保他们是在MTL文件无压痕,而且质地非常会加载

just make sure that their is no indentation in the mtl file, and the texture will load perfectly

谢谢!

这篇关于在min3d framwork的Andr​​oid .OBJ模型缺少质感的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 08:23