FIXED VIEW: Cube's front-face = left-faced side on screen Cube's right-face = right-faced side on screen Cube's top-face = top-faced side on screen CUBE NAVIGATION: Mouse-down: Free look the cube - resets to fixed view on mouse-up Left/Right: Turn entire cube 90' left/right Up/Down: Turn entire cube 90' up/down Key 1/Q, 2/W, 3/E: Turn; Left-, Middle-, Right-layer 90' up/down Key 4/R, 5/T, 6/Y: Turn; Up-, Equator-, Down-layer 90' left/right Key 7/U, 8/I, 9/O: Turn; Front-, Standing-, Back-layer 90' cw/ccw FUNCTIONS: Key S: Scramble randomly Key L: Solve (fast) Key J: Solve (slow) Key G: Solve (animated) (ToBe:Obsolete) Key X: Reset Cube - angles and colors EXPORT/IMPORT: Key A: User-input - Set cube scramble from text; notation (tip: paste) Key D: Show/Hide (remember: hide for other key-input) - Get cube scramble as text; saving (copy) SETTINGS: Key H: Show/Hide HUD (remember: hide for other key-input) - ZOOM: Cube size - BORDER: Black tile-borders - FILLER: Filled/wireframed cube tiles - BFC: Back-face Culling on/off - BGCLR: Background coloring on/off - STEP: Animation speed - PUZZEL #: Choose between 4 puzzles to solve!
Update 2014-12-19: * Code cleanup - Reduced the number of calls to calculate the same property - Complete definition of a 3D-object and it's properties from lists ================================================== Update 2014-12-17: * Stripped down to only one quad drawer for all faces - Remove functions and lists to populate static-data - Added functions and lists to support dynamic (quad) faces - Reduced number of scripts from 98 to 81 * Added new HUD; PUZZEL # set patterns for gaming - 4 puzzles ================================================== Update 2014-12-10 (2): * Fixed up some back-faced coloring * Added new HUD; STEP to control animation speed ================================================== Update 2014-12-10: * Changed fixed view pitch angle 325' * Using Official Rubik's Cube Colors * Fixed some small bugs on key-input; H, D, S * ToDo: - Add shading to new coloring scheme ================================================== Update 2014-12-09 (2): * Changed fixed view pitch angle from 45' to 315' ================================================== Update 2014-12-09: * Bugfix on notation-to-text-block (copy) ================================================== Update 2014-12-08 (2): * Animated all turns - including solver! :-) ================================================== Update 2014-12-08: * Introduced fixed view for better turn handling * ToDo: - Animate all turns - Original colors, including white and orange ================================================== Update 2014-12-07: * Rewrote entire cube framework from using clones to using lists - Needed to control the rendering-order. * Using quicksort-algorithm from @jgatcomb - thanks! - sorting all the tiles by distance to eye/camera * Added user input to set and get cube scramble - nice if you want to compete with others * Added ZOOM-slider to set size of pen (filler) and tiles. * Added BORDER-slider to control drawing of black tile-borders * Added BFC-slider to control back-face culling * Added BGCLR-slider to control the coloring av back-faced tiles. * ToDo - Animate solver - Improve user-input to ease the control of layer turns - Better rotation algorithm using quaternions - Timer for game-mode - Cloud-data highscore-list? ================================================== Update 2014-11-28: - Exclude middle, equator and standing from scrambler - Added a slower solver/unscrambler for better visual effect - Initial size set to high-res, small cube ================================================== Update 2014-11-27: - Thanks for all the feedback! :-) - Somewhat better mouse-control - Added scrambler/solver using a "NOTATIONS"-list - Bugfix on pressing Key 9 - Darkened tile-borders - "PEN SIZE"-slider affects trifiller ================================================== I got a bit bigger than I imagined... This is just a mochup and the code has HUGE potential for improvements and optimizations. Pretty much got all the animation as I wanted, but it will look better when I'm able to sort the tiles in z-order. Now I need to also need to make into a game with timer and highscore...?