Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

mycsHQ/go-obj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <filename>

TODO

  • obj.Writer interface
  • The gometalinter says all the table based tests are the same. Try to abstract them?
  • Materials aren't supported.
  • Logging

About

OBJ file loader for golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.6%
  • GLSL 3.4%