Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32

Thread: Need some programming help

  1. #21
    Guild Adept Alfar's Avatar
    Join Date
    May 2009
    Location
    Denmark
    Posts
    276

    Default

    I'll be checking that out for sure. For the time being, I'm mostly concerned with drawing buildings based on a human-created layout, currently the streets I draw.

    I just figured it was a way to pass a bit of time with Context Free, feeling quite done with that now

  2. #22

    Post

    I've been playing around with Alfar's excellent context free building generator and it's exactly what I was looking for.

    I've been trying to resist until my new computer arrives, but I gave in and had a play with it in photoshop.

    Twinned with the lazy man's city style, or even just using the shapes by themselves with layerstyles, you should be able to put together a good looking town, villiage or city pretty quickly. As an extra bonus if you want more complex structure you can just overlap the buildings and they look like a single building.

    Different layerstyles = different building materials / effects.

    You just plonk the entire image created by context free into your map and then just drag and drop the buildings where you want them - easy (and great for a lazy mapper like me) each one looks individual. And if you want a slightly different style of building, you just adjust the code in context free.

    Dragging and dropping is a bit fiddly in photoshop, so I might actually do that bit in vector and then import the result into photoshop - might be faster.

    Can't wait to use this in anger when the new puter comes and I work towards completing Duerma's commission.

    THANK YOU ALFAR!
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	test buildings.jpg 
Views:	189 
Size:	532.2 KB 
ID:	15181  

  3. #23
    Community Leader Gandwarf's Avatar
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    3,012

    Default

    That looks interesting Ravells. Some of the larger houses have a weird shape though.
    Check out my City Designer 3 tutorials. See my fantasy (city) maps in this thread.

    Gandwarf has fallen into shadow...

  4. #24

    Default

    Yeah it definitely is for smaller buildings seen at a distance with lots of them. It wouldn't work if you wanted to do a large scale map of a villiage. It is possible to just draw the buildings within photoshop itself using squares and circles and let the layerstyles handle the bevelling and whatnot but I like having it done in advance and being able to pick and choose.

  5. #25

    Post

    I hope you don't mind. I merged your cfdg file with the "bad urban planning" one (can't remember if it's part of Context Free or a freebie I downloaded for it somewhere) and came up with this...

    Code:
    startshape RURALTOWN
    
    rule RURALTOWN {
      STREET { }
      STREET { rotate 89 }
      STREET { rotate 180 }
    }
    
    rule STREET 2505  {
      CIRCLE{ }
      STREET { rotate 0.05 size 0.9995 y 0.1 }
    }
    
    
    rule STREET 2500  {
      CIRCLE{ }
      STREET { rotate -0.05 y 0.1 }
    }
    
    rule STREET 8 {
      CIRCLE{ }
      STREET { rotate -0.05 size 0.9995 y 0.1 }
      Building { x 5}
    }
    
    rule STREET 6 {
     CIRCLE{ }
      STREET { rotate -0.05 y 0.1 }
      Building { x -5 rotate 180 }
    }
    
    rule STREET 1  {
      CIRCLE{ }
      STREET { rotate 0.05 y 0.1 }
      STREET { rotate 90.05 size 0.95 y 0.1 }
      STREET { rotate -89 y 0.1 size 1.1 }
        Building { x -5 rotate 180 }
    }
    
    rule STREET 1  {
      CIRCLE{ }
      STREET { rotate 0.05 y 0.1 }
      STREET { rotate 90.05 size 0.98 y 0.1 }
      Building { x 334 rotate 180 }
    }
    
    rule STREET 2  {
      CIRCLE{ }
      STREET { rotate 0.05 y 0.1 }
      STREET { rotate -90.05 size 0.8 y 0.1 }
    
    }
    
    rule STREET 2 {
       CIRCLE { }
    }
    
    rule BuildingPart {
    	SQUARE { s 2 4 }
    }
    
    rule BuildingPart {
    	SQUARE { s 3 4 }
    }
    
    rule BuildingPart 0.1 {
    	SQUARE { s 3 4 }
    	CIRCLE { y 2 s 3 3 }
    }
    
    rule BuildingPart 0.1 {
    	SQUARE { s 2 4 }
    	CIRCLE { y 2 s 2 2 }
    }
    
    rule ShortBuildingPart {
    	SQUARE { s 2 3 }
    }
    
    rule ShortBuildingPart {
    	SQUARE { s 3 3 }
    }
    
    rule ShortBuildingPart 0.1 {
    	SQUARE { s 3 3 }
    	CIRCLE { y 2 s 3 3 }
    }
    
    rule ShortBuildingPart 0.1 {
    	SQUARE { s 2 3 }
    	CIRCLE { y 2 s 2 2 }
    }
    
    rule ShortBuildingPart 0.1 {
    	SQUARE { s 2 3 }
    	CIRCLE { y 1.5 s 2 2 }
    }
    
    rule BuildingPart {
    	ShortBuildingPart { y -0.5 }
    }
    
    rule BuildingPart {
    }
    
    
    rule Building {
    	SQUARE { s 2 4 }
    	BuildingPart { x -1 y -2 r 90 }
    	BuildingPart { x -1 y 2 r 90 }
    }
    
    rule Building {
    	SQUARE { s 4 4 }
    	BuildingPart {  x -2 r 90 }
    	BuildingPart {  x 2 r 90 }
    }
    
    
    rule Building {
    	SQUARE { s 3 4 }
    	BuildingPart { x -0.5 y -2 r 90 }
    	BuildingPart { x -0.5 y 2 r 90 }
    }
    
    rule Building {
    	CIRCLE { s 4 4 }
    	BuildingPart {  x -2 r 90 }
    	BuildingPart {  x 2 r 90 }
    	BuildingPart {  y -2 }
    	BuildingPart {  y 2 }
    }
    
    rule Building {
    	Building { r 90 }
    }
    It's far from perfect (or even useable?), but it's been fun experimenting. I replaced the "BUILDING" rule calls with the "Building" ruile calls from the file here, and then multiplied scales by 10 in the fun builiding's code.

    Just thought I'd share the results of a few minutes play.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	bad urban planning-oy.png 
Views:	84 
Size:	46.3 KB 
ID:	15183  

  6. #26

    Default

    Interesting results! I'm sure with some work we could get Context free to deliver some even better results, even if they are just stepping stones to further work in other apps to finish them.

  7. #27

    Default

    and oops...I'd not read past page 1...the streets and town uploads are next on the list to fdiddle with!

    Thanks!

  8. #28
    Guild Adept Alfar's Avatar
    Join Date
    May 2009
    Location
    Denmark
    Posts
    276

    Default

    Not a problem. Good to see stuff I made being used for something useful for once

    guyanonymous - thanks for picking up the ball. I think I'm about done with Context Free for the time being, but it was a fun exercise. Looking forward to seeing what you can come up with.

  9. #29

    Help Dont you guys have more to share?

    Dont suppose you guys have any advice on using these Lsystems with the gimp plugin eh?
    Iwould love to start using these techniques myself, if you could share the versions of gimp that these were used with?

  10. #30
    Guild Adept Alfar's Avatar
    Join Date
    May 2009
    Location
    Denmark
    Posts
    276

    Default

    No experience with the gimp plugin. Context Free is a separate (free) piece of software that we used to do these thingies. It can output to png's, so it's pretty easy to move to gimp when you're about done with the generating bit.

Page 3 of 4 FirstFirst 1234 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
  •