• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

acgessler/assimp2json: JSON exporter for Open Asset Import Library to make 3D mo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

acgessler/assimp2json

开源软件地址:

https://github.com/acgessler/assimp2json

开源编程语言:

C++ 87.9%

开源软件介绍:

assimp2json

JSON exporter for Open Asset Import Library

Convert files in 40+ 3D file formats, including Collada, 3DS, OBJ, LWO, FBX, Blender, X, STL, PLY, MS3D, B3D, MD3, MDL, DXF and IFC to plain json.

Convert models online here. (Select JSON as output format)

Download Windows binaries here. (v2.0, October 2013)

quak

Introduction

assimp2json is a command line tool designed to expose the import capabilities of assimp, the Open Asset Import Library to WebGl developers. The tool takes a single 3d model as input file, imports it using assimp and converts the result to json.

assimp2json is platform-independent, its only dependency is assimp itself.

Output Format

The output format is a one-by-one translation of Assimp's C datastructure , with a few changes to make the resulting json look more natural. All fields are lower-case and the prefixes (such as m, pc, ..) are omitted. Array lengths are not written as this information is implicitly given. Empty arrays are not written at all, i.e. a node without children doesn't have an empty children:[] field.

The /samples folder contains some sample assimp.json files.

assimp.json files carry a little format header in the JSON root element. This allows them to be disambiguated from other JSON-based 3D formats (such as Three.JS scenes). The numeric value specifies the assimp2json format version in (major, minor, revision) format. Currently, only 100 is defined.

 "__metadata__": {
 	 "format" : "assimp2json"
 	,"version": 100
 }

Build

The build system for assimp2json is CMake. To build, use either the CMake GUI or the CMake command line utility. Note: make sure you pulled the assimp submodule, i.e. with git submodule init && git submodule update

Usage

$ assimp2json [flags] input_file [output_file] 

(omit the output_file argument to get the json string on stdout)

Invoke assimp2json with no arguments for detailed information.

Future Plans

I plan to build a proper content pipeline for WebGl assets based on assimp, assimp2json, possibly OpenCTM, WebP and Crunch/DXT to be able to preprocess 3D assets and their textures for fast streaming. Stay tuned, or drop me a note if you want to help out.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap