Papervision3D Rubik’s Cube!

To use this swf, just click on the arrows to turn the faces of the cube, and drag the mouse to turn the whole cube:

A friend of mine and I were joking one day that the least accessible interface around would require you to solve a Rubik’s cube before you could click a button or interact with it. Later that day I read an article on Papervision3D and the idea came to me to create a Rubik’s cube in Papervision3D. I thought it would be a great way to learn more about Papervision3D and something fun to work on. I had arrows for the top and bottom face of the cube, but it was just too much on the screen and was difficult to see much in the 3/4 overhead view with those arrows in too.

I ended up learning more about coordinate systems and arrays than I did about Papervision, but it was still a blast. At any rate, I plan to keep adding to it over time. I’d like to have the initial configuration load from XML and I also plan on writing a class to check to see if the cube has been solved after each move. All of that will have to wait though, since I just got my invite into Google’s Appengine and I’m really psyched to learn some more about it!

6 Responses to “Papervision3D Rubik’s Cube!”

  1. David Wilhelm  on May 21st, 2008

    Hey that’s pretty cool. However there’s something that bothers me about the mouse-interaction. Why, when I click and drag from left to right, does the object rotate from right to left ? I guess this is something general about PaperVision, not just this movie, so perhaps it is not the right place to bring it up. Sorry. However, it just doesn’t make sense to me.

    Cheers,
    Dave

  2. David  on June 4th, 2008

    Hi Chris,

    Nice work on this! I just began writing my own rubiks app for a website. It will be apart of a corporate navigation system and was wondering when you might get to that solving class that you mentioned!

    I’ve just built the actual cube and got some basic PV3D motion in there but I’m having trouble with determining block location and such.

    I can see your solving class being *extremely* useful. It would be REALLY cool to just click “solve” and it goes ahead and actually shows the solution.

    Let me know if you get it worked out - I’d LOVE to see it.

    Dave

  3. Jensa  on June 20th, 2008

    Great work! The interface is slightly odd, but it works. Wouldn’t it be cool if the arrows were not required though?

    J

  4. crebstock  on June 20th, 2008

    My original plan was to make it mouse dragging that would move the cubes. I found it gets a little more complicated as you rotate the cube, the current x, y and z rotation values effect exactly how you rotate based on mouse movements.

    I still plan on doing it, but too many other things on my plate at the moment.

  5. Samiaji  on April 7th, 2009

    Hi Chris,

    I’m currently on the process of making a rubiks cube using papervision 3d. However, since Im new to papervision, I’m really having difficult here in making the rubiks interactive. Would you be kindly enough to share the code? I know this sound a bit hopeless, but it is actually, I’ve spent almost 3 weeks with no luck making it. SO, I really need your help on this. Cheers.


Leave a Reply