Creating Realistic Gas Giant Textures

Tips for creating and manipulating planet textures for Celestia.
Avatar
Topic author
fyr02
Posts: 249
Joined: 19.04.2019
Age: 19
With us: 5 years 7 months
Location: San Diego, California (United States)

Creating Realistic Gas Giant Textures

Post #1by fyr02 » 06.07.2019, 00:10

Hi everyone!
Recently I decided to make a texture for Pollux b (Thestias) and I decided to make it into a tutorial on how to make Gas Giants!
Here we go or something

STEP 1: DOWNLOAD GIMP
We're going to be using a program called GIMP, which is essentially a free version of Photoshop. If you have Photoshop, you can use that as well, but keep in mind that the interface and tools may be different between the two.
Go to https://www.gimp.org/ and download/install GIMP 2.10.
When you open GIMP it should look a little bit like this:
Screenshot (3).png


STEP TWO: BASIC BANDS
Open up GIMP and go to the menu at the top. Go to File > New and create a new document. Make the size 4096 x 2048.
Go to Advanced Options and go down to "Fill With". Change the color to "Transparency". Also change the image/color mode to RGB, if it isn't already set to that. It should look like this:
Screenshot (4).png


Once you've opened your new document, you should pick your gas giant's overall color. To do this go to the two overlapping rectangles on the left side menu. They should be black and white by default. Click on the rectangle in front and change the color to your desired color.

You may have noticed that nothing has happened to your document. To actually fill the document with your color, Change your tool to the Fill tool (The one that looks like a paint bucket) and click on the canvas to fill with your color. I have picked a teal blue as my color.
Screenshot (5).png


Change your brush by changing your tool to the brush tool and clicking on the white square containing the current brush on the left side menu. Ignore what happens on the right side for now. Make sure your Force and Hardness are both at 100 percent. Change your brush to the "Grass" brush, as seen here.
Screenshot (6).png


Added after 12 minutes 14 seconds:
Change your brush color so that it is slightly darker than your main color. Find a good place to place your "band". Go to the left side of where you want your band to be and left-click. Now you've set the starting point of your line/band and made a dot on the left side, like this (circled in red)
Screenshot (7)_LI.jpg


No go the the right side, but this time, hold the shift key on your keyboard. You should now see a line in between your starting point on the left and where your mouse is. Go to the right side of the canvas and make sure your line is straight. Then click to create your band. You should now have a band of color running along your canvas.
Screenshot (8).png


Go ahead an make a few more bands, adjusting the lightness however you want. However, I wouldn't recommend changing the hue of your bands. After you are done, it should look a little something like this. Make sure you use the grass brush.
Screenshot (9).png


STEP 3: MAKE IT LOOK LESS LIKE A CRAYON DRAWING
As I just said above, this looks like a 4 year old's crayon drawing. To make it look smoother, go to the top menu and go to Filters > Blue >
Linear Motion Blur. Now, set the length value to around 95, but you can adjust it if you want your bands looking rougher or smoother. To apply click the OK button. It should look a little something like this.
Screenshot (10).png


Added after 20 minutes 38 seconds:
However, doing this means we've created a problem. The left and right edges of the canvas are now a little bit transparent! This is a big problem but it is relatively easy to fix. To fix this, use the Select Tool and select a center portion of your canvas like this:
Screenshot (11).png


Then CTRL-C (Copy) the selection.
Now, go to Layer > Transform > Offset and in the following menu, click the "width/2" button. Then click the Offset button to apply. The transparent regions should now be in the middle.

Create a new layer on top of your background (do this by going to the right side menu and right-click in layers box, and click "New Layer"), and then paste in your center section that you copied earlier by using CTRL-V (Paste) on your top layer (make sure the top layer is selected). It should cover the transparent section quite neatly. To merge the pasted selection onto the top layer, simply use the Select Tool and left-click outside the canvas.

You should now have two layers:
The bottom layer, with your bands and texture,
and your top layer, that has the pasted in section.
If you still have "Floating Selection" on top of your two layers, use the Select Tool and click outside the canvas.

