prenis is a free, fast and highly portable OpenGL Open Source obj viewer. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.
Add obj\default.obj to main executable or use
prenis.exe obj\whatever.obj
Arrows - move camera
F1 - reset camera
F2 - change light
F3 - change diffuse
F4 - auto camera
F5 - blinking background
F6 - blinking object light
F7 - toggle antialiasing
OpenGL
Tiny obj loader
stb_image
First install deps and toolchain:
# apt install libglu1-mesa-dev freeglut3-dev libglew-dev gcc
To build, run:
$ g++ prenis/main.cpp -lGLEW -lGL -lGLU -lglut
First install deps and toolchain:
# pkg_add llvm freeglut glew
To build, run:
$ clang++ prenis/main.cpp `pkg-config --libs --cflags freeglut gl glew`
First install deps and toolchain:
$ brew install llvm glew
To build, run:
$ clang++ -Wno-deprecated-declarations -std=c++17 prenis/main.cpp -L/System/Library/Frameworks -framework GLUT -framework OpenGL -lGLEW