View Full Version : Display your world as a spinning globe


thisispete
Mar 19, 2005, 03:47 AM
I'm not sure if this is the right forum for this, but I figured I would post it here since the best use of this tip would be in stories and tales.

I've been toying around with an application called The GIMP (Graphical Image Manipulation Program), which you can download for free at download.com (http://www.download.com/The-GIMP/3000-2192_4-10350428.html?tag=lst-0-1) . Anyway, there is a feature in it which allows you to animate any image as a spinning globe. I fooled around with the minimap from my current game and this is what I came up with.

http://www.civfanatics.net/uploads9/globe3.gif

One important thing to note is that to appear as a perfect globe, the original image must be a perfect square, so I resized the canvas in Paint and filled in the white bands with black (once the entire world has been mapped, you may wish to fill in those areas with ocean blue).

Anyway, here's the original image I used

http://www.civfanatics.net/uploads9/civmapforglobeorig.JPG

And here it is modified for globification.
http://www.civfanatics.net/uploads9/civmapforglobe.jpg

CoolioVonHoolio
Mar 19, 2005, 09:14 AM
i dont think this is the right forum for this...

Steel General
Mar 19, 2005, 11:21 AM
No it should probably be in the Creation/Customization Forum but its still pretty cool.

LulThyme
Mar 19, 2005, 12:04 PM
It does look pretty good, although to display it on a cylinder would be the accurate thing to do...

Blaze Injun
Mar 19, 2005, 12:35 PM
Hey,

Makes me :crazyeye: ized.



Blaze Injun

Puppeteer
Mar 19, 2005, 03:28 PM
Hey, cool! I guess I sorta knew Gimp could do that but never tried it and never thought about using it for CivIII. I took your map and streched it to fill up the globe. Then I decided we need polar ice caps. After some experimentation I used this base image (minus the black outline which was added for clarity):

http://www.civfanatics.net/uploads9/Puppeteer-globetest.jpg

and came up with this globe:

http://www.civfanatics.net/uploads9/Puppeteer-globe4.gif

It could certainly use a little more tweaking, but this is really cool. Thanks!

This thread will probably get moved somewhere under Creation and Custimization.

@LulThyme, actually globe-to-cylinder-to-flat mapping was used a lot throughout maritime history. And doing it a certain way allowed you to plot globe-accurate courses using a straightedge. I was reading about this recently but forget where. But if you really want a cylinder, use the Map-to-Cylinder function and alter the Y axis rotation for each frame to continue and make the animation (the animate spinning globe script repeatedly maps to sphere while rotating the Y axis):

http://www.civfanatics.net/uploads9/Puppetter-cylinderglobe.gif

EDIT: Detail notes: Original map was 230x106. I stretched it to 230x155 then enlarged canvas to 230x230 and painted the polar caps white. Then used the Script-Fu -> Animators -> Spinning Globe... option from the menus. I used 20 frames and 64 colors. When saving to GIF I used 150ms or 200ms timing.

Puppeteer
Mar 19, 2005, 03:50 PM
By the way, I tried keeping the filesize small for my globe for posting here. If I up the colors to 255 (plus transparency), use 100 frames and 50ms delay I get a much cooler looking animation, but it's 814k bytes:

http://www.civfanatics.net/uploads9/Puppeteer-globe5.gif

thisispete
Mar 19, 2005, 04:12 PM
@Puppeteer - that's a definite improvement. I used 15 frames on the one I created, it looked better at 24 frames - so one second would equal one day. 24 frames took the image over 100kb, though and although that is well within the upload limit, I try to keep images as compact as possible.

rbis4rbb
Mar 20, 2005, 08:51 AM
cool tip guys!!!

thisispete
Mar 21, 2005, 05:48 AM
And here is the final globe after a complete exploration of the world. I took the minimap, stretched it vertically by 150% and put in some polar regions.

http://www.civfanatics.net/uploads9/finalmap.jpg

This globe is 24 frames. I changed the direction of the spin to match Earth's too. I think this is probably the best quality you can get within reasonable limits, though a slower speed of rotation might be good (and is do-able)

http://www.civfanatics.net/uploads9/finalglobe2.gif

Puppeteer
Mar 21, 2005, 07:21 AM
Looks very nice with the world revealed.

I'm in a weird mood this morning, and these are the result:

http://www.civfanatics.net/uploads9/Puppeteer-finalglobe2.gif http://www.civfanatics.net/uploads9/Puppeteer-spinngin-cylinder.gif

