Pandas 3D obj模型加载

4
我一直在尝试使用pandas3D创建游戏,但我发现load model函数只能使用x、bam和egg文件。但是我只有obj文件。我该如何将obj模型加载到pandas中呢?我已经尝试将.obj转换为.x,但出现了错误。使用Obj2Egg后,我得到了以下错误:C:\Users\inbar\Desktop\t>obj2egg.py -n30 -b -t -s OBJ.obj option -t未被识别。
This Version: $Id: obj2egg.py,v 1.7 2008/05/26 17:42:53 andyp Exp $
Info: info >at< pfastergames.com

Extended from: http://panda3d.org/phpbb2/viewtopic.php?t=3378
.___..__ .___.___.___.__..__ .  .
  |  [__)[__ [__ [__ |  |[__)|\/|
  |  |  \[___[___|   |__||  \|  |
obj2egg.py [n##][b][t][s] filename1.obj ...
    -n regenerate normals with # degree smoothing
        exaple -n30  (normals at less 30 degrees will be smoothed)
    -b make binarmals
    -t make tangents
    -s show in pview

licensed under WTFPL (http://sam.zoy.org/wtfpl/)
1个回答

7

实际上,从1.10版本开始,您可以在Panda3D中加载.obj模型文件。 只需在Panda3D安装的etc文件夹中的config.prc文件中添加load-file-type p3assimp,然后您就可以使用model = self.loader.load_model("my_model.obj")加载.obj模型。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接