jrlytle / B481---Rubiks-Cube

2 stars 1 forks source link

Status #1

Open ephemerant opened 8 years ago

ephemerant commented 8 years ago

I have clockwise rotations working. I'm currently using OpenGL, but we can talk about merging what I have into JavaFX. I ended up just rewriting it in OpenGL because the JavaFX camera was giving me trouble.

jrlytle commented 7 years ago

I added my most recent version of the code. Multiple rotations are still giving me trouble. I separated each cube into it's own pane to make rotations among the cubes more independent. The problem is when a rotation occurs, it also rotates the axis. Could you help me with the problem? If this problem is solved, then it's finished.

jrlytle commented 7 years ago

Nevermind, just solved the problem. I had to use an Affine and prepend the rotations. Should have the code cleaned up and posted in a couple hours. I might add in a method to scramble the cube and test that. If you wanted to mess with the lighting, that would be awesome because it's still a little strange acting.

ephemerant commented 7 years ago

Sounds good! I'll try to find some time over the weekend.

jrlytle commented 7 years ago

Cool. I just added the code. If you wanted to mess with the texture too, go for it. It's kind of plain right now. If you do, keep the black borders because they line up so that you can't see that the texture wraps for each cube. I also added a randomizer to scramble the cube when you press Enter and you can only hit it once. It also checks if the cube has been solved, and if it has, then you can hit Enter to scramble it again. I think it might be possible to grab cube with the mouse and add in the ability to move a row/column with the mouse, but since we only have a few more days to mess with it, it might not be worth it.