Click on the bottom layer's eyeball button on the right side menu. This will hide the bottom layer, leaving you only with the top layer, which contains the pasted section that hides the transparent areas on the first layer. It should look like this:
Screenshot (13).png


Take your brush, and change the brush back to the default one (one of the blurred circles). Adjust the size to a size you are comfortable with and set the Hardness to 0.
Now erase the left and right edges of the pasted section, leaving you with a blurred edge. This helps to smooth out the transition in betweem the pasted section and the bottom layer. You can do this by using the brush technique that we used to create the bands on our texture, or you can do it by hand. In the end it should look like this:
Screenshot (14).png


Now re-enable the bottom layer by clicking the bottom layer's eyeball button on the right side menu. Now right-click on the top layer and click "Merge Down". Now we've fixed the middle transparent sections.

Added after 22 minutes 39 seconds:
STEP 4: MAKING IT LOOK MORE REALISTIC
Now go to the top menu and go to Filters > Distort > Ripple. Set the Length to the maximum value (1000) and set the amplitude to something like 3. Change the abyss policy to "Loop" and check the box that says "Tileable". Click OK to apply.
Now we've added a little bit of wave to our texture. It should look like this:
Screenshot (15).png


Now to make it feel more realistic.
Download this zip file. It contains a modified version of Askaniy's 2013 Saturn Map. It has the bright band in the middle removed.
saturnmodified.zip
(1.42 MiB) Downloaded 325 times


Now unzip it and open the image inside with GIMP. Don't worry about saving your Gas Giant Map. It will always be accessible in the top left corner. The image should look like a gray Saturn. Go to Image > Mode and make sure the mode is RGB.

Now go to the top menu and go to Colors > Color Temperature. Set Intended Temperature all the way to the max value. This helps get rid of unwanted color artifacts that may arise in the next step. It should look like this:
Screenshot (18).png


Now go to Colors > Hue-Chroma. Adjust the three sliders until the color resembles that of your gas giant map. Chroma controls saturation (kinda), Lightness controls lightness, and Hue controls Color/Hue. It should look like this, but insted of blue, it should be the color of your gas giant.
Screenshot (19).png


Added after 9 minutes 32 seconds:
Now CTRL+A (Select All), and then CTRL+C (Copy). Now go to your gas giant map (which should be in the top left corner) and CTRL+V (paste).
Now adjust the Opacity (on the right side menu) to around 45%. However you can adjust it to how you like, as long as it is in between 35 and 55 percent. Use the Select Tool and click outside the canvas to merge the Saturn Map with the bottom layer. It should look more realistic and a little bit like this.
Screenshot (21).png


STEP 5: STORMS
Now, technically we are done and you can use it how it is, but if you want to make it more stormy, follow these instructions:
Choose the Warp Transform Tool (the one that looks like a wave). Change the brush size to about 300. Now start dragging your cursor over the parts that you want to create turbulence in. The brush will distort and "drag" parts of the image toward the cursor. You can experiment with different things. You can also choose a spot and drag the mouse in circles to create GRS type storms. To apply, simply choose the Select Tool. My end result looked like this:
Screenshot (22).png


STEP 6: EXPORTING
Your texture is done! To export, go to File > Export As, and then choose your filename and export destination. Click Export to finish.

If you have any questions about this tutorial, feel free to ask them in this thread.
I hope this helped you and I hope you have a happy texture making experience!
Image

john71
Posts: 1009
Joined: 10.08.2016
With us: 8 years 3 months

Post #2by john71 » 06.07.2019, 10:55

Nice! :clap:

Avatar
N3cronium
Posts: 19
Joined: 03.11.2018
With us: 6 years

Post #3by N3cronium » 11.03.2020, 03:32

This is really helpful!

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Post #4by John Van Vliet » 13.03.2020, 04:32

there is a really cool bit of code called " GaseousGiganticus.c "
it is on github , it is what i use

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #5by trappistplanets » 17.06.2020, 11:55

John Van Vliet wrote:there is a really cool bit of code called " GaseousGiganticus.c "

how do i use it though i tried using it by fallowing the instructions and i cot confused
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
Tegmine
Posts: 200
Joined: 20.03.2011
With us: 13 years 8 months

Post #6by Tegmine » 17.06.2020, 12:32

It's not monstrously hard. Helps if you're a Linux user, tho. I am by no means a wizard of command-line programs, but it isn't too hard to figure out. Look it up on your favorite search engine.

-M-

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #7by trappistplanets » 17.06.2020, 12:58

Tegmine wrote:It's not monstrously hard. Helps if you're a Linux user, tho. I am by no means a wizard of command-line programs, but it isn't too hard to figure out. Look it up on your favorite search engine.

I use windows 7 not Linux
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
Tegmine
Posts: 200
Joined: 20.03.2011
With us: 13 years 8 months

Post #8by Tegmine » 17.06.2020, 15:19

Probably can do it thru Cygwin...pm Selden. He probably can walk you through the process of setting it up.

-M-

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #9by selden » 18.06.2020, 21:31

It seems to build and run OK under Cygwin under Windows 10, but runs absurdly slowly. By default it builds only a single-threaded version. I'm not going to try to build a multi-threaded version, though. It'll probably be another half-hour before I see any results. I plan to upload a zip containing all the necessary files for it to run stand-alone under Windows 10. I dunno if it'll run under Win7.

Note that upgrading from 7 to 10 is still free, although there are enough bugs in v2004 that I suggest waiting a couple of months so the worst ones have been patched. (None of those bugs cause problems for my computers, though.)

Added after 1 hour 48 minutes:
Here's a zip of gaseous-gigantus built under cygwin. Before trying to run gaseious0gigantus.exe, you must cd to the directory created when you unzip this archive. It needs various DLLs which are included with the .exe. Do NOT copy those DLLs to other folders. Doing so WILL trash your computer.

As implied above, I did just a simple test by typing just the name of the program, which uses just its defaults. It read gasgiant-input.png (which I had created manually) and it created gasgiant-0.png through gasgiant-5.png. I wrote a script (cubemap.sh) which merges those six images into a single cubic surface map (cube.png).

I'll leave it to the user to read the included documentation.

gaseous-giganticus-cygwin.zip
(25.67 MiB) Downloaded 306 times

(26 MB, expands to 32 MB)
Selden

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Post #10by John Van Vliet » 19.06.2020, 02:14

i would help but my help is not wanted

Avatar
Tegmine
Posts: 200
Joined: 20.03.2011
With us: 13 years 8 months

Post #11by Tegmine » 19.06.2020, 21:07

I wouldn't say that John. Your help has proved most valuable to me.

(Now, if I could just figure out how to do a texture map in Blender...looks like a lot of fun! Hint hint.)

-M-

PS: Sorry for co-hijacking the thread.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Post #12by John Van Vliet » 21.06.2020, 02:30

For GC i would use MinGW on Windows
MinGW is multy threaded
http://www.mingw.org/

install mingw to ( this is from memory )
C://GunWin/Msys
C://GunWin/MinGW

add C://GunWin/Msys/bin and C://GunWin/MinGW/bin to your windows SYSTEM PATH !!!!
and C://GunWin/MinGW/library to your windows LIBRARY $PATH
add C://GunWin/MinGW/include to your SYSTEM $INCLUDE PATH

run any C++ "hello world " program and build it
https://www.geeksforgeeks.org/writing-first-c-program-hello-world-example/

if it builds and runs then GC should build

iu am looking at the source right now and the headers

Code: Select all

*/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <errno.h>
#include <limits.h>
#include <pthread.h>
#include <getopt.h>
#include <locale.h>
#include <sys/time.h>

#include "mtwist.h"
#include "mathutils.h"
#include "quat.h"
#include "open-simplex-noise.h"
#include "png_utils.h"
#include "pthread_util.h"


really only thingyou need to install is libpng on mingw
and maybe installing "open-simplex-noise.h" in mingw
---- PS i have PM's disabled so post here ------


Return to “Textures”