lmarchesoti / rubik_cube

Rubik Cube in C++ using OpenGL/glut. Supports rotations for complete visualization and cube movements across all axes. Accepts input from both mouse and keyboard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenGL/glut Rubik Cube

Rubik Cube in C++ with OpenGL/glut

Documentation

This project was done for a Computer Graphics course in my last graduation period at Universidade Federal de Uberlândia along with 3 mates.

Everything is in one file just because.

Compile with: make

Run with: ./rubik_cube

Commands

Commands are case-insensitive

Cube visualization

L: rotate right

J: rotate left

I: rotate down

K: rotate up

+: zoom in

-: zoom out

mouse left click: zoom in

mouse right click: zoom out

Face selection(for moving parts)

There is no face selection feedback. (Consider left-bottom as origin)

Along x axis

Q: select 1st layer

W: select 2nd layer

E: select 3rd layer

Along y axis

A: select 1st layer

S: select 2nd layer

D: select 3rd layer

Along z axis

Z: select 1st layer

X: select 2nd layer

C: select 3rd layer

Face rotation

O: rotate selected face clockwise

U: rotate selected face counter-clockwise

About

Rubik Cube in C++ using OpenGL/glut. Supports rotations for complete visualization and cube movements across all axes. Accepts input from both mouse and keyboard.

License:GNU General Public License v3.0


Languages

Language:C++ 99.2%Language:Makefile 0.8%