https://github.com/ericjang/wavefrontobjs.jl
Importing Wavefront OBJs and MTL files
https://github.com/ericjang/wavefrontobjs.jl
Last synced: 5 months ago
JSON representation
Importing Wavefront OBJs and MTL files
- Host: GitHub
- URL: https://github.com/ericjang/wavefrontobjs.jl
- Owner: ericjang
- License: other
- Created: 2015-12-22T17:36:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-22T17:59:52.000Z (over 10 years ago)
- Last Synced: 2025-06-08T00:09:45.553Z (about 1 year ago)
- Language: Julia
- Size: 299 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WavefrontOBJs
[](https://travis-ci.org/ericjang/WavefrontOBJs.jl)
WavefrontOBJs is a Julia package for loading Wavefront OBJ geometry and Wavefront MTL materials.
The implementation is based on [tinyobjloader](https://github.com/syoyo/tinyobjloader).
Implements subsets of the [.obj](http://www.martinreddy.net/gfx/3d/OBJ.spec) and [.mtl](http://paulbourke.net/dataformats/mtl/) specifications. This should be suitable for most things.
## Usage:
```julia
using WavefrontOBJs
meshes = loadOBJ("CornellBox/CornellBox-Original.obj")
materials = loadMTL("CornellBox/CornellBox-Original.mtl")
# Alternatively, you can load both OBJs and MTLs simultaneously via:
meshes, materials = load_obj_mtl("CornellBox/CornellBox-Original")
```