0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vs2010でassimp その2

Last updated at Posted at 2022-02-10

概要

vs2010でassimpやってみる。
fbxファイルをdaeファイルに変換してみる。

サンプルコード

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using System.Reflection;
using Assimp;
using Assimp.Configs;
using Assimp.Unmanaged;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            String path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "untitled.fbx");
            String outputPath =  Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "fbx2.dae");
            AssimpContext importer = new AssimpContext();
            importer.ConvertFromFileToFile(path, outputPath, "collada");
            ExportDataBlob blob = importer.ConvertFromFileToBlob(path, "collada");
            Console.Write("ok ");
            var str = Console.ReadLine();
        }
    }
}

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?