You are here

Galaxy

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
AttachmentSize
Galaxy.jpg149.99 KB
JMS-Space_Galaxy.scm18.74 KB

This is an attempt to automate making a galaxy via GIMP. I'd seen a few excellent tutorials, but none that could be easily automated. One of the resulting pictures is attached to this page.

The galaxy can have any number of arms, and they can have varying degrees of curvature. Very high degrees of curvature will result in an elliptical galaxy rather than a spiral. Stars can be added, and the galaxy can be set to have any perspective or color.

This script uses the Outer Glow function from the layer effects script found elsewhere on this site. The Outer Glow script (and the sub procedures) have already been added to my galaxy script. Their names have been changed to make sure there are no conflicts with the original layer effects script, in case you also have that installed.

The script is under the "/Filters/SambrookJM/" menu in GIMP, although that can be changed by editing the last line of the script to put it wherever you want it to go.

As always, if you've got any suggestions, improvements, or comments (or if it's not working for you) go ahead and post them. One thing that can happen is that if the galaxy color is too bright, some of the other details can be washed out. Try to decrease the brightness of the top two layers to counteract this.

[edit] Yeah, I screwed up. There were a couple of scripts that I didn't copy over from the layer effects script. I thought refreshing the scripts on my GIMP would flush them out of the memory after I removed that script file. It didn't. My fault, 100%. This new script should fix things.

gerard82, I think figured out what your problem was. The problem was in the (rand 4000000000) statement. For some reason, Linux versions of GIMP don't like the random number being that high. I lowered the maximum possible random number to 1000000000, which allowed me to run this script (and the brick wall one) on a Ubuntu 10.10, 64-bit build. Try this and the Brick Wall script (soon to be updated) and see if that works.

Code License: 
GIMP Version: 
Scripting Engine: 

Comments

You should report this to Bugzilla, preferably with a minimal example script which reproduces the bug.

How would I report this to bugzilla? The script to replicate the problem would be incredibly easy to make...just a layer with random noise, using (rand 4000000000) in there.

Very nice - works perfectly now (Ubuntu 10.10 amd 64).

Cool script - thanks!

Here is my first Galaxy :)
http://img715.imageshack.us/img715/7589/galaxyw.png

Nicely done.I can't wait to experiment further with this one.
I am running on Windows xp btw so it should work on that platform for everyone.

Number 2
http://img525.imageshack.us/img525/5157/galaxy2.png

with these settings
http://img808.imageshack.us/img808/7629/gallaxysettings1.png

I'm getting the following error:

Error while executing script-fu galaxy:
Error: eval: unbound variable: math-round.

How can I remedy this?

I'm getting the same error, Windows XP SP3, Gimp 2.6.10. I've tried the settings that worked for wacmaster with several different picture sizes, but without success.

Thanks, the revised script worked for me.

to tilt the galaxy the other way?
- values don't work it seems.

I changed the values of the skew angle from (0 to 90 ) to (-90 to 90) when I (hopefully) fixed the Linux bug. Is that what you meant?

Hi!
I have the same Problem. And I read yor reply, but where can I do the changes? Inside the script? I found "Skew Angle" at the end of the script, but how should it look like?

Excuse me, I'm absolutely new in this Forum and even not familiar to scripting (and the english language to).

My System is Windows 7, 64 Bit, and I'm working with Gimp 2.6.11.

Pages

Subscribe to Comments for "Galaxy"