Skip to content

Omnisch/Cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUBIK'S CUBE

A Simulator of a Rubik's Cube (without self-solving ability) under OpenGL, MFC.

Instruction

Key Action
Enter Reset
R Right clockwise 90°
U Up clockwise 90°
F Front clockwise 90°
L Left clockwise 90°
D Down clockwise 90°
B Back clockwise 90°
X Rotate 90° around the X-axis
Y Rotate 90° around the Y-axis
Z Rotate 90° around the Z-axis
Shift + R Right counterclockwise 90°
etc. $ \vdots $
Arrows Translate the Cube
A Auto-play from the beginning (after opening a file)
E Stop auto-play (after opening a file)
Mouse Button Action
Left click on centers Face counterclockwise 90°
Right click on centers Face clockwise 90°
Drag the left button Rotate the view

Side Buttons:

  • OpenGL

    • Anti-aliasing
    • Gouraud
    • Lighting: Turn lighting on/off & switch style
    • Vertex: Render vertexes only
    • Wireframes: Render wireframes only
    • Face: Render faces only
  • Magic Cube

    • Using Textures: Use bitmaps in .\res as the pattern on the cube (customizable, must keep the same filename)
    • Centers: Draw centers
    • Edges: Draw edges
    • Vertexes: Draw vertexes
    • Rotation Limit: Clamp view rotation into F(Front) ± 90°
  • Scaling

    • Link: Lock the scale on 1:1:1
    • X: X-scaling
    • Y: Y-scaling
    • Z: Z-scaling
  • Light

    • Rotation
    • Depression
    • Distance
    • Spot Light: Switch between point light and spotlight

Auto-play

  • Click the "Open" button to open and read a formula file, and press A to auto-play. Manual actions are not allowed when auto-playing; press E to quit auto-play.

  • The formats can be found in .\res\sample_formula.txt.

    • Make sure the apostrophes to be dumb and split moves by spaces.
    • Auto-play will stop at the first unrecognizable character.
  • All recognizable moves (case sensitive):

    R R' R2 U U' U2 F F' F2
    L L' L2 D D' D2 B B' B2
    x x' x2 y y' y2 z z' z2

  • M(Middle) and lowercase letter(double layer) moves are not supported for now, please convert them manually.

  • Counter-clockwise 180° moves are not supported for now, please convert them to clockwise 180° manually.

About

Desktop Simulator of a Rubik's Cube

Resources

License

Stars

Watchers

Forks

Releases

No releases published