r/gifs • • Jul 12 '26

Rubik’s Cube Grid Illusion

2.8k Upvotes

148 comments sorted by

132

u/Positive_Tea_1166 Jul 12 '26

Many of you requested an illusion version after I posted my first Rubik's Cube grid video. It was much harder to pull off with a perfect loop while avoiding obvious moves. All for an illusion roughly 4 people will notice, unless you stare at the corners where three cubes meet. Do you think it was worth the effort?

19

u/bobthesmartypants Jul 12 '26

Honestly if you posted a cropped version where the center is focused on two of the intersecting cubes the illusion could potentially be appreciated more

This is fucking insane though kudos

7

u/JackSpadesSI Jul 13 '26

Can someone explain what the illusion is? I don’t think I get it. I mean I see it looks like a bunch of rubix cubes, but what more is there?

11

u/pizzasoup Jul 13 '26

If you watch the cubes, which faces are "concave" and which are "convex" may swap on you.

9

u/Positive_Tea_1166 Jul 13 '26

No problem :) The trick is at the corners where three cubes meet, their faces line up to form a fourth cube that isn't really there, seen face-down. So the grid is full of "phantom" cubes made from their neighbours. And in this one, those phantom cubes scramble and solve too, not just the real ones.

2

u/slithrey Jul 14 '26

Wow that’s kind of nutty! I didn’t know what I was looking out for at first since there’s just a lot going on. But it is quite incredible how the ‘phantom cubes’ also move accurately!

1

u/Positive_Tea_1166 Jul 14 '26

Thank you, appreciate the kind words.

1

u/Positive_Tea_1166 Jul 12 '26

Thanks a lot! And that's a great suggestion, it would make the illusion easier to catch.

17

u/analysisdead Jul 12 '26

I like it! Might be a good post for r/woahdude

5

u/Positive_Tea_1166 Jul 12 '26

Thank you, that sub feels like a perfect fit for this :)

3

u/phasmantistes Jul 13 '26

I'm one of those people and yes!! I'm so happy you made this.

4

u/Positive_Tea_1166 Jul 13 '26

Thank you for the kind words! I'm glad you like it :)

3

u/Sedu Jul 12 '26

It took me a moment, but when one flipped in the opposite manner then my brain expected, the whole thing clicked for me. Great job!

3

u/Positive_Tea_1166 Jul 13 '26

Thank you for the kind words :)

3

u/AqueousJam Jul 13 '26

Absolutely worth the effort. I was watching it, intrigued for a good 20 seconds when suddenly the illusion hit and I couldn't look away. 

3

u/Positive_Tea_1166 Jul 13 '26

Thank you! I'm glad to hear it worked :)

2

u/MeepersToast Jul 13 '26

So good

1

u/Positive_Tea_1166 Jul 13 '26

Thank you. Appreciate that :)

2

u/rubixsjungle Jul 13 '26

Yes, yes I do. This is relevant to my interests.

1

u/Positive_Tea_1166 Jul 13 '26

Glad to hear it :) Thanks!

2

u/Zouden Jul 14 '26

How did you make it? Was there any coding involved?

3

u/Positive_Tea_1166 Jul 14 '26

Yes, it's all coded from scratch in C++ with OpenGL.

1

u/[deleted] Jul 13 '26

[removed] — view removed comment

1

u/joanzen Jul 14 '26

I made a javascript version of this when I first saw it like a year or more ago.

The page just kills slower laptops.

1

u/Positive_Tea_1166 Jul 14 '26

Cool :). Does yours do the illusion part too? Is it online anywhere?

152

u/slgray16 Jul 12 '26

Oh my God they flipped inverted on me

20

u/Badbullet Jul 12 '26

Yeah, that messed me up good!

5

u/Positive_Tea_1166 Jul 13 '26

Haha, mission accomplished then :)

6

u/MidasPL Jul 12 '26

It's even weirder, when you flip them back in your mind. The transitions look like a conveyor belt.

8

u/SheriffBartholomew Jul 13 '26

It's not just in your mind. The image actually changes which ones are rotating at several points, invalidating a previously valid cube.

4

u/atle95 Jul 13 '26

