Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Cratered Moon WIP

  1. #1

    Wip Cratered Moon WIP

    One of my (too many) projects is to make a map of a semi-terraformed moon for a friend's science-fiction story. A moon, not the Moon. The project requires craters, and lots of them. Naively, I could just draw a bunch of circles. But I want to draw this in a square grid projection (Platte Carree) because that's easiest to convert into any projection I want later. The more poleward you go, the more distorted the circle becomes. I played around with manual methods, but it was going to take forever.

    In the end, I wrote a program which will generate any number of craters across a wide range of sizes and do all the math to fit them into the square projection. I found a Gimp utility that will import paths from a CSV file, so my program generates a matching CSV. When imported, you have a whole lot of new paths - one for each new crater, except for those that cross the 180 degree boundary. Those get two new paths.

    I took it for a trial run today, and here's what I got:Click image for larger version. 

Name:	PM-90.png 
Views:	65 
Size:	273.7 KB 
ID:	70190Click image for larger version. 

Name:	PenalMoon.png 
Views:	57 
Size:	2.17 MB 
ID:	70189Click image for larger version. 

Name:	PM+90.png 
Views:	63 
Size:	268.3 KB 
ID:	70191

    I only ran it with 100 craters, and my rendering skills need work, but I'm reasonably pleased with it. The two polar views show that the craters really are round, in spite of how squished they appear in the rectangular view.

    Would there be any interest here for this program, once I get the bugs out? It's a command-line program that runs under Windoze, and the CSV only works for Gimp. If there's a similar CSV import facility for other graphics programs, I could easily add a different output as an option.

    Thanks for any thoughts, on either the map or the program.

    --Hugh

  2. #2
    Community Leader Facebook Connected Ascension's Avatar
    Join Date
    Jun 2008
    Location
    St. Charles, Missouri, United States
    Posts
    8,392

    Default

    I like it, has some promise.
    If the radiance of a thousand suns was to burst at once into the sky, that would be like the splendor of the Mighty One...I am become Death, the Shatterer of worlds.
    -J. Robert Oppenheimer (father of the atom bomb) alluding to The Bhagavad Gita (Chapter 11, Verse 32)


    My Maps ~ My Brushes ~ My Tutorials ~ My Challenge Maps

  3. #3
    Guild Expert johnvanvliet's Avatar
    Join Date
    Jul 2012
    Location
    N 42.39 W 83.44
    Posts
    1,091
    Blog Entries
    4

    Default

    this has been one of the stumbling blocks
    this is what i do

    for a LARGE moon like ours , it is a fractal nature
    BIG ones with smaller ones on top all the way down to the very microscopic

    for that i would use masks
    a few big crater masks
    and many many small crater masks


    for that i use a java program ( an old one called PlenetGenisis1.9 )
    it is node based

    mix a "biased woraly " with a "perlin noise " and add a "craterize" node to it
    -- 8bit jpg of the 32 bit floating point


    this can then in photoshop or Cinepaint be converted into a "Multiplication mask"
    -- normalized to 0 to 1 ! ---


    using many of these one on top of the other you can build up a very cratered moon

    you can end up with a heightmap
    something like this


    this is ONLY ONE mask many would be wanted
    Last edited by johnvanvliet; 01-17-2015 at 01:45 PM.
    --- 90 seconds to Midnight ---
    --------

    --- Penguin power!!! ---


  4. #4

    Default

    That looks a lot easier than the method I was using, and I like the results. I'll have to see if I can find that program.

  5. #5

    Default

    I found planetGenesis, but it's far from obvious how to use it. When I open it I get a screen like this:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	72 
