Photomaster's Rubik's Cube Tutorial
GIMP Talk - Community
A premier community of gimp users sharing their knowledge
Buy your favorite VIDEO GAMES, Ebooks, Electronics and more...
Log In . Register FAQs (knowledgebase) . Search . New Posts . Contact us

Board is under heavy update, so be patient if few features do not work and/or have been disabled!

This operation may take more than 48 hours, but we will try our best to put it back sooner as possible. Thank you...

For the time being please use IRC chat channel #gimp at Dalnet (irc://dalnet.net/gimp).

Featured tutorials : Character Artwork and Forest Background by Griatch Make Money Online Blog . Free Image Hosting !



Navigation : Board Index > GIMP Tutorials and Tips
More Options: Printable version
Posts of topic : Photomaster's Rubik's Cube Tutorial
Author Post details
PhotoMaster
Member




Profile


Joined: May 15, 2006
Posts: 566
posted on: Sep 07, 2007 at 04:32:03


It's a little long, but I think you'll like it.
Greg

01) Create a square image. (500x500 in my example)
02) Layer > Transparency > Add Alpha Channel.
03) Select > Select All (Ctrl+A)
04) Fill the selection with black using paint bucket (Shift+B)
05) Select > None (Shift+Ctrl+A)
06) Run the Rule of Thirds Script if you have it and skip to step 11. (Script is available here http://www.gimptalk.com/forum/article/My-First-Two-Scripts-9448.html )
07) Image > Guides > New Guide by Percent > Horizontal 33%
08) Image > Guides > New Guide by Percent > Horizontal 67%
09) Image > Guides > New Guide by Percent > Vertical 33%
10) Image > Guides > New Guide by Percent > Vertical 67%
11) Using rectangular Selection Tool (or press R key) and select the first square (1 of 9).
12) Select > Shrink > 5 pixels
13) Select > Rounded Rectangle > 10%
14) Select > Feather > 10
15) Cut out the selection (Ctrl+X)
16) Repeat steps 11 - 14 for the remaining 8 squares.

17) Rename the layer as "Rubiks Frame" and duplicate layer twice. (Total of 3 layers)
18) Load the three selected images as layers. (Ctrl+Alt+O)
19) Resize each and crop to 500x500.
20) Alternate the layers as Rubiks Frame, Picture 1, Rubiks Frame copy, Picture 2, Rubiks Frame copy #2, Picture 3

21) Merge Layers 1 & 2 together, 3 & 4 together, and 5 & 6 together.
22) Right click on "Picture 1" layer and select "New Layer", name layer "Cube" and click on ok. (Pictures don’t show correct name.)

23) Filters > Map > Map object.
24) Map to: Box
25) Click Transparent Background button. (you should only see the checkerboard pattern in preview window)
26) Click Box Tab
27) Set Front and Back to Picture 1
28) Set Top and Bottom to Picture 2
29) Set Right and Left to Picture 3
30) Click Light Tab
31) Set Light to directional
32) Click Orientation Tab
33) Under Rotation Set X= 20
34) Under Rotation Set Y= -25
35) Under Rotation Set Z= 0
36) Click Preview (Now you should see your current cube design)

37) Experiment with the X, Y and Z rotations. (Preview after each change)
38) Click "ok" when you are happy with the preview result. (Can take a minute or two)
39) Turn off the 3 "picture" layers
40) Turn off the grid lines (Shift+Ctrl+T).
41) Right click on "Picture 1" layer and select "New Layer", name layer "Back" and click on ok.
42) Fill layer with background color (or pattern) of choice. (Shift+B)
     Note: If using pattern you might want to use the perspective tool (Shift+P) to give dimension to background.
43) Click on "Cube" layer.
44)with GIMP 2.2 Script-Fu > Shadow > Drop Shadow >

but with GIMP 2.4 Filter/Light and shadow/Drop Shadow

     Offset X = 25
     Offset Y = 25
     Blur Radius = 25
     Color = Black (Default)
     Opacity = 80% (Default)
     Turn off "Allow Resizing"

45) Click Drop-Shadow layer.
46) Click shear icon (Shift+S)
     X= -250
47) Click scale Icon (Shift+T)
     Width = 649
     Height = 200
48) Click on move tool (or press M key) Position shadow where you would like it.
49) You can also vary opacity of "Drop-Shadow" layer if you'd like
50) Click links on "Cube" and "Drop-Shadow" layers (Next to eye)
51) Still using the move tool, drag cube and shadow to place it where you'd like.