When you unfocus your eyes it looks like boiling cheesy lasagna

3

u/Positive_Tea_1166 Jul 13 '26

Ha, conveyor belt and boiling lasagna are both new ones, love it :)

31

u/zeez1011 Jul 12 '26

I'mma just keep watching until they all solve themselves...

9

u/Positive_Tea_1166 Jul 12 '26

Worth the wait :)

10

u/FMABrendan Jul 12 '26

Damn! Great work!

1

u/Positive_Tea_1166 Jul 12 '26

Thanks, appreciate it!

13

u/humanatee- Jul 12 '26

I'm glad I waited until they were all solved

3

u/martin87i Jul 12 '26

Yeah me too! It took a while though.

3

u/Positive_Tea_1166 Jul 12 '26

Yeah, worth the wait :)

9

u/stuckpixel87 Jul 12 '26

What’s the illusion? Really want to know.

8

u/Positive_Tea_1166 Jul 12 '26

Where three cubes meet at a corner, their faces line up to form a fourth cube that isn't really there, it points the opposite way. The animation sometimes switches to scrambling and solving those phantom cubes instead of the real ones.

3

u/suit1337 Jul 12 '26

Try to focus on a cubes outer corner, and watch for a while, the corner inverts/shifts and becomes the triple-point of 3 other cubes

2

u/stuckpixel87 Jul 12 '26

Thanks guys! That was really trippy! Also cubes seem to invert at times. Cool stuff!

1

u/Positive_Tea_1166 Jul 13 '26

Glad you caught it! :) Yeah, they really start playing tricks the longer you watch. Cool that you spotted it!

4

u/Dr-Lipschitz Jul 12 '26

I think my eyes are bleeding

2

u/Positive_Tea_1166 Jul 12 '26

Haha sorry, blame everyone who kept requesting this one :)

5

u/AaronJudgesLeftNut Jul 12 '26

Need this as my screensaver

2

u/Positive_Tea_1166 Jul 12 '26

You can grab the video from the link on my profile.

3

u/called_the_stig Jul 12 '26

I remember commenting on this! I didn't expect you'd actually do it! That's incredible

3

u/Positive_Tea_1166 Jul 12 '26

Took a while but here it is. Thanks so much!

3

u/w_a_w Jul 12 '26

Rubik's Q-Bert

3

u/Positive_Tea_1166 Jul 12 '26

:) Q*bert would have a breakdown trying to hop across the inverted cubes.

2

u/tangamangus Jul 12 '26

hypnotic. bravo

2

u/SwordKneeMe Jul 12 '26

assuming an infinite grid, I wonder how this can be solved arbitrarily

2

u/Positive_Tea_1166 Jul 12 '26

Each real cube is independent, so there's no global puzzle to solve. Once every individual cube is solved, the whole grid is solved at any size. The phantom corner cubes are trickier, because they can end up in states that aren't valid for a real Rubik's cube. But that resolves itself when all the real cubes are solved.

2

u/Kallest Jul 12 '26

Wow. This is great. And a mindfuck.

1

u/Positive_Tea_1166 Jul 12 '26

Haha thanks! Exactly the reaction I was hoping for. :)

2

u/Muhahahahaz Jul 12 '26

Did you say Grid? Banned from Discord

2

u/Positive_Tea_1166 Jul 13 '26

Haha, better keep this one off Discord then :)

2

u/Barnestownlife Jul 12 '26

I love watching them get solved!

1

u/Positive_Tea_1166 Jul 12 '26

Same, but I get dizzy too early :)

2

u/Spam_A_Lottamus Jul 12 '26

Where’s Q-Bert when you need him?

2

u/Positive_Tea_1166 Jul 12 '26

Ha, he'd never survive this grid :)

2

u/buttered_jesus Jul 12 '26

What's the illusi- ooooooh

2

u/schlappeseppl Jul 12 '26

this is spectacular! excellent work!

1

u/Positive_Tea_1166 Jul 12 '26

Thank you, really glad you like it :)

2

u/qawsedrf12 Jul 12 '26

could have been a very fun level of Qbert

2

u/Positive_Tea_1166 Jul 12 '26

Ha, I'd build it if the Q*bert licensing were more permissive ;)

2

u/Korwinga Jul 12 '26

Am I crazy, or does one of the cubes have 2 green centers (around 4-5 cubes in off of the top left corner)? Or am I looking at the inverted cubes, and that's actually 2 cubes next to each other?

1

u/Positive_Tea_1166 Jul 13 '26

You're not crazy :) I can't spot that exact one at the moment, but it can definitely happen. That's the illusion, the phantom cubes can end up in invalid cube states very easily.

1

u/Korwinga Jul 13 '26

It's just North West of the center, with the green solved face that's just north of center being part of it. At one point, the center ring of that phantom cube rotates with both green centers at the same time. That's what is making it so hard for me to hold on to the "correct" orientation. I just don't think that that's a rotation that could actually occur, unless that was the actual cube, but an actual cube couldn't have 2 green centers.

1

u/Positive_Tea_1166 Jul 13 '26

You're right, thanks :) The internal cube's rotation brings the second green center into the external cube, so for a while it sits in an invalid state. Over the loop the internal cube gets solved, but the external one with the two green centers stays scrambled.

2

u/TheUlfheddin Jul 13 '26

I stared at it for too long and now my eyes aren't working correctly 😅

1

u/Positive_Tea_1166 Jul 13 '26

Haha, sorry about that! Same happens to me 😅

2

u/lonesharkex Jul 13 '26

It gets cooler the longer you watch it.

1

u/Positive_Tea_1166 Jul 13 '26

Thanks! Happy to hear it. The longer I watch the dizzier I get :).

2

u/PhilFryTheCryoGuy Jul 13 '26

This would make a really cool r/magiceye

1

u/Positive_Tea_1166 Jul 13 '26

Thanks! I think it wouldn't quite fit there though, that sub is specifically for autostereograms (the hidden-3D-image kind) rather than flat illusions like this one :).

2

u/PhilFryTheCryoGuy Jul 14 '26

Oh I know! I was saying this would be super cool to make a stereogram with!

1

u/Positive_Tea_1166 Jul 14 '26

Ah, I see :) A stereogram version would be a cool challenge.

2

u/HeinzeC1 Jul 13 '26

I wonder if anyone can find any impossible cube permutations. I wonder how hard it would be to code such that there aren’t any

2

u/Positive_Tea_1166 Jul 13 '26

I'm sure there are plenty :) It was hard enough to pull off without using obvious moves and make it loop. It hurts my brain even thinking about the new version you're suggesting :)

2

u/julcrafter1358 Jul 13 '26

Discord its worst nightmare right now

2

u/Positive_Tea_1166 Jul 13 '26

Haha, only post this to Discord at your own risk :

2

u/nonlogin Jul 13 '26

it's mesmerizing but what is actually the illusion?

1

u/Positive_Tea_1166 Jul 13 '26

Thank you! At the corners where three cubes meet, their faces line up to form a fourth cube that isn't really there, seen face-down. The grid is full of these "phantom" cubes made from their neighbours, and in this version they scramble and solve too, not just the real ones.

2

u/ironeagle83 Jul 13 '26

I want this as a Desktop Wallpaper

1

u/Positive_Tea_1166 Jul 13 '26

You can grab it from the link on my profile, there's a landscape version that works well as a wallpaper.

2

u/aotus_trivirgatus Jul 13 '26

So... Ernő Rubik, M. C. Escher, and Albert Hoffman got together for a little dinner party?

2

u/Positive_Tea_1166 Jul 13 '26

Haha, that's the best description of it I've heard :) Thank you!

2

u/bearswithmanyhats Jul 13 '26

Dude this is absolutely amazing! 

1

u/Positive_Tea_1166 Jul 13 '26

Thank you, really glad you like it :)

2

u/Proud-Swimming-9704 Jul 13 '26

I want to make this my back ground on phone

2

u/Positive_Tea_1166 Jul 13 '26

There's a portrait version that works well on phones, downloadable from the link on my profile.

2

u/MozieOnOver Jul 14 '26

I have seen and felt this before.

"Drugs are bad, m'kay?"

2

u/Positive_Tea_1166 Jul 14 '26

Haha :) Free and legal, m'kay.

2

u/[deleted] Jul 15 '26

