4 using System.ComponentModel;
8 using SiliconStudio.Paradox.DataModel;
9 using SiliconStudio.Core.Serialization.Assets;
10 using SiliconStudio.Paradox.Effects.Data;
12 namespace SiliconStudio.BuildEngine
14 [CommandDependsOn(typeof(
Paradox.Importer.AssimpNET.MeshConverter))]
15 [Description(
"Import Assimp")]
18 private static string[] supportedExtensions = {
".dae",
".dae",
".3ds",
".obj",
".blend" };
21 public override string Title {
get {
string title =
"Import Assimp ";
try { title += Path.GetFileName(SourcePath) ??
"[File]"; }
catch { title +=
"[INVALID PATH]"; }
return title; } }
25 var extToLower = ext.ToLower();
27 return !String.IsNullOrEmpty(ext) && supportedExtensions.Any(supExt => supExt.Equals(extToLower));
34 ViewDirectionForTransparentZSort = this.ViewDirectionForTransparentZSort,
35 AllowUnsignedBlendIndices = this.AllowUnsignedBlendIndices
41 var converter = CreateMeshConverter(commandContext);
42 var sceneData = converter.Convert(SourcePath, Location);
48 var meshConverter = this.CreateMeshConverter(commandContext);
49 var sceneData = meshConverter.ConvertAnimation(SourcePath, Location);
55 return "Import Assimp " + base.ToString();
An aggregation of AnimationCurve with their channel names.
override AnimationClip LoadAnimation(ICommandContext commandContext, AssetManager assetManager)
override ModelData LoadModel(ICommandContext commandContext, AssetManager assetManager)
override string ToString()
Data type for SiliconStudio.Paradox.Effects.Model.
static bool IsSupportingExtensions(string ext)