Page 2 of 5 FirstFirst 12345 LastLast
Results 11 to 20 of 58

Thread: [Award Winner] Thatching for dummies...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,201
    Blog Entries
    8

    Post

    This is PSP adjust color -> curves dialog.

    If you want to emulate that curve then just use a windowed triangle and forget trig. If you have to use trig then a windowed cos*cos function is approximate. Anything like this in Gimp ?

    edit -- http://docs.gimp.org/en/gimp-tool-curves.html this is suggesting you have the same dialog. Can you program it from the scripting language ?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	tmp.png 
Views:	145 
Size:	62.8 KB 
ID:	8306   Click image for larger version. 

Name:	tmp2.png 
Views:	304 
Size:	161.2 KB 
ID:	8307  
    Last edited by Redrobes; 12-10-2008 at 08:24 AM.

  2. #2

    Post

    Thanks for the extra description on the curves dialog. That seems to work now that I figured it out.

    I manually ran through the steps using the results of each multiply as a layer mask for the appropriately rotated thatch pattern, and put a random oriented thatch (made by cloud masking horizontal, vertical and the two 45 degree angles) at the bottom of the stack:
    Click image for larger version. 

Name:	thatchtest1.png 
Views:	661 
Size:	751.8 KB 
ID:	8365

    Masked out the waterline, and multiplied with the "z" (blue) layer from the normal map (i.e. "directionless"):
    Click image for larger version. 

Name:	thatchtest1_z.png 
Views:	258 
Size:	524.4 KB 
ID:	8366

    And finally with a lighting effect bump map applied using the original heightfield:
    Click image for larger version. 

Name:	thatchtest1_z_bump.png 
Views:	165 
Size:	523.0 KB 
ID:	8367

    Now the real question is it worth scripting, or just writing up as a tutorial

    -Rob A>

  3. #3
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,201
    Blog Entries
    8

    Post

    What would be cool would be if you can make a B&W mask for a city and then it blurs it a bit to round off the corners and assumes thats the height map. Then thatch it. Also at the same time use the mask as a source to get a shadow map for all of the houses too. So then you just block in all the houses and it generates you a village with shadow. Right now I create those images as tokens and put them into a map so the shadows are all wrong as you rotate them. I dont know whether the village thatching would have the res to do it justice compared to a high res token per house. Its only a small step then to get something that you define the outline of a village and get it to put some paths in, fill in the areas inside the paths with a collection of random squares or circles and then thatch and shade it.

    There was a discussion with Torstan I think about trying to get Gimp to make up random city textures but I think thats pretty hard stuff. Whats really needed is an app or out of script which has a collection of house shapes and picks random ones and randomly rotates them to try and fit it into as yet unused ground. So it wont put a house over a path or over an existing placed house area. If you could get that bit then we have techniques to fill in from there to fully rendered villages. All randomly created.

    One of the things I was trying way back in the pirate lighthouse challenge of Dec07 was to try and make height map tokens and spray them down - which did work really well. If you could 'spray' these house shaped down intelligently and keep the height map info in the bitmap then you could then thatch shade the result.

    Theres just not enough time in the world to try out all the ideas I would like to see done.

  4. #4

    Post

    Redrobe's post in the other thread on city tiles reminded me to get back to this....

    I am getting quite close to a finished script.

    Here are some sample images using his funky face heightfield...

    Straw:
    Click image for larger version. 

Name:	thatch1.png 
Views:	299 
Size:	494.2 KB 
ID:	9940

    Shingles:
    Click image for larger version. 

Name:	thatch2.png 
Views:	97 
Size:	442.8 KB 
ID:	9941

    Wood:
    Click image for larger version. 

Name:	thatch3.png 
Views:	102 
Size:	383.5 KB 
ID:	9942

    Bark (90 degrees off):
    Click image for larger version. 

Name:	thatch4.png 
Views:	106 
Size:	496.2 KB 
ID:	9943

    -Rob A>

  5. #5

  6. #6
    Community Leader Facebook Connected Steel General's Avatar
    Join Date
    Jun 2008
    Location
    Ft. Wayne, IN
    Posts
    9,530

    Default

    Probelms or not...this is still pretty neat stuff.
    My Finished Maps | My Challenge Maps | Still poking around occasionally...

    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.



  7. #7
    Administrator Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    7,201
    Blog Entries
    8

    Post

    Yeah thats working real well. The blue half round tiles look good. All we need to do now is find a way to put down those base height maps into regions between all the roads and we could auto gen a city. I'm gonna play with that side of things shortly - when I get time. Post any ideas you have for that tho.

  8. #8
    Guild Artisan su_liam's Avatar
    Join Date
    Aug 2007
    Location
    Port Alberta, Regina(IRL: Eugene, OR)
    Posts
    798

    Default

    I think the thatch and the shingles rock. The wood and the blue things still seem... odd. Still, I am in serious want of your script just for the thatch and the shingles! Good work, technical problems or no.

  9. #9

    Post

    Quote Originally Posted by su_liam View Post
    I think the thatch and the shingles rock. The wood and the blue things still seem... odd. Still, I am in serious want of your script just for the thatch and the shingles! Good work, technical problems or no.
    They are just seamless patterns... The script lets you apply any pattern to a heightfield.

    Getting real close now....

    Click image for larger version. 

Name:	next1.png 
Views:	195 
Size:	595.9 KB 
ID:	10042

    Click image for larger version. 

Name:	next2.png 
Views:	149 
Size:	548.4 KB 
ID:	10043

    -Rob A>

  10. #10

Page 2 of 5 FirstFirst 12345 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
  •