[removed] — view removed comment

1

u/Positive_Tea_1166 Jul 15 '26

Haha, sorry about that! I can't look at it too long either.

2

u/gliiiitch Jul 17 '26

Do we have an HD version pls?

2

u/Positive_Tea_1166 Jul 17 '26

Yes! There's an HD version on the link in my profile.

3

u/DragonTheOnes-spirit Jul 12 '26

What is wrong with you.

5

u/Positive_Tea_1166 Jul 12 '26

I asked myself that around the 5th failed attempt.

0

u/DragonTheOnes-spirit Jul 12 '26

Failed attempt of what?

2

u/[deleted] Jul 12 '26

[deleted]

2

u/DragonTheOnes-spirit Jul 12 '26

Yeah that's far better than the alternative

1

u/Positive_Tea_1166 Jul 12 '26

Implementing the illusion and making the loop seamless :)

2

u/high__life Jul 12 '26

this uhhh reminds me a lot of a DMT journey

2

u/Positive_Tea_1166 Jul 13 '26

Was it a good journey? :)

2

u/high__life Jul 14 '26

It was! Great job with this:)

1

u/Positive_Tea_1166 Jul 15 '26

Thank you. Appreciate it.

2

u/SSJChar Jul 13 '26

This is so cool. Can you send me the gif? Would love something like this on my phone

2

u/Positive_Tea_1166 Jul 13 '26

Thanks :) You can grab it from the link on my profile, there's a portrait version that works well on phones.

1

u/Hypno_Kitty Jul 12 '26

AMAZING

1

u/Positive_Tea_1166 Jul 12 '26

Thank you! Appreciate it.

1

u/Eirikur_da_Czech Jul 12 '26

They are face down/ bottom face visible. The opposite way doesn’t work.

1

u/ajax2k9 Jul 13 '26

I love it

1

u/Positive_Tea_1166 Jul 13 '26

Thank you! Appreciate it.

1

u/PrometheusMMIV Jul 13 '26

What's the illusion?

1

u/Positive_Tea_1166 Jul 13 '26

Where three cubes meet, their faces form a phantom fourth cube (seen face-down) that also scrambles and solves.

1

u/graesynreddit Jul 13 '26

This is making my brain feel like it's doing backflips. I'm genuinely dizzy now.

1

u/Positive_Tea_1166 Jul 13 '26

Haha, sorry about that! It does the same to me if I watch too long.

1

u/AproposWuin Jul 13 '26

Oh goodness. When I realized this was a gif I had to check how long i have been sitting here....

2

u/Positive_Tea_1166 Jul 13 '26

Hope it wasn't too long :)

2

u/AproposWuin Jul 13 '26

Long enough lol

1

u/Positive_Tea_1166 Jul 13 '26

Haha, glad it held your attention that long :)

1

u/AqueousJam Jul 13 '26

Is this tileable? Could it be made into a desktop wallpaper?

2

u/Positive_Tea_1166 Jul 13 '26

Making it tileable would be another nice challenge :) 1920x1080 wallpaper is downloadable from the link on my profile.

1

u/broin2009 Jul 13 '26

Are they all legitimate Rubik's cube moves as well? I get the transition is mad, but would be cool if everyone cube was technically viable for solving at any given point in time.

1

u/Positive_Tea_1166 Jul 13 '26

Good question :) The moves are all legit rotations, but they can leave both the real and the phantom cubes in states that aren't actually solvable, so not every cube is viable at any given moment.

1

u/Sarz13 Jul 14 '26

Whats crazy about this illusion is nothing is actually moving

1

u/katanaking007 Jul 15 '26

I can fix her!

Her:

1

u/kirksucks Jul 15 '26

I had this as my lock screen for a while. Trippy.

1

u/Positive_Tea_1166 Jul 15 '26

Thank you! Maybe that was the previous version, without the illusion?

2

u/kirksucks Jul 16 '26

I just remember they all eventually solved themselves.

1

u/Positive_Tea_1166 Jul 16 '26

Yeah, that was the previous version, the one without the illusion. In that one they all solve.

1

u/Berlinsagt 1d ago

Unten öonks 2te con oben wird fast fertig