https://github.com/sheenobu/go-obj
OBJ file loader for golang
https://github.com/sheenobu/go-obj
file-format gamedev golang obj
Last synced: 2 months ago
JSON representation
OBJ file loader for golang
- Host: GitHub
- URL: https://github.com/sheenobu/go-obj
- Owner: sheenobu
- License: mit
- Created: 2016-06-25T00:49:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-06T23:11:18.000Z (about 7 years ago)
- Last Synced: 2024-06-20T07:51:46.691Z (almost 2 years ago)
- Topics: file-format, gamedev, golang, obj
- Language: Go
- Size: 74.2 KB
- Stars: 16
- Watchers: 3
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-obj
OBJ file loader
Currently supported fields:
* \# - comments , ignored
* o - Object Name??
* v - Vertex
* vn - Vertex Normal
* f - Face
* vt - vertex texture coordinate indices
Everything else is silently ignored
## Usage
Simply `go get -u github.com/sheenobu/go-obj/obj`.
Much of the code outside of `go-obj/obj`
relies on SDL2 and vendored code but `go-obj/obj` should
be generic and never fail to pull due to Cgo dependencies (bug #5).
## cmd/obj-renderer
This is a standard object renderer, using a simple GLSL shader (embedded) for lighting.
Usage:
$ obj-renderer
## TODO
* obj.Writer interface
* The gometalinter says all the table based tests are the same. Try to abstract them?
* Materials aren't supported.
* Logging