I tried erasing the polar caps, unstreching the map back to original size and making it a spinning cylinder but it turns into just a square that appears to be scrolling horizontally...very hard to tell it's supposed to be a cylinder. By the way I edited the animate globe script to make the cylinder. If anyone wants it I could post it, but basically you change a 1 to a 3 below ";mapping" and then edit the "spinning-globe" references to "spinning-cylinder".

Chieftess
Mar 21, 2005, 10:04 PM
That's pretty neat. I moved this to the Creation & Customization forum, since it's more of artwork than a story.

viper275
Mar 21, 2005, 10:46 PM
How exactly do you do this (what do you click on to get there?)

tjedge1
Mar 22, 2005, 06:37 AM
This is sweet. I think I'm going to start doing these when I start my scenarios.

Pounder
Mar 22, 2005, 06:46 AM
What does it look like in game. How to you use it.

mrtn
Mar 22, 2005, 10:09 AM
@Pounder: You don't use it in the game, it's just a nice gfx for stories and such. :)

aaglo
Mar 22, 2005, 10:10 AM
I've got even better program for that - pov-ray, where you can add a matching bump-map to it :p ;)
... ok, you need also some image-editing program and a gif-animation tool...

But nevertheless, it's a fun feature (the rotating globe...)

Goldflash
Mar 22, 2005, 11:06 AM
*bangheadondesk* Make Work in Game! That bee coolio with whipped chesse, OG Loc!

Puppeteer
Mar 26, 2005, 01:30 PM
Work in-game? Hmmmm. Maybe possible, but I'm not starting on it.

How exactly do you do this (what do you click on to get there?)
In The GIMP, a free Photoshop-like program, here's what I do:

1: Scale the image into a square, leaving some white space at the top and bottom for ice caps if desired.

2: Make sure image is in RGB or Grayscale mode, not Indexed.

3: Script-Fu dropdown menu menu -> Animators -> Spinning Globe. You can select the # of frames and colors (up to 256, or 255 w/transparent background) there. Make selections and click OK.

4: When it's done you'll have a multi-layer image. File -> Save As... and give it a filename with the ".gif" extension; it will ask you if you want to merge layers or export as animation. Choose animation, and then enter the delay in milliseconds between animation frames and whether you want to loop the animation (yes).

Chieftess
Mar 26, 2005, 02:30 PM
That program seems to crash a lot in random places, I've noticed. (can't seem to go to the open file dialog without it crashing)

Ginger_Ale
Mar 26, 2005, 03:09 PM
Did you download and install the GTK+ runtime enviroment from download.com's link before you downloaded GIMP? It said it won't really work if you don't do that, and sounds like that won't happen.

Btw, I like Puppeteer's the best - a globe spinning slowly, not superfast.

Chieftess
Mar 26, 2005, 03:25 PM
Yes I did. It usually gets font runtime errors, or errors when it can't find a directory. Very buggy.

I get an error that says:
"Pango-ERROR **: file shape.c; line 75 (pango_shape): assertion failed: (glyphs->num_glyphs > 0)
when I try to open the open file dialog box, for example.

I also get a "Could not load font "MS Sans Serif 8" error when saving the animation and I don't give it a file extension.

Ginger-Ale - can you spot the pointer in that line? ;)

the100thballoon
Mar 27, 2005, 04:12 PM
wish there was a way to use this in-game...... maybe as a flc? dont know where.....

Puppeteer
Mar 28, 2005, 01:19 PM
@Chieftess: I never had that problem. I did have one problem saving a particular jpg, but it was only that one jpg. My only thought is to double-check you have the latest GIMP (2.2.3 for Windows last I looked) and GTK+ (2.4.14 last I looked) and reinstall.

@the100thballoon: The Gimp animation could be made to run as a command-line script. If someone can figure how to put an arbitrary animated bitmap in the game I can probably figure out how to generate it.

Rhye
Mar 28, 2005, 01:39 PM
very very nice!

Chieftess
Mar 28, 2005, 04:19 PM
I discovered that, after each time it crashed, the fuscript would remain in memory.

the100thballoon
Mar 28, 2005, 05:22 PM
would someone please make a "globe" from my minimap? [tries to look cute] :mischief:

handy900
Apr 04, 2005, 09:01 AM
:bounce: Way too cool. :thumbsup: Can you post some step by step instructions for those of us that are PC challenged?

MSTK
Jul 14, 2005, 05:49 PM
This is actually what I did in Out of the Rubble about half a year ago.

http://forums.civfanatics.com/showthread.php?t=93198