Code Monkey home page Code Monkey logo

assimplib's Introduction

AssimpLib

基于 Assimp 5.0.1 Release 版裁剪,只保留 OBJ 和 FBX 格式的 3D 模型解析,并使用交叉编译工具链编译成 Android 和 iOS 库

编译

  • 编译 Android 静态库:

    记得要修改 build_for_android.sh 中最上面的 MY_NDK、MY_SDK、MY_CMAKE 路径,改成自己对应的安装路径

    ② 执行 build_for_android.sh, 最后会生成 Android 平台 arm64-v8a、armeabi-v7a 的静态库

  • 编译 iOS 静态库:

    ① 执行 build_for_android.sh, 最后会生成 iOS 平台的静态库,默认编译的是 all(包含 armv7、armv7s、arm64)

扩展

  • 如果想支持更多格式解析,拷贝 Assimp 5.0.1 对应格式目录下的源文件,并在 ImporterRegistry.cpp 中注册
  • 如果想支持更多的后处理,拷贝对应的后处理源文件,并在 PostStepRegistry.cpp 注册

预编译好的库

  • 在 pre_build 目录,3D 模型解析仅支持 OBJ 和 FBX 格式,后处理仅支持 FlipUVsProcess、TriangulateProcess

    image

编译截图

image

assimplib's People

Contributors

alanwang4523 avatar

Stargazers

chimera kang avatar  avatar  avatar  avatar  avatar  avatar  avatar Xu ShengXing avatar  avatar  avatar 心跳 avatar

Watchers

 avatar

Forkers

byteyuhb hmtriit

assimplib's Issues

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.