My Sigs = My Photos

sydney
Member




Profile


Joined: Jul 03, 2006
Posts: 5402
posted on: Sep 07, 2007 at 05:14:59
The result is really nice! Thanks for posting it; I might try it.



ThatSomeone
Member




Profile


Joined: Aug 15, 2007
Posts: 20
posted on: Sep 07, 2007 at 05:46:18
Wow Nice Il Post My Result When Im Finished



PhotoMaster
Member




Profile


Joined: May 15, 2006
Posts: 566
posted on: Sep 09, 2007 at 11:58:49
On my original, I created duplicate of the cube layer, did a threshold on it, cleaned it up to just be the black cube with white faces and did a bump map of the cube layer using the threshold copy as the source.

Hope you like it.
Greg



My Sigs = My Photos

Kwin
Member



Profile


Joined: May 18, 2007
Posts: 28
posted on: Sep 10, 2007 at 02:16:55
Nice tutorial! Amazing!

But by the way, the image you posted above has wrong perspective along with the pine stuff.
ccbarr
Member



Profile


Joined: Feb 22, 2006
Posts: 1115
posted on: Sep 10, 2007 at 03:02:11
hehe, that is really cool PhotoMaster. Very well done and an excellent use of Map Object.
sydney
Member




Profile


Joined: Jul 03, 2006
Posts: 5402
posted on: Sep 11, 2007 at 06:59:02

my result ^



PhotoComix
Manager




Profile


Joined: Jun 13, 2005
Posts: 6258
posted on: Sep 11, 2007 at 08:12:27
QUOTE:
hehe, that is really cool PhotoMaster. Very well done and an excellent use of Map Object.


yup...map object doesn't map very well to sphere (i fear that if its developer read my previous comments about how it maps to sphere...then it may have developed also sort of homicide instinct against me..i was a bit heavy... )but it works well with cubes

...nice tut



http://www.flickr.com/photos/97844002@N00/

ClayOgre
Member




Profile


Joined: Aug 13, 2005
Posts: 4759
posted on: Sep 12, 2007 at 06:15:53
This is a very good tutorial. I am gonna have to try this. I think you could even possibly animate the sections of the cube spinning like a real rubic's cube (though doing it in Gimp would be a lot of work, evan with GAP).



Griatch
Manager




Profile


Joined: Nov 27, 2006
Posts: 1807
posted on: Sep 12, 2007 at 05:34:48
@ClayOgre

Doing it in perspective sounds like a really massive work for GAP ... one of those instances where going full 3D is probably worth the hassle even if one has to learn Blender in the process... ^_^;

@PhotoMaster

Nice tutorial and a fun result! Be careful when placing the cube on a surface though, so that the perspective comes out right.
.
Griatch


~~ My online art Gallery ~~ My GIMP Tutorials ~~

PhotoMaster
Member




Profile


Joined: May 15, 2006
Posts: 566
posted on: Sep 18, 2007 at 08:21:05
@Sydney
Your cube looks great! Was the tut easy enough to follow?

@ Kwin and Griatch
It took me a moment to understand what you were talking about. I changed the perspective of the pine surface to make it forshortened and didn't think to distort the cube the same. (cube doesn't have the same depth as the table top) Thank you both for pointing this out to me.

Greg



My Sigs = My Photos

Ate_My_Crayons
Member




Profile


Joined: Sep 19, 2007
Posts: 3
posted on: Sep 19, 2007 at 11:19:46
Photomaster - This is a great tutorial! This is the one you told me about? I'm going to give it a shot right away, if I can keep my eyes open long enough. I already installed your 10% scripts. Thank you for sharing this G.
Ate_My_Crayons
Member




Profile


Joined: Sep 19, 2007
Posts: 3
posted on: Sep 19, 2007 at 03:58:39
This was fun to make. I used a couple of my kaleidoscope images. I'll clean up and tweak the image later but for now, I wanted to show what I ended up with by following the steps. The tutorial was easy to follow and very effective.

PhotoComix
Manager




Profile


Joined: Jun 13, 2005
Posts: 6258
posted on: Sep 19, 2007 at 10:58:00
Cool..ilike the colours...and then i like kaleidoscope too
That on the right with the blue star is really catchy



http://www.flickr.com/photos/97844002@N00/

PhotoMaster
Member




Profile


