deviant art





Login
Join deviantART for FREE Take the Tour Lost Password?
Deviant Login
Shop
 Join deviantART for FREE Take the Tour
[x]

More from ~fence-post

Featured in Groups:

Details

January 8, 2008
4.6 KB
Link
Thumb

Statistics

Comments: 24
Favourites: 19 [who?]
Views: 9,242 (1 today)
Downloads: 4,075 (3 today)

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
[x]
:iconfence-post:
EDIT October 9, 2008: Updated script to work in GIMP 2.6 (the newest stable version.) If you have a previous version of this script, please delete it to avoid conflicts.

Let me know if you have any trouble with it.


This is something I've wanted to do for a LONG time and now that I understand scripting a bit more, was finally able to get this finished! I've taken the default GIMP Spinning Globe Script and modified it to map a single layer onto a rotating cube. I've added the option to set the speed and adjust the size of the cube, but the default cube size is pretty good. You can't go much higher in size than the default because if I allow you to make it too much larger, it won't fit in the current window size (I *could* implement an option to resize the frame to allow for a larger cube, but that's not planned for the time being.)

Click on the Download link to open the script.

Save it to your GIMP scripts folder (ie....C:\Program Files\GIMP-2.X\share\gimp\2.0\scripts) and then go to Filters > Script-Fu > Refresh Scripts and it will appear in the main image window under Filters Menu > Animation > Spinning Cube... (Thanks to circledancer at gimptalk.com for testing this out in GIMP 2.2. It works fine, with no modifications.)

The script defaults to setting the x-angle to 30 degrees so the cube is tilted slightly towards the viewer. Later, I will add an option to allow the user to change this setting....easy enough to do, but I was just being lazy! :)

NOTE: Depending on your computer, this script may take awhile to run. My home computer generated the animation with 10 frames in about 5 minutes....but it took about 20 minutes on another machine that is much newer and has more memory. So, I recommend you try this out with just a few frames at first to see how your machine responds. Maybe this is why the script was never written before! ;)

Future goals:

Allow for "predictable", simultaneous rotation on all 3 axis. Right now, I can't figure this out.
Allow for mapping different images to each face.

Let me know how it works for you or if you have any problems with it. Suggestions for improvement are always welcome!

Art
:icon:
Add a Comment:
 
love 0 0 joy 5 5 wow 1 1 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconadnegel:
se podria aser el cubo con diferentes imagenes a los lados?
Reply
:iconneopong13:
~Neopong13 Dec 18, 2009  Hobbyist Artisan Crafter
Sorry but when i click download all it gives me is the HTML.
What do i do?

--
Everyone is born left handed, intell they Sin!
Reply
:iconnevit:
Nice script. It would be nice to increase the max possible frame count to more than 20 for a smoother animation. I guess it is in the line SF-ADJUSTMENT "Frames" '(10 3 20 1 10 0 1) but do not know how to modify it :(
Reply
:iconfence-post:
You are correct about the SF-ADJUSTMENT line and it's an easy fix. See the value of "20"? Replace 20 with any number you wish. Save the change and refresh your scripts and it will give you that option.

I'll send you some scripting tutorial information tonight when I get home.

Art

--
Yes, Art is my real name!

"I don't know about genius, I'd more say it was stupidity let loose...." Siminart

GIMP Dome ; Need Gimp Brushes? Check Here!
Reply
:iconnevit:
Thank you... it worked...
Reply
:iconhorsemad1996:
O.K feeling stupid again but how do you put those into gimp, I know how to download brushes but it just throws up a load of text? What do I do?

Thanks

--
---------------------------------------------------------------------------
Just because I am a brunette does not mean to say I am a secret blonde *walks into wall while saying*
Reply
:iconfence-post:
The instructions are in the deviation description. The text that appears IS the script.

Art

--
Yes, Art is my real name!

"I don't know about genius, I'd more say it was stupidity let loose...." Siminart

GIMP Dome ; Need Gimp Brushes? Check Here!
Reply
:icongeminigriffin:
I see you took my box out of the water and made it spin. Cool! I want to try this. I have a picture manipulation that has a box like that. I thought it was funny. But I know you just used GIMP after all it is a box and if you use simular colors it is going to look like any other box. hee,hee. Well Can't wait to try this. I just started to use my GIMP more lately so I will be trying this out.

Take Care
Reply
:icon:
Add a Comment: