thisistherk/fast_obj
소개
빠른 C OBJ 파서
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +3
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalfast_obj
Because the world needs another OBJ loader. Single header library, should compile without warnings in both C89 or C++. Much faster (5-10x) than other libraries tested.
To use:
fastObjMesh* mesh = fast_obj_read("path/to/objfile.obj");
...do stuff with mesh...
fast_obj_destroy(mesh);
Note that valid indices in the fastObjMesh::indices array start from 1. A dummy position, normal and
texture coordinate are added to the corresponding fastObjMesh arrays at element 0 and then an index
of 0 is used to indicate that attribute is not present at the vertex. This means that users can avoid
the need to test for non-present data if required as the vertices will still reference a valid entry in
the mesh arrays.
A simple test app is provided to compare speed against tinyobjloader and check output matches.
Version 1.3
Version 1.3 makes a small change to the API. Textures are now stored in a separate array on the
fastObjMesh structure, and are referenced by index from materials, instead of being referenced
by the material directly.
관련 프로젝트 살펴보기
불러오는 중…