Joined: May 15, 2006
Posts: 566
posted on: Sep 20, 2007 at 03:58:03
Great cube! I love the colors and I especially like the one on the front/right face.I agree with PhotoComix on the blue star.
Greg



My Sigs = My Photos

Ate_My_Crayons
Member




Profile


Joined: Sep 19, 2007
Posts: 3
posted on: Sep 21, 2007 at 01:32:23
I am having so much fun with the Rubik Cube tutorial. I went all out on this one.

hollisterpolak
Member




Profile


Joined: Sep 21, 2007
Posts: 10
posted on: Sep 21, 2007 at 11:02:43
how long does it take
PhotoMaster
Member




Profile


Joined: May 15, 2006
Posts: 566
posted on: Sep 22, 2007 at 12:13:38
@ Angela - Amazing! I love the crazy colors! Now I just need some coolaid and I'm all set.

@ Hollisterpolak - The single longest part is step #38, waiting a minute or two for the program to actually map out the cube. Each time I do it it goes quicker,as it becomes more automatic for me. How long it will take depends on the user and the machine that it's done on.

Greg



My Sigs = My Photos

davidcon
Member




Profile


Joined: Nov 17, 2006
Posts: 7
posted on: Sep 23, 2007 at 11:06:07
I decided to take a more traditional approach.

wbool63
Member




Profile


Joined: May 16, 2007
Posts: 52
posted on: Sep 27, 2007 at 08:38:16
Thank You Photomaster, great Tut,
Also I think that ClayOgre has done something similar in another Tut with a spinning cube with a spinning rubic in the sides . If that is the case CO, can you do a Tut for that? I could not find it.
Here is mine. Note the little white gap at the front where the three sides meet . I thought that I would be smart and do a rounded corner on the 400X 400 grid to give a rounded corner as you would find on a real rubic cube. Big mistake but I couldnt be bothered starting again.
Cheers Wbool 63

NB this is a very resource hogging exercise, my machine dies if I attempt a 500X500


By wbool63 at 2007-07-09

Yuri Laszlo
Member




Profile


Joined: Sep 29, 2007
Posts: 2
posted on: Sep 29, 2007 at 12:28:04
Interesting tutorial. Might try later, really good outcomes. :)



frodo5280
Member




Profile


Joined: Sep 29, 2007
Posts: 70
posted on: Oct 07, 2007 at 12:09:45
How do I download that rule of thirds script? The link you gave is just a bunch of text, what do I do?
looks great but I can't do anything until I get that script.



PhotoMaster
Member




Profile


Joined: May 15, 2006
Posts: 566
posted on: Oct 11, 2007 at 01:57:37
Hi Frodo, If you highlight the text and do a copy, (right click and copy on my machine) and paste it into a blank text document (I use notepad) and save it in your scripts folder (C:\Program Files\Gimp-2.2\share\gimp\2.0\scripts) and save it with an scm extension (xxxxx.scm). In notepad you need to set document type to all or it will name it xxxxx.scm.txt . If it does, just rename it without the txt.

Greg



My Sigs = My Photos

wbool63
Member




Profile


Joined: May 16, 2007
Posts: 52
posted on: Oct 13, 2007 at 05:25:13
Hi, In order to make it map faster and use less resources, so you can make a bigger cube, do NOT map the Back, Bottom and one of the Side faces. These faces are not shown and can be mapped as blank. Obviously if you want to show the bottom face then do not map the top face. In other words only map the map the faces you will show . See Photomaster's Tutorial steps 27,28 and 29.

Cheers WBOOL63

Added later, NO, I am wrong, there is no difference in time. I timed mapping with One face as compared to mapping with SIX faces and there is no difference. Perhaps some background task was running that skewed my figures last time.I timed it

Cheers


By wbool63 at 2007-07-09

cdub1885
Member




Profile


Joined: Nov 12, 2007
Posts: 2
posted on: Nov 12, 2007 at 09:08:43
I read the Rubik tutorial. Very cool. I'm new to "The Gimp".
\I learn a lot so far.
Actually I'm more of programmer / linux web server set up stuff.

Anyway. I could not get the Filters > Map > Map Object tool to work.
Once I hit the box tab things freeze up.

I'm running Gimp on a Dell Inspiron laptop (512 megs of RAM) p3 800
Fedora Core 7. I installed Gimp from using yum.

Thank,
cdub1885

This might be a double post.

More pages : 1 2 Quick jump to forum



All rights reserved www.gimptalk.com (Gimp Tutorials)