Join for FREE | Take the Tour Lost Password?
[x]

deviantART

 
Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.
:iconzavaboy:

Artist's Comments

You may have seen my blank animated Rubik's Cube, but this goes way past it. I mentioned in the comments that I was planning on making this. Well, here it is!

So, you want to have it scramble a combination? I'll run you through how to do that.

First, learn the cube and it's orientation. Most people who have seen or used a Rubik's Cube overlook the fact that the center pieces never move from their relative positions. This allows you to know which side is supposed to be which just by looking at the center pieces.

So, now you know that, each side has a tag or identifier to use. I have it set up so that yellow is U (Up), red is F (Front), green is R (Right), orange is B (Back), blue is L (Left), and white is D (Down). The orange, blue, and white colors are not seen when the cube is in a solved state.

Next, we identify which side to turn and which way to turn it. Using what I explained in the previous paragraph, you can specify which way or how much to turn it by placing nothing after the identifier for 90 degree turn clockwise, a single quote (') for 90 degree turn counterclockwise, or a number two (2) for 180 degree turn. The cube will turn a side with the "2" clockwise, but if you want it to go counter clockwise, just use two of the same side using the single quote.

Here are a few example turn combinations:

  • L U' R U D2
    (Left 90 CW, Up 90 CCW, Right 90 CW, Up 90 CW, Down 180)

  • F2 F' F'
    (Front 180, Front 90 CCW, Front 90 CCW)

Now, let's make some cubes:
The URL to the cube is: http://zavaboy.jimbug.org/rubik/cube.php

Going to the link above will generate a random combination 8 moves deep. Also, remember that it generates each frame before putting them all together, this can take time (I estimated about half a second per 90 degree move, so just executing "U2 L' F" would take about 2 seconds) depending on how many moves you make, so please be patient. If a cube is cached, it will load much quicker.

To specify a combination, put your moves after the following URL: http://zavaboy.jimbug.org/rubik/cube.php?moves=

Note: When putting the combinations in the URL, no spaces are required, but you should URL encode a single quote into %27. You can use this tool if you're lazy: [link]

Here are some examples, first two are my favorites:If you want to solve a cube, add &s=1 at the end of your combination in the URL. Also, if you own a cube you want to solve, there is a free program you can use to solve it within 20 moves, that program is located here: [link]
The program is rather big, so you may prefer to use an online solver (which will not solve within 20 moves, but get you to the end), like this one: [link]

That's about it! Please comment if you have anything to say! :)

Comments


love 0 0 joy 1 1 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconnestalgica:
:excited: I'm so playing with this for a while.

--
Murble.
:iconchilisan:
Wow... this is pretty crazy! :D

--
Master of Critics for *dAZine

PUSTULIO ROCKS!
:iconzavaboy:
Yeah, I play with it a lot myself. :)

--
zavaboy was here
:iconzavaboy:
Yes, it is. Thank you!

--
zavaboy was here
:iconwynnter89:
That is talent, nice work man... how long did that take ?

--
i know my comments are brief, but im not a critic, just an admirer.

new competition - dooo iiiiiiit

feel like a challenge ?
:iconzavaboy:
A week... Though if you add up the hours probably equal to about 2 days.

--
zavaboy was here
:icontailsbluigi5:
Wooooow

--
Have you PAID the Pied Piper!?
:iconzavaboy:
Yeah, it tends to have that effect on people.

--
zavaboy was here
:iconmistercow-pnoy:
i think you'll like this one:

[link]

--
"I think I'd prefer to stay inside."

--
GLaDOS

Details

April 13, 2007
11.3 KB
11.3 KB
288×272

Statistics

18
13 [who?]
1,576 (0 today)
0 (0 today)

Share

Link
Embed
Thumb

Site Map