Results 1 to 10 of 109

Thread: Automatic Forester

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Guild Apprentice
    Join Date
    May 2009
    Location
    Norway
    Posts
    49

    Default

    Mapping is funnier than writing? Heh.

    I'll take a look on that idea. I might even rewrite the whole program now that I know it works.

    If you are using netbeans, the Image folder must be placed in the project folder. If you are using eclipse, I don't know. Probably the same place.

  2. #2
    Guild Expert Ramah's Avatar
    Join Date
    Mar 2009
    Location
    Nottinghamshire
    Posts
    1,414
    Blog Entries
    4

    Post

    Ok, well I'll wait and see what you come up with then. No point in me trying to get my head around your code if you're just gonna go and rewrite it all on me.

    I just downloaded Netbeans after you said that and I managed to get it to work in that. It was a different editor I was using before.
    Well... I say I've got it to work but unless you included a different build in your source code to the one you used in your application then they are behaving very differently.
    The amount of trees showing up on the screen is far fewer when run through the compiler, and they don't scale up to such a massive size.
    Does the source code include the changes you made whilst trying to get the density to work?
    Royal: I'm very sorry for your loss, your mother was a terribly attractive woman.


    My Cartographer's Guild maps: Finished Maps


    More maps viewable at my DeviantArt page: Ramah-Palmer DeviantArt

  3. #3
    Guild Expert Ramah's Avatar
    Join Date
    Mar 2009
    Location
    Nottinghamshire
    Posts
    1,414
    Blog Entries
    4

    Post

    I had a play with the source code this evening and this is what I came up with...

    The positions of the trees are more along the lines of a maximum density forest how I would do it. I gave each tree a random little jiggle so it wasn't too uniform but I would say it needs each tree jiggle to effect its neighbours too, so it will look less like a pattern.

    Click image for larger version. 

Name:	treetest2.png 
Views:	163 
Size:	359.2 KB 
ID:	20191

    One thing I can't seem to fix are those holes in the forest. I thought at first you had it randomly choosing whether to place a tree or not but upon investigation I believe its because the Tree0 image doesn't seem to work. I thought it may be because the count started at 1 but all my experiments to fix it failed.

    I'll try rattling a few new brushes off for it tomorrow. To me it looks like they would be better with a hard edge so the program has no problem masking them off.
    Royal: I'm very sorry for your loss, your mother was a terribly attractive woman.


    My Cartographer's Guild maps: Finished Maps


    More maps viewable at my DeviantArt page: Ramah-Palmer DeviantArt

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

    Post

    I think the holes look nice...ya gotta have some open spaces so I'd have a white blank picture for my spacer. If you could set how many holes per hundred that you want then you could get rid of the holes or have a whole bunch of holes.
    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

  5. #5
    Guild Expert Ramah's Avatar
    Join Date
    Mar 2009
    Location
    Nottinghamshire
    Posts
    1,414
    Blog Entries
    4

    Post

    I agree, Ascension. The holes do add to it and if they weren't there I would certainly want a random check to put a few holes like that in it. It's just bugging me as to why they are there. It's nice to understand something.
    Anyway, until Fluesopp checks this out then I guess I won't know. Unless someone else with more Java knowledge than me checks it out.

    Anyway... I just had another quick play with it before bed as I had a little brainwave on how to get rid of the obvious pattern without too much hassle.
    I included a 4% random check on every tree placed along the x-axis and if it fired then that tree and all other after it move along an extra grid space.
    I think this looks a lot nicer.

    Click image for larger version. 

Name:	treetest3.png 
Views:	120 
Size:	377.2 KB 
ID:	20196

    This, to me, with a change of the brushes, would already work amazingly well and will get some use. I'm really looking forward to seeing what else Fluesopp can do with it.
    Royal: I'm very sorry for your loss, your mother was a terribly attractive woman.


    My Cartographer's Guild maps: Finished Maps


    More maps viewable at my DeviantArt page: Ramah-Palmer DeviantArt

Posting Permissions

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