Size:	65.3 KB 
ID:	70211

    I can drag the circle in the middle around, but beyond that I can't figure out what I can do with it. The help file is far from helpful, and the on-line instructions seem to be about installation. Clearly, I'm missing something.

    Thanks,
    Hugh

  6. #6

    Default

    Never mind. I found other instructions that tell me how to access the assorted functions.

    Thanks.

  7. #7
    Guild Expert johnvanvliet's Avatar
    Join Date
    Jul 2012
    Location
    N 42.39 W 83.44
    Posts
    1,091
    Blog Entries
    4

    Default

    in that example i used a FMB noise from "Wilbur"
    outputed a 32 bit BT ( converted to tiff )
    and the mask ( normalized to 0 to 1 )

    notice there is a bit of a ring around the dark circles ( the rim )
    the example above was a real QUICK one there is a bit of a dark ring that would need to be removed

    in the "layers" of Cinepaint ( a old editor based on Gimp 1 ) and multiplied the layers

    not sure if photoshop imports 32 bit floating point images ( i do not use it )

    if you want here are two .pG files ( the saved settings from planet genesis )
    but the output still needs work to be used as a mask
    "test.zip" on my G-drive
    https://drive.google.com/file/d/0B6Z...ew?usp=sharing

    one is bigger craters the other is smaller ones
    Last edited by johnvanvliet; 01-17-2015 at 01:44 PM.
    --- 90 seconds to Midnight ---
    --------

    --- Penguin power!!! ---


  8. #8

    Default

    I did some playing around with planetGenesis until i got some stuff that looked reasonable. I created a bunch of maps, based as you suggested on 'biased worley added to perlin 3D noise. I varied the size of the cells in the worley, and once I found a perlin noise setting I liked, I stuck with it. I randomized both the worley and the noise between each map generation.

    When I had twenty or so of them I imported them all as layers into Gimp. Gimp is eight bit, so I had to do some fiddling to figure out how to combine the layers so it wouldn't all go to either white or black. In the end, I set the opacity of each to ten to fifteen percent, and added them all on top of a black layer. I then stuck it into the same renderer that I used for my initial stuff at the top of this post. Apples to apples, yes?

    This is what I got:
    Click image for larger version. 

Name:	GenTest.png 
Views:	58 
Size:	598.8 KB 
ID:	70212

    And here's a polar view:
    Click image for larger version. 

Name:	GenTestPolar.png 
Views:	59 
Size:	296.4 KB 
ID:	70213

    If I spend more time experimenting, I'll come up with better results.

    It seems to me that this is a great way to generate the background crater-ness of a small world. When I look at photos of small worlds in our Solar System, I see that many have large craters as dominant features. I don't see how I'd generate these features using planetGenesis, but maybe if I experiment more I'll figure it out.

    Also, when I look at the polar view, I see some definite latitude-based biases (they look like concentric rings in the polar view). This is possibly an artefact of how I'm using planetGenesis. At this point I don't have enough experience and data to make that judgment. It's not a serious flaw in any case.

    I'm thinking now that I'll use planetGenesis to generate the background and my crater generator program to make some larger craters to plop on top of it to get the bigger features. That's assuming I can get my crater generator to do a few more tricks.

    Thanks for pointing out planetGenesis. It's a great tool. Now I just need to learn how to use it...

    --Hugh

  9. #9

    Default

    Oh, and for completeness, here is the sample you provided, put into the same renderer. Yours is much better:
    Click image for larger version. 

Name:	AltCrateredMoon.png 
Views:	61 
Size:	327.1 KB 
ID:	70214

    And the polar view:
    Click image for larger version. 

Name:	AltCrateredMoonPolar.png 
Views:	54 
Size:	159.1 KB 
ID:	70215

    Thanks again for pointing out this tool! It's obvious from comparing my initial try with yours I have much to learn.

    --Hugh

  10. #10
    Guild Expert johnvanvliet's Avatar
    Join Date
    Jul 2012
    Location
    N 42.39 W 83.44
    Posts
    1,091
    Blog Entries
    4

    Default

    on HeightMaps i use 32 bit floating point images
    gimp is only 8 bit data for now ( gimp3.0 should handle 16 and 32 bit images )

    that way if i make a normal map for 3d rendering or a rendered "shaded" map it is not "stepped" / terraced

    there is also something called practice

    i have been doing this for a while and trying to get something that dose look like REAL data from real spacecraft


    keep at it and things will improve
    --- 90 seconds to Midnight ---
    --------

    --- Penguin power!!! ---


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •