Runtime mesh importer for Unity using AssimpNet
Перейти к файлу
Dongho Kang d3b2be29d6
Merge pull request #7 from scooterboo/master
Support all the face vertex count!
2021-01-12 00:55:13 +01:00
Runtime Support all the face vertex count! 2020-11-04 03:22:13 -08:00
.gitignore first init 2019-11-19 16:55:43 +01:00
CHANGELOG.md Update on README and package.json for v0.1.1 2020-08-25 05:33:40 +09:00
CHANGELOG.md.meta add meta files 2019-11-19 17:41:46 +01:00
LICENSE.md Chnaged License as .md + description changed 2019-11-21 13:46:09 +01:00
LICENSE.md.meta Chnaged License as .md + description changed 2019-11-21 13:46:09 +01:00
README.md Update on README and package.json for v0.1.1 2020-08-25 05:33:40 +09:00
README.md.meta add meta files 2019-11-19 17:41:46 +01:00
Runtime.meta add meta files 2019-11-19 17:41:46 +01:00
package.json Update on README and package.json for v0.1.1 2020-08-25 05:33:40 +09:00
package.json.meta add meta files 2019-11-19 17:41:46 +01:00

README.md

UnityMeshImporter

Runtime mesh importer for Unity using AssimpNet. This mesh importer creates UnityEngine.GameObject from mesh files.

Update: Tested on Linux, macOS and Windows.

What is Assimp?

Open Asset Import Library (Assimp) is a cross-platform 3D model import library which aims to provide a common application programming interface (API) for different 3D asset file formats. Written in C++, it offers interfaces for both C and C++. Bindings to other languages (e.g., BlitzMax, C#, Python) are developed as part of the project or are available elsewhere.

By Wikipedia

This project uses C# .NET wrapper for the Assimp, AssimpNet

Supported file formates are listed here.

Quickstart

Before you start, you may need to install minizip package by

$ sudo apt install minizip
  1. Install "com.donghok.meshimporter" package as follows: In the Packages directory of your Unity project,

    $ git clone https://github.com/eastskykang/UnityMeshImporter.git com.donghok.meshimporter
    

    or

    Open Packages/manifest.json and add "com.donghok.meshimporter":"https://github.com/eastskykang/UnityMeshImporter.git" to the "dependencies" list.

  2. As the package is imported, you can use UnityMeshImporter as follows:

    using UnityMeshImporter;
    
    string meshFile = <YOUR-MESH-FILE-PATH>;
    var ob = MeshImporter.Load(meshFile);
    
  3. The mesh importer uses Unity "Standard" shader. Please add Standard shader to Project Settings > Graphics > Built-in Shader Settings > Always Included Shaders.

Unity Example

See the following examples: