Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssimpAssetImporter.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 using SiliconStudio.Core.Diagnostics;
6 using SiliconStudio.Core.IO;
7 using SiliconStudio.Paradox.Importer.Common;
8 
9 namespace SiliconStudio.Paradox.Assets.Model
10 {
12  {
13  // Supported file extensions for this importer
14  private const string FileExtensions = ".dae;.3ds;.obj;.blend;.x;.md2;.md3;.dxf";
15 
16  private static readonly Guid uid = new Guid("30243FC0-CEC7-4433-977E-95DCA29D846E");
17 
18  public override Guid Id
19  {
20  get
21  {
22  return uid;
23  }
24  }
25 
26  public override string Description
27  {
28  get
29  {
30  return "Assimp importer used for creating entities, 3D Models or animations assets";
31  }
32  }
33 
34  public override string SupportedFileExtensions
35  {
36  get
37  {
38  return FileExtensions;
39  }
40  }
41 
42  /// <inheritdoc/>
43  public override EntityInfo GetEntityInfo(UFile localPath, Logger logger)
44  {
45  var meshConverter = new Importer.AssimpNET.MeshConverter(logger);
46  var entityInfo = meshConverter.ExtractEntity(localPath.FullPath, null);
47  return entityInfo;
48  }
49  }
50 }
Base implementation for ILogger.
Definition: Logger.cs:10
override EntityInfo GetEntityInfo(UFile localPath, Logger logger)
Get the entity information. The path of the asset.The logger to use to log import message...
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13