Beispiel #1
0
        /// <summary>
        /// Import all of the default scene of a GLTF file, parenting it as specified.
        /// </summary>
        /// <param name="fmd">Diesel model to add the contents to.</param>
        /// <param name="path">Path of the GLTF file to import</param>
        /// <param name="getParentByName">Callback to find the parent of a particular model.</param>
        public static void Import(FullModelData fmd, string path, bool createModels, Func <string, DM.Object3D> parentFinder, IOptionReceiver _)
        {
            var gltf     = GLTF.ModelRoot.Load(path);
            var importer = new GltfImporter(fmd);

            importer.ImportTree(gltf, createModels, parentFinder);
        }
Beispiel #2
0
 public override void Import(FullModelData data, string path, bool createModels, Func <string, Sections.Object3D> parentFinder, IOptionReceiver options)
 => GltfImporter.Import(data, path, createModels, parentFinder, options);
Beispiel #3
0
 public abstract void Import(FullModelData data, string path, bool createModels, Func <string, Sections.Object3D> parentFinder, IOptionReceiver options);
Beispiel #4
0
 public override void Import(FullModelData data, string path, bool createModels, Func <string, Sections.Object3D> parentFinder, IOptionReceiver options)
 => throw new Exception("Importing DAE files is not supported.");
Beispiel #5
0
 public override void Import(FullModelData data, string path, bool createModels, Func <string, Sections.Object3D> parentFinder, IOptionReceiver options)
 => throw new Exception("Please import animation files in the animation section.");