https://github.com/justint/obj-viewer
Simple one-file OBJ file viewer.
https://github.com/justint/obj-viewer
3d glut obj opengl viewer
Last synced: about 1 year ago
JSON representation
Simple one-file OBJ file viewer.
- Host: GitHub
- URL: https://github.com/justint/obj-viewer
- Owner: justint
- License: mit
- Created: 2017-11-16T02:02:03.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2021-03-02T06:46:02.000Z (about 5 years ago)
- Last Synced: 2025-03-16T18:21:19.947Z (about 1 year ago)
- Topics: 3d, glut, obj, opengl, viewer
- Language: C++
- Homepage:
- Size: 581 KB
- Stars: 18
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# obj-viewer
[](https://travis-ci.org/justint/obj-viewer)

A simple one-file OBJ file viewer, written in C++ using OpenGL and GLUT.
## Usage
`$ obj-viewer bunny.obj`
Use the arrow keys to move the camera around/zoom in. Press `w` to enable
wireframe render mode, and `s` to switch back to the single light diffuse +
specular light render mode.
I threw in the classic Stanford bunny file for demonstrational purposes, but most other simple OBJ files should work. If you find an OBJ file that breaks my code, let me know so I can improve it!