This is a 42 School project, the purpose is to write a complete .obj files viewr in C with opengl 4. Textures and normal maps are supported
git clone --recursive https://github.com/Chr0nos/scop
cd scop
make
./scop file.obj [texture] <normal_map>
./scop obj/2b-nier.obj ./textures/2b_suit_dif.png ./textures/2bnor.png
Key | purpose |
---|---|
left arrow | move the object |
right arrow | move the object |
up arrow | move the object |
down arrow | move the object |
wasdeq | rotate the object |
space | stop/start automatic rotation |
l | toggle lighting support |
k | toggle normal_map |
mouse wheel | zoom in/out |
- | zoom out |
+ | zoom out |
click + drag | rotate the object |
z | toggle faces viewing mode |
x | incrase face view mode |
c | decrase face view mode |
All rotations are performed by quaternions
This project use GLFW 3 and SOIL2 libraries, other libs (libft, draw, libtga) are custom made by me