如何使用sharpDX绘制3D模型?

时间:2015-03-08 00:05:03

标签: draw sharpdx 3d-model

如何使用sharpDX绘制3D模型?网上的大多数例子都说我不能没有其他库。我的模型是.fbx格式,构建操作属性是ToolkitModel。

1 个答案:

答案 0 :(得分:-1)

SharpDX过去常常带有名为SharpDX.Toolkit.Graphics的命名空间。在最近的版本中,它已被弃用,有利于Monogame和Xenko。 https://github.com/sharpdx/Toolkit

绘制模型的代码如下所示:

SERVICE_ID TIME                AVAILABILITY
---------- ------------------- ------------
S-1        2016-30-01 12:00:00          100 
S-1        2016-30-01 13:00:00          100 
S-1        2016-30-01 14:00:00          100 
S-1        2016-30-01 15:00:00          100 
S-1        2016-30-01 16:00:00          100 
S-1        2016-30-01 17:00:00          100 
S-1        2016-30-01 18:00:00          100 
S-1        2016-30-01 19:00:00          100 
S-1        2016-30-01 20:00:00          100 
S-1        2016-30-01 21:00:00   33.3333333 
S-1        2016-30-01 22:00:00            0 
S-1        2016-30-01 23:00:00            0 
S-1        2016-31-01 00:00:00            0 
S-1        2016-31-01 01:00:00           50 
S-1        2016-31-01 02:00:00          100 
S-1        2016-31-01 03:00:00          100 
S-1        2016-31-01 04:00:00          100 
S-1        2016-31-01 05:00:00          100 
S-1        2016-31-01 06:00:00          100 
S-1        2016-31-01 07:00:00          100 
S-1        2016-31-01 08:00:00          100 
S-1        2016-31-01 09:00:00          100 
S-1        2016-31-01 10:00:00          100 
S-1        2016-31-01 11:00:00          100 
S-1        2016-31-01 12:00:00          100 
S-2        2016-30-01 12:00:00          100 
S-2        2016-30-01 13:00:00          100 
S-2        2016-30-01 14:00:00          100 
S-2        2016-30-01 15:00:00          100 
S-2        2016-30-01 16:00:00          100 
S-2        2016-30-01 17:00:00          100 
S-2        2016-30-01 18:00:00           20 
S-2        2016-30-01 19:00:00            0 
S-2        2016-30-01 20:00:00           75 
S-2        2016-30-01 21:00:00          100 
S-2        2016-30-01 22:00:00          100 
S-2        2016-30-01 23:00:00          100 
S-2        2016-31-01 00:00:00          100 
S-2        2016-31-01 01:00:00          100 
S-2        2016-31-01 02:00:00          100 
S-2        2016-31-01 03:00:00          100 
S-2        2016-31-01 04:00:00          100 
S-2        2016-31-01 05:00:00          100 
S-2        2016-31-01 06:00:00          100 
S-2        2016-31-01 07:00:00          100 
S-2        2016-31-01 08:00:00          100 
S-2        2016-31-01 09:00:00          100 
S-2        2016-31-01 10:00:00          100 
S-2        2016-31-01 11:00:00          100 
S-2        2016-31-01 12:00:00          100

...

using SharpDX.Toolkit;
using SharpDX.Toolkit.Content;
using SharpDX.Toolkit.Graphics;

...

protected override void LoadContent() {
//...
model = Content.Load<Model>("mymodel");
//...
}