StaticModel 上没有图像纹理

No image texture on StaticModel

我有一个非常简单的场景(照常设置相机、灯光)。我想在模型上应用一个简单的图像 material。如果我使用像 Sphere 这样的便利模型之一,对象会使用 material 渲染:

  var model = modelNode.CreateComponent<Sphere>();
  model.SetMaterial(Material.FromImage("Textures/small.jpg"));

如果我切换到 static model(它是 Blender 的默认立方体),则不会呈现任何内容(或者可能呈现为不可见)。配个颜色material就可以了,模型本身没有问题

  var model = modelNode.CreateComponent<StaticModel>();
  model.Model = ResourceCache.GetModel("Models/Cube.mdl", false);
  //model.SetMaterial(CoreAssets.Materials.DefaultGrey);
  //model.SetMaterial(Material.FromColor(Color.Yellow));
  model.SetMaterial(Material.FromImage("Textures/small.jpg"));

供参考,其余场景为:

  scene = new Scene();
  octree = scene.CreateComponent<Octree>();

  var cameraNode = scene.CreateChild();
  cameraNode.Position = new Vector3(0, 0, -10);
  cameraNode.SetDirection(new Vector3(0, 0, 0));
  camera = cameraNode.CreateComponent<Camera>();

  var lightNode = cameraNode.CreateChild();
  lightNode.Position = new Vector3(5, 5, -5);
  lightNode.SetDirection(new Vector3(0, 0, 0));

  var light = lightNode.CreateComponent<Light>();
  light.LightType = LightType.Directional;
  light.Brightness = 1.5f;
  light.CastShadows = true;
  light.Color = Color.White;
  light.Range = 10;

嗯,模型没有导出所有必要的细节...