If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

about streets, perhaps it would be easier to compute sidewalks than roads ?
I mixed your popmapstreet with a brick texture (from the plugin textures) to make town with NY-like block streets. then with only the brick tex, and everything very low, equal, and large in your script one could almost obtain the pavement. irregular sidewalks could be obtained this way ?

I'm glad the script is useful to many people, although it is true it still needs a lot of improvement.littleneo, very good idea! I did not actually think about it myself. So at least you found a way to have parallel streets (NY-style as you said) using the current implementation of the script. Very nice render also. With a little bit of manual work, you could have very nice looking building blocks....

Meta-Androcto, thanks for the link to the script. It looks very interesting, I'll have a look when I've got time. Looks to me it's using L-systems.

piiichan, that is some truly amazing work, and most useful, too! Just to add more to your idea, would it be possible to generate paths that fit in the street structure, so vehicle particles can be flown quick & easy for traffic? Heh, just dreamin' dude. Love the thread starter pic & the detail in the buildings.

a must-try ! that's really really good ! just scale down a bit the default if one cpu@2Gig..

I tried some modifications and obtained sidewalks, but the code is not efficient, too much faces. it should be generated through a more contrasted elevation map (threshold ? declined from the first and consider proximity of buildings, to make blocks. for the moment it's either empty and huge concrete places or lot tiny skycrapers isolated with a sidewalk around it.. but in some area this work perfectly.

a colour code for different elements ? streets=red, so easier to cut in blocks
another map for ground relief, for pos[2] ?

btw for materials there's a way, meanwhile, to separate roof and walls (N, S, E, W)
.generate a town
.orthographic front view, select a face in edit, SHIFT-G -> normal
this will select all the faces from one side
. assign to material or vertex group
. same thing for top and side L/R views
after one can generate a clean (giant) uv map, bake shadows etc...
hope this can help.

I'm really impatient to test the next update.
completely addicted to the work you've done ! I'm learning a lot through it.

So at least you found a way to have parallel streets

in fact one can do everything it's a texture mix. I choose a brick texture, but I could have made a png or tge (alpha layer) with black curved lines.
it's only a mix of your texture with another one in the slot beyond. so one could have a red lines layer, a yellow plot layer, a green layer... up to the user to mix them.

Tried it, love it

Now that I've had a chance to play around with the script... wow. Here's a couple of cities, set up from various procedural options. It was nice to see it works on UV images too!

I wonder if it might be possible for the buildings to be made of anything, say, whatever's in layer 2 for example...? I haven't figured out how to make those cool buildings pictured above yet though, if it's in this version. Nice, nice work Piichan, and thanks for the useful tips littleneo.

buildings...

so could you tell the engine to use specific building meshes that had been created before hand? Cause over at daz3d.com if you become a member (membership is free) not only are you able to get there weekly freebie but they have these two free sets of 10 city blocks in .OBJ or .LWO

All structures are individually surfaced for a higher level of customization

24 Seamless Tiling Texture Images

just thought I would let people know, they don't tell you straight up that those two free sets are there, I stumbled across them by accident. I plan on breaking the blocks up into the individual buildings/meshes for myself.

I hope you don't mind, but I was rewriting your code just to get a better understanding of it, and I thought it might be a good idea to make a gui option to create the detailed buildings. Your code does it all. I just made the option available if anyone wants this option from the GUI. Anyway, here's the link:http://www.mediafire.com/file/jmoeng...ipt_city.blend
Forgive the hackish code. I'm the only one that prefers a lot of short variable names, etc.

Very nice ! It would be really great if you could assign diffrent materials to the 4 faces and the top of the buildings and even better if you could prepare the UV maps for each face, let's say 20 materials (or based on an entered value) and the same for UV maps, all randomly assigned.

it's a mod about streets and sidewalks. it's flexible I think. you can draw a street map then add it to the texture layer (see .blend). image dimension should be squared and = to the pop map size parameter for best result. you can activate the 128x128 image (deactivate the 64x64 one) then change the pop map size to 128.
this can also be a procedural texture of course.

for a better comprehension of all these new buttons, see the buttons tips and try the top view.

look piichan infos page 1 for buildings parameters.
for new buttons the best thing is to choose top view in transparent mode to see the differences. there's also tips on each button. but here's some infos :

each building height is relative to each pixel intensity of your texture. the lighter, the higher.
if the pixel intensity is less than the color threshold parameter :
. no building will be build.
. the pixel will be considered as a street if the street button is enabled.

streets button says to the script to control buildings dimension/location near streets to avoid that a building cut a street. for the moment there's no streets mesh, just an empty space.

sidewalks build sidewalks :-) can be activated without streets. sw dimensions are size multiplied by a number between 1 and factor

sidewalk methods : for each pixel, several buildings can exist (building/pixel para.)

building/block slider ask if sidewalks should be rather around each building or rather around each block of buildings. example : 70 means there's a 70% probabilty than the sw will be build around blocks (so 30% around each building)

normal/align slider ask if the sw width are calculated rather from the building location and normal size/factor parameters (normal), or rather aligned to the pixel grid or the streets (it's a little bit buggy yet when streets are disabled)

21 dec - works without python installed. corrected/added a few things. short doc (here).added 512x512 streets texture
18 dec - uploaded first version

18dec :
Piichan sorry I didn't manage to contact you about that first ! but I'm really fond of the way you've designed it..and as I had some spare time this week.. I could resist to think about that ! I hope you won't mind about this mod and that it stays in the way you see the dev of that script. everything works the same way than in v0.1 when no mod options checked, and it's build on the another_noob version.
I would be really interested in developping that script this year (materials, detailled building locations/distribution, reliefs....)

have fun !

Last edited by littleneo; 18-Jan-09 at 10:43.
Reason: added some doc + new version