GithubHelp home page GithubHelp logo

isabella232 / unitymeshimporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unity-technologies/unitymeshimporter

0.0 0.0 0.0 9.13 MB

Runtime mesh importer for Unity using AssimpNet

Home Page: https://donghok.me/UnityMeshImporter/

License: Other

C# 100.00%

unitymeshimporter's Introduction

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:

unitymeshimporter's People

Contributors

eastskykang avatar tolinsimpson avatar scooterboo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.