City Generator -- Free Procedural City Generation

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025

Комментарии • 448

  • @gamefromscratch
    @gamefromscratch  4 года назад +103

    Link:
    gamefromscratch.com/city-generator-hands-on/

    • @holdthetruthhostage
      @holdthetruthhostage 4 года назад +5

      I really wanted you to touch up on this one, my thing is how do you export it to unity & unreal

    • @darkenergy7291
      @darkenergy7291 4 года назад +4

      well I'm no expert myself, but selecting everything and doing a smart UV project and then scaling all the faces up in the UV editor in edit mode should get all the buildings to get textured right. after that, one would need to texture the roofs, which might be easier if the top faces are selected from a top down orthographic view and assigned a different material

    • @gamefromscratch
      @gamefromscratch  4 года назад +6

      You'd import it like I did in the video, then simply export in FBX or DAE

    • @holdthetruthhostage
      @holdthetruthhostage 4 года назад +3

      Thank you and this is a hidden gem on unity I would love your opinion
      ruclips.net/video/Tl6fGhyShGI/видео.html

    • @chronosschiron
      @chronosschiron 4 года назад

      or i can get this unreal engine pack add a few more buildings and copy to a map with edges and water drop a water shader i have and done
      ruclips.net/video/7kZbf2Xa6qc/видео.html

  • @paulhoffstadt
    @paulhoffstadt 4 года назад +768

    Texturing the buildings:
    1. Use two Shaders on a material (one for the walls, the other one for the roofs)
    2. Mix them together
    3. Add a Geometry node and connect the Normal output to a Seperate XYZ node
    4. Use the Z output from the Seperate XYZ Node as mix input on your mix shader
    Now you can freely customise roofs and walls separately.
    P.S.: If you want to add a little bit of randomness in your Houses and use different Textures/Materials
    1. Go to Edit Mode and Edit Vertices
    2. ALT+A to unselect everything then go to Select -> Select Random
    3. Fiddle around with the Random Select Settings as you like
    4. Hit CTRL+L to select every linked vertex to the randomly selected ones (you now have random selected houses)
    5. Just duplicate your material, assign it to the selection and change textures/material as you like
    Thats how I would do it.
    Nice video, btw enjoyed watching ^^
    Edit: Just fixed spelling and Low/Uppercase for convenience. If anything is still wrong please tell me I could improve on my english writing :)

    • @not_herobrine3752
      @not_herobrine3752 4 года назад +16

      or just ask mr hubert to take a look

    • @lelledale3319
      @lelledale3319 4 года назад +2

      thanks!

    • @lelledale3319
      @lelledale3319 4 года назад +4

      @@not_herobrine3752 I was thinking about it

    • @paulhoffstadt
      @paulhoffstadt 4 года назад

      @@lelledale3319 no problem ^^

    • @slavkosky
      @slavkosky 4 года назад +1

      Unfortunately the models seem to come in as tri faces not quads, so select random would probably produce some odd results

  • @Riley_Christian
    @Riley_Christian 4 года назад +190

    Wish there was more height variation in the buildings, and maybe even terrain

    • @ghettomining
      @ghettomining 4 года назад +13

      maybe add a mesh object underneath each section then use a generated terrain height map as base plane then add a mesh mod to each upper layer and shrinkwrap the mesh over the base terrain for each one.
      might work

    • @bitmammothOG
      @bitmammothOG 4 года назад +4

      for terrain I believe you could do something like face snapping to the underlying terrain heights

    • @StuartOverton
      @StuartOverton 4 года назад +8

      For height variation in the buildings, you can select one roof, then select similar by normal. Hide unselected. Select a single rooftop. Turn on proportional editing, choosing random falloff, and increase proportional size until it covers the rooftops you want to change. Raise the roof on Z-axis. Set pivot center to individual origins. Select all of the roofs and scale to 0 on the Z-axis.

    • @Riley_Christian
      @Riley_Christian 4 года назад

      @@ghettomining Hmm that gives me some ideas thanks

    • @zaknelson1887
      @zaknelson1887 4 года назад +5

      Select buildings. P to select loose parts. Click your 3D cursor is on the ground. Set the origins to the 3d cursor. In the search bar enter "randomize transform" and adjust the Z(3rd) value to randomize the height. Cheers.

  • @obkf-too
    @obkf-too 4 года назад +116

    Quick tip for texturing the buildings:
    1-Press 1 on numpad.
    2-Select all side faces.
    3-Press "U" > "Project from view".
    4-Go to UV editor and align things there.
    Then do the same for the top view.
    Note that this is quick and dirty, it will work for far objects, and you need to manually add details an tweak the UVs for the close ones.

    • @Jyve
      @Jyve 4 года назад +3

      My bash.
      I've got 3 textures to use/random up a bit. (offices at night).
      Select them all buildings first, apply a decent/common texture, cube map it. Stretch it out so it's the right dimensions to fit and looks ok.
      Next
      Click one side of a building, Select, select Similar, perimeter. A few faces all over the city will suddenly select. Shift+ to select adjoining walls. Apply texture.
      Move around a bit, select the side of another building, select similar Perimeter, Shift+, apply next texture.
      Cycling between just a few textures, it's not random, but varied enough for now. Entire city with a bit of variation in a few clicks.
      Same procedure should look good if you can get more textures.
      Then for the roofs;
      Click the top of one roof. Select Similar Normals, that appears to select all the roofs and only the roofs.

    • @kaustik185
      @kaustik185 4 года назад +4

      You can easily select all faces facing in one direction by going to Select->Similar->Normal and adjusting the Threshold

  • @adrielsavage6365
    @adrielsavage6365 4 года назад +198

    Tris to Quads first before texturing those buildings.

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 4 года назад +18

      Anybody else twitch a little bit seeing all those triangles? ;)

    • @gordonbrinkmann
      @gordonbrinkmann 4 года назад +2

      @@lawrencedoliveiro9104 Yes. ;)

    • @gofish8195
      @gofish8195 4 года назад +12

      Triangles are perfectly fine here, it wouldn't make a difference.

    • @supaflykai
      @supaflykai 4 года назад +10

      no reason to change them to quads, especially considering how low poly they are

    • @kamillatocha
      @kamillatocha 4 года назад

      i was screming at monitor same thing

  • @WereWhusky
    @WereWhusky 4 года назад +297

    imagine using this to quickly make a city map for a game

    • @IconDevco
      @IconDevco 4 года назад +45

      dont worry, level designers arent out of work yet

    • @WereWhusky
      @WereWhusky 4 года назад +38

      I know, I was thinking more like making stuff like the not playable spaces with this

    • @mrlordmax5521
      @mrlordmax5521 4 года назад +9

      Space Engine will be fun then

    • @crystellik
      @crystellik 4 года назад +16

      That is exactly what I’m gunna do lmao

    • @ipotatosenpai7002
      @ipotatosenpai7002 4 года назад +19

      Imagine using this to make minecraft style(infinite generation) maps for something like a Spiderman game

  • @DrivingwithNico
    @DrivingwithNico 4 года назад +108

    This would be perfect for Cities Skylines

    • @therealsourc3
      @therealsourc3 4 года назад +16

      not for traffic but probably for astethics

    • @CRemy-pk1fh
      @CRemy-pk1fh 4 года назад +6

      @@therealsourc3 maybe but you know you can fix traffic easy as Biffa taught.

    • @marcozolo3536
      @marcozolo3536 4 года назад

      @@therealsourc3 Skylines is a broken system for traffic. Unnecessarily flawed

    • @isaacterry1243
      @isaacterry1243 4 года назад

      I was thinking just that, I want to see biffa or james turner do a play of recreating a city generated like this

  • @willy.william4582
    @willy.william4582 4 года назад +1

    Dude... For someone studying to be a civil planner... THIS IS AWESOME!

  • @boriswilsoncreations
    @boriswilsoncreations 4 года назад +27

    I was looking for a tool like this for years, literally. There was a time I wanted to make a game that happened in a city, and I wanted to make a realistic city procedurally. At the time I only found paid options.

    • @vrictor
      @vrictor 3 года назад

      Yeh me too lol I'm making a zombie city game and I really needed this haha

  • @raztaz826
    @raztaz826 4 года назад +41

    I have a couple ideas to texture all buildings.
    1) in blender edit mode. mesh, separate, by loose parts. Now they are separate objects
    2) select all the buildings in object mode and use tab to go to edit mode, press A to select all verts, then use unwrap.
    3) open the uv editor in another pane, grab all the points and scale them down by half and put them to the side (these are the walls)
    4) go back to the main view and deselect all with A.
    5) numpad 1 to move view to the side
    6) use box select(b) to select all the roofs
    7) go back to the uv editor to drag the roof verts away to another place
    8) draw a texture for the uvs
    Or just use step 1 of the above, delete all meshes, use a script in whatever game engine to place premade prefabs at the position of each building.

    • @peaolo
      @peaolo 4 года назад +5

      You can select a roof and select-->similar-->orientation. This helps with different building hight

  • @FractalParadox
    @FractalParadox 4 года назад +5

    You can select just the walls by the "select similar" option (once you converted them to quads using the "tris to quads" function) and then unwrap them all using the lightwrap method. Than make a collage of a bunch of different building facades and alighn it roughly with the uv's, just tweaking the ones that stand out as looking ugly or wrong. Same can be done for rooftops. If your city is far enough away, you may end up not even needing any adjustment of the uv's. This method is cool because you can throw your collage texture on a PBR map generator like materialize, to get some normals and roughness maps, and do some procedural textures to mix between multiple versions of the same material for more variation.

  • @themichaelconnor42
    @themichaelconnor42 4 года назад +120

    This is the second time I've heard someone refer to a .PNG as a "ping" and not a "P-N-G," and I love it

    • @kusog3
      @kusog3 4 года назад +6

      pee en ji

    • @saifulissam636
      @saifulissam636 4 года назад +1

      Pong

    • @pollodeshebrado6761
      @pollodeshebrado6761 4 года назад

      Peenege

    • @trbry.
      @trbry. 4 года назад +9

      I'm probably in the mirror world, and I loathe it.

    • @ThePC007
      @ThePC007 4 года назад +8

      Second time for me as well. The first time for me was in some Flutter video. Either way, the word ping already has a different meaning so I don't love that at all.

  • @shwetangpathak
    @shwetangpathak 4 года назад +2

    Just found this channel, and found so much good stuff and softwares that I can use in my architectural workflow! Thank you for these videos and keep it up!

  • @drivebyemusic
    @drivebyemusic 4 года назад +1

    Oh, how I love this channel. Honestly wish I knew about this last year haha

  • @deadstar44
    @deadstar44 4 года назад

    I used to generate city maps from scratch by drawing them by hands for fun with whole bus/metro lines penciled with colored markers when I was a child more than 25 years ago...Now there's a procedural city generator to cut corners on computers. What a time to be alive!

    • @qooqle
      @qooqle 4 года назад +1

      search up the game Cities Skylines, literally perfect for you

  • @ARMORHOUS3weplay
    @ARMORHOUS3weplay 2 года назад +1

    This is absolutely incredible. So organic in nature.

  • @MarkArandjus
    @MarkArandjus 4 года назад +5

    Pretty much exactly liek what I was looking for about five years ago! Finally.

  • @baraksmash
    @baraksmash 4 года назад +110

    5:04
    'F' for the default cube

  • @abitofpix
    @abitofpix 4 года назад +39

    That's it, I'm making Morioh

    • @The0Stroy
      @The0Stroy 4 года назад +2

      Beautiful Duwang

    • @dazza2350
      @dazza2350 4 года назад +1

      It's too Crazy and Noisy

    • @coins_png
      @coins_png 4 года назад

      start an open source project

  • @StaticPhotons
    @StaticPhotons 4 года назад +1

    If you select a rooftop, shift+G to select by normal, then assign a roof material. Then hit ctrl+I to invert selection and use cube projection to unwrap all the city buildings.

  • @m4r_art
    @m4r_art 4 года назад +1

    You could link the material instance and use a planar projection, meaning you should project UV's from a generalized building onto all buildings for a starter. That will fill out the scene. You could randomize this using a more complex shader, like using noise, or other randomization methods like gradient ramps on the mapping of the texture coordinates like when used to send random color for groups of objects, potentially you could block out the whole scene onto a very packed UV and then just constrain most UV's to your needed region, like that you could specifically tweak what's needed. Although a one by one approach will give best results, I guess randomizing the coordinates using a shader like I mentioned above could also work...

  • @zaknelson1887
    @zaknelson1887 4 года назад +1

    For texturing and UV mapping:
    First convert the boxes by selecting all and either with tris to quads or limited dissolve.
    Because we want the textures to wrap to the proportions of the buildings we can use reset. We could then fix stretching by Select similar menu(Shift+G)

  • @taureanwooley
    @taureanwooley 3 года назад

    binary trees with nodes work just as well, calculations of enclosed space can be calculated with the distance from a block search (where left and right for 2 nodes equates alternated equal children nodes for major intersections). Then it's volume calculations for total amount of space allowed for specific types of buildings. The fun part is noticing how simple the buildings are and the rate of travel calculation to allow for customizable building generation which includes interiors for buildings. This is usually equated by the usage of other plugins or managing sectional data and calculating building architecture based upon zoning (which could be simi-random). There's numerous other variables that could be played with, such as population density equating to structure or even layout (for streets) computations, along with actual animations based upon city density which would be optimized by zoning and density algorithms.

  • @NahFam13
    @NahFam13 2 года назад

    Cscape does everything for you including the city, river, building texturing and includes a bunch of options. I'd love to see you cover it. It's an interesting asset for unity.
    I bought it and LOVE playing with it. It's super simple.

  • @DocWolph
    @DocWolph 4 года назад +1

    Introversions City Generator, there are some OLD videos from them on this, seem to work more easily.
    1. Start with basic geography. This will also include added bodies of water although ground height based water for lakes and oceans would not be that hard.
    2. Paint (Vertex paint mapping) the urban density. This also defines where the tall buildings will be.
    3. Let the program procedurally generate the road map. This can include bridges. Possibly tunnels as well but this was never shown.
    4. Generate buildings. Blocks are broken down to fit multiple buildings. Easy-peasy Macroni Cheesy!
    There were some videos showing fully fleshed out buildings. This was a tool developed for a game I don't think they ever finished. They never even released the tool as a tool for 3D, level development and so on.
    Also, Blender used to have a add-in or script, never sure which, "Blended Cities", that allowed Blender 2.45 or so to have city building tools not unlike "Cities XL". It did not go beyond simple blocks to stand in for buildings. The Script fell into obscurity, probably because someone said it would be added to Blender but never was. It is hard to imagine any competent City generator would be ever be forgotten by the Blender community.
    "City Generator" may well be the first open source city generator made available in a long time, if ever, I am aware of.

  • @vytasrauckis6703
    @vytasrauckis6703 4 года назад +1

    In C4D, I would split off the bases from the rest, leaving disparate unconnected "buildings" you can then use a command "Polygon groups to objects". Now you have separate buildings as separate objects, allowing you to assign different materials to each.

  • @TheMotionofPictures
    @TheMotionofPictures 4 года назад

    If you use a Glossy BSDF shader (plugged into the material output) and a Brick texture (in the displacement socket of the material output) - Along with a texture coordinate node plugged into the Brick texture - Then using a separate cube as a reference object to control the rotation and scale of the Brick texture (turn off offset in the brick texture) this creates a pretty good looking glass surface for all the buildings using just one material. I learnt this from Ian Hubert and his creating cities vid. - One issue it does limit the city to just glass looking buildings.

  • @CreepyHandedMan
    @CreepyHandedMan 4 года назад

    Personnally, this what I do for texturing buildings in large cities (talking thousands of buildings here) :
    1/ Go to edit mode, select a roof with face mode, then select by normal. Then separate by selection. You've now disconnected all the roofs from their respective buildings
    2/ Get out of edit mode, select the buildings, then back in edit mode. Now I select all the buildings and we can unwrap any way we want (Smart UV project, cube projection, make each corner a seam and unwrap...). What I like to do if my material isn't procedural is to not unwrap anything and set my textures to "box" and use Generated texture coordinates. Then it's just a matter of playing with X Y and Z scales.
    3/ With all buildings selected, I apply a first complete façade material. That's the base, every building will have this by default. Then I introduce variation :
    4/ I deselect everything, and Select Random in face mode. I put the proportion on the bottom left panel between 1 and 5%
    5/ I press Ctrl+L to select buildings containing these random faces. Now I have from a few to many random buildings selected
    6/ I apply a new complete façace material to those buldings
    7/ Repeat 4-5-6 with different materials until you're satisfied
    8/ Also do 4-5-6 with the roofs
    And there you go.

  • @RatoCavernaBR
    @RatoCavernaBR 4 года назад

    You can scale just the height of the building by a factor of 10 so you can select all the vertical polygons using the Z view, after that you can just unwrap all the polygons over the texture using bounds and end up with somewhat align UV textures in a row.

  • @ChrisNowsk
    @ChrisNowsk 4 года назад

    For texturing semi-quickly, Here's my work flow.
    1) Create 2 vertex groups (by default the first will have all verts/faces)
    2) Go into front orthographic view, and then into wireframe mode so you can select "through" objects.
    3) With Face select mode, select all faces that are not facing the z axis. ( a long horizontal box select across the x axis not selecting the tops or bottoms of the buildings)
    4) Assign the selected faces to vertex group 2.
    5) Now that the sides of buildings are in vertex group 2, and the tops are in vertex group 1, you can easily create two separate texture uv unwraps.
    If you want to create some randomness, deselect random buildings with the circle tool and assign to new vertex groups and then assign a new uv map for the new group. This can be repeated as often as you want for various different textures.

  • @Potatinized
    @Potatinized 4 года назад +41

    Is there any medieval town generator? Fantasy theme is pretty strong in gaming community.

    • @plutoisalsoaplanet6245
      @plutoisalsoaplanet6245 4 года назад +16

      watabou.itch.io/medieval-fantasy-city-generator

    • @Potatinized
      @Potatinized 4 года назад +3

      @@plutoisalsoaplanet6245 Oh yeah. You're the man. Thanks

    • @juancibantos3633
      @juancibantos3633 4 года назад +3

      Probably not what you´re looking for exactly, but.. this is a fantasy map generator and it publishes a very fun twitter bot to follow: mewo2.com/notes/terrain/
      twitter.com/unchartedatlas

    • @Potatinized
      @Potatinized 4 года назад +2

      @@juancibantos3633 Thanks! The first one is more like a terrain generator and you can combine it with the town generator yourself to make a complete area map.

    • @gansetsukon
      @gansetsukon 4 года назад

      Oh hey there :3/
      Fancy seeing another potato around here :3c

  • @sitexorg
    @sitexorg 4 года назад

    1st thing that comes in mind is to skin off normal map from buildings and select ranges of colors to select unidirectional faces (easy, since it's not gradual), or make a script that excludes faces from already selected by the same principle using normal directions. Something like that.
    Man, I like the idea of controlled procedural creativity of any sort. It's like drawing in watercolors, if you know what I mean ;)

  • @defenderofwisdom
    @defenderofwisdom 4 года назад

    Finally. My country needs more cities.

  • @shakaama
    @shakaama 3 года назад

    gamesfromscratch: "i don't know how to texture all these buildings"
    ian hubert: am I a joke to you

  • @bigjimrand
    @bigjimrand 4 года назад +21

    Furious with this recommendation... Because I've spent the past 3 weeks struggling with procedurally generating cities from scratch and they are definitely not this good

    • @Ulexcool
      @Ulexcool 4 года назад

      Bro, this method looks like shit LMAO

    • @dreagerd8248
      @dreagerd8248 4 года назад

      @@Ulexcoolthen make a better one LMAO

  • @Potatinized
    @Potatinized 4 года назад

    For texturing, maybe you can use triplanar method to mask between the wall and roof, and ID every elements to have different kind of textures for each building. there are methods using triplanar so that you dont even have to unwrap the UV. In UE this is pretty easy.

  • @moleytron
    @moleytron 4 года назад

    for texturing I'd seperate into one object per building, do a few variations of textured buildings, hide all non buildings, do select > random and then tune the settings that open up bottom left, shift select a textured building so it is active, ctrl+L and select materials, then hide the textured ones before repeating from select random.

  • @summerWTFE
    @summerWTFE 4 года назад +3

    Would be cool if you could export buildings as a data file containing position, rotation, and dimensions. Then you could just put your own prefabs in what ever game engine you use.

  • @alejmc
    @alejmc 4 года назад +1

    Really nice, writing this down on things to try.
    Looks to me that the .STL importing could be very well automated with python scripts, it looks for the ‘domain’ file and then joins/subtracts/just-opens the others.
    For the buildings texturing, not too sure about blender, but I think that something like it’s done in video games, worldspace box mapping or ‘interior mapping’ could be something doable with the shader nodes and the height used to replace the bottom ground with building entrance textures.
    For extra crazyness, pretty sure some Houdini wizards could get those buildings and assign random rooftops, side details, and whatnot... and make it be destroyed by a meteorite or something.

  • @hurricanemeridian8712
    @hurricanemeridian8712 4 года назад

    This is beautiful especially for planning stuff in cities skylines

  • @StarKnight619
    @StarKnight619 3 года назад

    been looking at this program for a Spycraft game for a little while. I wanted to have the players be in a city where the entire campaign takes place in and I was thinking about making one by hand alone, until i came across this program, the only other one there is is 100 bucks and i'm not going to spend that much on a campaign that might fall through
    Great video

  • @brackman71
    @brackman71 4 года назад

    The "Solidify" modifier allows you to extrude flat geometry.
    No need to do a "zero extrude" then move the new faces.

  • @StephenWebb1980
    @StephenWebb1980 3 года назад

    to help with building textures, I would put a solid color on each face (to expedite the process, you would have to probably write a script that searches for all faces that do NOT have their normals facing Down - Up normal for rooftops of course) - use a separate material for each (and a unique color on each face you want to look unique). Create an exact duplicate of the buildings in place, put a single material on the duplicate set of buildings, then bake/transfer the colors out as a new texture (for something like this you could probably get away with an 8K resolution) this will serve as your ColorID texture map for your city buildings. Open Quixel Mixer and import your custom mesh (all those buildings!) and set the MaterialID to be that map you baked. Finally, start making those smart materials work for you!

    • @StephenWebb1980
      @StephenWebb1980 3 года назад

      PS, not a blender guy - I'm a maya guy through and through but I imagine the transfer/baking of maps is pretty much the same technically (not procedurally obviously).

  • @alejandrodeugarriza7690
    @alejandrodeugarriza7690 4 года назад

    for texturing it could be done selecting gor example one side of a building, then go to select similar, normal. This will select all faces facing in the same direction. then go to the orthographic view that is at the front of your selection and project the uv from view. do the same for each face o the buildings and assign a texture for the roofs and different ones for the sides. its very simple to do and deals with the problem of stretched out textures from proyecting from a single view.

  • @peaolo
    @peaolo 4 года назад +2

    There was a very old tutorial by Gleb Alexandrov to solve issues with texturing, something like "how to generate a town", don't remember exactly. He used .OSM files but the idea is the same.
    There's a tool to import 3D models directly from Google Earth (not completely legal, I guess).
    Or a GIS importer for blender.... I mean, it's full of towns out there ;-)

  • @deltahalo241
    @deltahalo241 4 года назад

    Oh man, this could be really awesome, if you can control the size of the city then it could be really helpful for small indie devs

  • @whnvr
    @whnvr 4 года назад

    the best way by far to utilise this technique is probably by using houdini’s capabilities to procedurally add contextual geometry detail onto buildings, unsure about houdini’s texturing capabilities but it may be capable of that too!

  • @selvii
    @selvii 4 года назад +92

    more like generating amercian cities ..

    • @David_Box
      @David_Box 4 года назад +24

      Yea, but cmon, look at those squares, they look NICE

    • @majoraccident1924
      @majoraccident1924 4 года назад +8

      Well, they wouldn't make a generator for every city type

    • @alvideos2145
      @alvideos2145 4 года назад +1

      @@majoraccident1924 why not? Also, whats the difference?

    • @majoraccident1924
      @majoraccident1924 4 года назад +10

      @@alvideos2145 imagine having to program one generator for every culture

    • @Johnny_Awesome
      @Johnny_Awesome 4 года назад +16

      @@alvideos2145 the difference lies between planned out cities and naturally grown cities. Compare American city layouts to any city developed pre "british-colony" America, you will notice the difference at first sight.

  • @RemyFioretti
    @RemyFioretti 4 года назад

    Using Separate XYZ on texture generated UV with 1 mapping for X and a 90° mapping texture rotation for the Y. Dont forget to normalise to get opposite direction in count. mix those by masking X&Y after the Vector input or before if you prefer using mix RGB. plug vectors in the 2D texture. This way you can use multiple texture inputs and play now with random per face or island in the newest version on blender in cycles. If eevee, Create randomness per objects Island is tricky because not ready to use but with a bit of node work it is quite easy to get it. Use Z for roof textures

  • @CDArena
    @CDArena 4 года назад

    Click one building roof. Select -> Similar -> Normal; Separate -> Selection; (rename new collection to "roofs"); You can do the same for floors (or delete them), which leaves the original Buildings collection as walls.

  • @kacperozieblowski3809
    @kacperozieblowski3809 4 года назад +1

    this is just perfect for the game I wanted to make

  • @didur62
    @didur62 4 года назад

    Ayyyyyy toronto blender user here! thanks for the videos !

  • @playeronthebeat
    @playeronthebeat 4 года назад

    This is awesome for my Minecraft city project I'm building!
    Awesome!

  • @sekvojs
    @sekvojs 2 года назад

    In short, write a .bpy script that
    1 separates each mesh into an individual object,
    2 goes/loops through all the building objects in the scene (selects, enters edit mode, makes adjustments, exists edit mode)
    3 figure out what steps and instructions you need to take in the "edit mode part of the script" to make the magic happen.
    For starters you should select the faces by orientation their normals in the world (so you could differentiate roof tops from side walls)
    Then apply textures in scale according to mesh face edge size.
    Blender scripting is well documented ;)

  • @sgfx
    @sgfx 4 года назад +1

    No need for UV mapping. To quickly texture the buildings in Blender 3d, first in edit mode, dissolve all your building faces to get rid of triangles. Break up the buildings using random selection (tiny value amount) and then Ctrl L to select the full buildings, then assign new materials to the selected. Repeat for each building style you want, I used 10 building images to give a decent amount of variance. Then for materials nodes, use “object” as your source coordinate and “box projection’ in your image node. Resize textures to fit properly, Also select one roof poly and then tell blender to select all similar norms and then add a material to it.

  • @pigaboyAKAthecoolestguyonearth
    @pigaboyAKAthecoolestguyonearth 4 года назад

    it looks very good, i am probably using it some day

  • @RandomMan1
    @RandomMan1 4 года назад +1

    Ian Hubert has a great tutorial on texturing cities.

  • @Raycaster7
    @Raycaster7 4 года назад

    I might recommend importing all of the .stl files in one go, just shift-select all of them in blender's import dialog. There might be a little z-axis fighting, but just a minor height adjust fixes that anyways.

  • @DucatiKozak
    @DucatiKozak 4 года назад +3

    "Toronto"... ?
    You have my attention Sir!

  • @danielawesome36
    @danielawesome36 4 года назад

    This is something that Elite Dangerous might need.

  • @TheFrostyCreeper
    @TheFrostyCreeper 4 года назад +1

    i think ian hubert's city tutorial could help with a quick and dirty solution for texturing the buildings, not gonna link it because youtube hates links but look up ian hubert, he's a little fast but he has some really good stuff

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 4 года назад +1

      This one ruclips.net/video/v_ikG-u_6r0/видео.html ?

    • @TheFrostyCreeper
      @TheFrostyCreeper 4 года назад

      @@lawrencedoliveiro9104 no that would take ages to do a whole city lol, I was talking about this one ruclips.net/video/JjnyapZ_P-g/видео.html it's a little sloppy but from a distance it works great

  • @danmariano1981
    @danmariano1981 4 года назад +12

    Only IGN thinks there's too much water.

  • @detectiverick9934
    @detectiverick9934 4 года назад

    Inspiration for CITIES SKYLINES!

  • @thatpersonwithamlpiconwhos2861
    @thatpersonwithamlpiconwhos2861 4 года назад

    I feel that this would be a great tool for planning out Minecraft cities. Say, if you want to build a city map in Minecraft, you could use this tool to create a rudimentary template, and build from there.

  • @thewordywizard4389
    @thewordywizard4389 4 года назад

    What would be awesome would be for the generator to use tensors it set textures. This would allow things like defining "old quarters" or "re-developed zones" etc and then being able to auto map the textures when rendering. I realise STL files don't support texture and I have no idea if there is a file format that would support mapping textures to objects in stl files but I think it would be pretty cool if we could use the generator tool for this

  • @harveymarks827
    @harveymarks827 4 года назад

    I think in the 2.83 you can select one and use the select settings and choose select similar. and unwrap whole groups for each type.

  • @1981danielmn
    @1981danielmn 4 года назад

    I would take the linework or rather make the line work of the buildings and make a rail close generator for the building. You would still need some setup time, but once you got it setup should work pretty well

  • @Marius-vw9hp
    @Marius-vw9hp 4 года назад

    Would be nice if you could input a set of textures in the generator, and it would distribute the randomly between buildings.

  • @gideondebebe557
    @gideondebebe557 4 года назад

    I haven't tried it yet but I think it should be possible to use the heightmap image he showed at the beginning and the particle system to place in buildings. It might make it a lot easier to texture said buildings and provide for more variability

  • @leschaps2387
    @leschaps2387 4 года назад

    I love playing with this thing.

  • @benb2825
    @benb2825 4 года назад +2

    Might be possible to select the faces on one building first, after that try to select by same normals. This should select all the faces on the other buildings.

  • @Uhhhelloiguess
    @Uhhhelloiguess 3 года назад

    this will be useful for my cities skylines custom build

  • @zerolzeeq
    @zerolzeeq 4 года назад +1

    The one ya made early on in the video be lookin like a crazy noisy bizarre town if ya ask me

  • @alvideos2145
    @alvideos2145 4 года назад

    Really cool, but I don't know what I would use this for except for it's just cool.

  • @andrewp8284
    @andrewp8284 4 года назад

    Might use this for NationStates. I’ve always wanted to map out my major cities!

  • @ElioRose
    @ElioRose 4 года назад +1

    RUclips: Here you go.
    [ᴛᴇɴ ᴍɪɴᴜᴛᴇs ɪɴᴛᴏ ᴛʜᴇ ᴠɪᴅᴇᴏ]
    Me: "Wait...why do I have this link open and why am I watching this?"

  • @nsovomabasa5014
    @nsovomabasa5014 4 года назад

    I think turning on side view of all the buildings and selecting their faces in shaded view would be the simplest and quickest way to texture all the buildings

  • @TheKenji2221
    @TheKenji2221 4 года назад

    I have Star Wars vibes now.
    Imagine a Coruscant like city on a flight simulator like DCS

  • @qualia765
    @qualia765 4 года назад +1

    My method of texturing,
    1) open edit mode
    2) make a collection and the 'buildings' in it
    3) make a new material
    4) Select all the vertexes/edges/faces (do this by wireframe mode, zoom out and drag-select everything)
    5) Right-click and select tris to quads, I found that you pump up the settings pretty far
    6) make sure everything is still selected
    7) Right-click > Separate > Separate by loose parts (Watch out this takes a couple seconds)
    8) go to object mode
    9) go the shader workspace
    10) Select use nodes
    11) Drag and drop in images for the walls and ceiling of buildings
    12) Nodes part one: *Geometry,* position > vector part of *Mapping* with the values 90,90,180 for rotation, then the vector of an *image texture* of the walls.
    13) Nodes part 2: *Texture coordinate,* normal > *separate xyz,* take the x > put in the value of *Compare* with the rest of the values at 0
    14) Nodes part 3: *Geometry,* position > into *image texture* for roof > *Mix shader* top shader spot, also put the image texture for the wall into the bottom shader and compare into mix > Finally to surface of *material output*
    Yer done!
    It's not great, but it's something. Also if you would different problems with the result replace all the places of geometry position with *texture coordinate generated*
    Extra tip: for more variation between buildings use the random part of the object info node
    Hope this helps!

  • @SPOKSYA
    @SPOKSYA 4 года назад

    Thanks for sharing such great tool

  • @benveasey7474
    @benveasey7474 4 года назад

    Can you do a video about what Autodesk is rumored to be planning? When they dropped their game engine (Stingray) they began working on a cloud-based program that is an alternative to their other software. This was originally called 'Project Quantum' and more recently 'Project Plasma'. From what I have read on the internet the idea is that instead of exporting/importing your models between programs you instead click a button to change the interface. For example, if you are designing a building you might need to do some Arch-Viz work at first so require accurate materials, light simulation, etc. Afterward, you might need to produce some analysis (heat efficiency of the building, stress analysis on its structure, etc). Then you might need to produce some 2D plans for constructing the building. Autodesk seems to be building a program that will converge all of these industries into one program. A video pulling together some of these rumors would be fun and could be posted on your RUclips Channel......

    • @antoniiocaluso4387
      @antoniiocaluso4387 4 года назад +1

      You actually have a paid-version of ACAD? Wowzer...its gotten so ridiculously expensive with its subscription model, I think it's chasing old Users away. I'm switching to BricsCAD. What's an old CAD-guy to do, otherwise? :-)

    • @benveasey7474
      @benveasey7474 4 года назад +1

      I am thinking about switching to BlenderBIM. I want to use Unreal because of UE5s Lumen and Nanite but it's mesh tools are still in the experimental stage and I don't know how to get technical drawings out of it. BricsCAD is a solid choice. I currently use Revit with Autodesk CFD (I need to get around to learning OpenFoam).

    • @benveasey7474
      @benveasey7474 4 года назад +1

      @@antoniiocaluso4387 I've just heard that Twinmotion is now FREE for BricsCAD users...nice.

    • @antoniiocaluso4387
      @antoniiocaluso4387 4 года назад

      @Ben Veasey thanks, friend. Know I started in Microstation in '82, on a surplus NASA Unix workstation. Took up a room! :-) Here's the thing...NONE of all the gee whiz 3D-stuff applies to actually getting things built. Bldg Depts & Builders require 2D printed B&W Permit Sets, only. I've been Design/Building FL ECOhomes 40-years, & still self-build my own (7, so far, at my 68-yrs) Mortgage-free for 38! A tip for you, maybe, & respectfully, is to learn to build an ECOhome ASAP, rather than new software. Seriously, if you wish to "kill" the mortgage-monster & live free in the USA. It'll reward you, & any other readers, with far-more satisfaction, than any latest update :-) I'll post my website below. Lets communicate further?! I build cruising catamaran's, too. But...that's another story :-) Buona Fortuna!

    • @antoniiocaluso4387
      @antoniiocaluso4387 4 года назад

      HomePlansDrawndotcom

  • @heartlights
    @heartlights 3 месяца назад

    Super rad, thanks!

  • @ma3an13
    @ma3an13 3 года назад +1

    Amazing

  • @3DJapan
    @3DJapan 4 года назад

    I might use this in LightWave it would be a lot easier than blender. It's a shame the buildings are just boxes though so it would only be really useful for distant background shots.

  • @apIthletIcc
    @apIthletIcc Год назад

    the first two features are all i wanted to find to jump start a project i have been writing for.. for a long ass time 😂 and this video is three years old? Man i wish i found this sooner.
    also for default texture on initial extrusion of the buildings could maybe the default color of the faces just be switched with a texture? I feel like that would be hacky but could work.

  • @pro246
    @pro246 4 года назад

    You don't need 2.91 for the boolean operation, since you only ran a difference operation you can just extrude the sea as high as you want or as low as you want and apply, not sure where you got the information of the boolean operations not supported on 2.9 from.

  • @mairem
    @mairem 4 года назад

    maybe you can, after you add a texture to one building, if you select multiple similar buildings, with the texturized building as the active selection, press ctrl + L to link the material and UV

  • @SianaGearz
    @SianaGearz 4 года назад +1

    Huh, i needed this.

  • @wolfl4430
    @wolfl4430 4 года назад +4

    Hey can you recommend a free software for recording voices for voiceovers and creating soundtrack and scores * also should contain virtual instrument, thank you

    • @SylvanFeanturi
      @SylvanFeanturi 4 года назад +1

      One of the better free DAWs is Cakewalk by BandLab. It supports VST2 and 3. For pure voice recording you can use Audacity.

    • @FlowPoly
      @FlowPoly 4 года назад +2

      Audacity

    • @thunderbreakergaming4196
      @thunderbreakergaming4196 4 года назад +1

      reaper isnt technically free but it has an infinite trial

    • @-Burb
      @-Burb 4 года назад +1

      Cakewalk and reaper are the only 2 good ones that actually fit what you want that people have commented. LMMS is just bad, and audacity doesn’t have instruments or the real DAW functionality like it seems you want.
      Edit - If you have a Mac or are comfortable using a VM, people look down on it, but for beginners and for completely free GarageBand is actually half decent.

  • @khayyamal9207
    @khayyamal9207 4 года назад +1

    For texturing there is a fast way with substance painter but the thing is not everyone have substance painter...
    But if you want i can explain how to do that

    • @fleshyindividual3220
      @fleshyindividual3220 4 года назад +1

      Would love to know.

    • @khayyamal9207
      @khayyamal9207 4 года назад

      @@fleshyindividual3220 alright, then I'll make a tutorial on my other channel I'll send you the link when it's done

    • @felizgar
      @felizgar 4 года назад

      I would like to know as well

  • @patlecat
    @patlecat 4 года назад

    Does this tool only do US American city layouts? Texturing could be greatly facilitated by the generator to produce dummy textures that one could then replace.

  • @eXca1iburN
    @eXca1iburN 4 года назад

    Create a shader that chooses a cladding/external texture for vertical surfaces, and a roof texture for horizontal surfaces on that "buildings" object
    I'm unsure if you can create logical variation by having a few textures that project to connected faces only and cycle through that list at random
    Otherwise, break each building into a separate object, see if that helps

  • @MicheleAllori
    @MicheleAllori 4 года назад +1

    Not sure what you mean "cannot extrude 0 width objects" sure you can, I do it all the time, press E, type in the amount to extrude and you're done! Also, I really don't get what you're saying when you say that blender 2.8 removed the boolean and that somehow this is a new "feature" in 2.91... Boolean modifier has always been there...

    • @coma4454
      @coma4454 4 года назад

      Old blender had two Boolean algorithms, bmesh and carve, one of them got taken out for 2.8 and unfortunately the one that's left doesn't deal too well with geo with faces in the exact same spot. 2.9 reintroduces a Boolean algorithm that can deal with coplanar geo

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 4 года назад

      Yeah, I don’t know what his problem is with extrusion, either. Unless it’s a 2.91 thing.

  • @DerekDumas
    @DerekDumas 4 года назад

    Choose your buildings, Disconnect them, Reconnect the buildings under a new mesh, then unwrap all of them and unwrap them using cube projection. fine tune the rest of them.

  • @warlax5658
    @warlax5658 4 года назад

    You could probably separate the mesh, the cube project all the (now separate) objects

  • @SCTproductionsJ5
    @SCTproductionsJ5 4 года назад

    I mean, unless you're in california, not a lot of cities have sharp divides between urban and subdivision, it gets less "city-like" spread out over a lot of area.
    Does it account for sub-divisions within cities? Like, could you use this for a town?

  • @slendi9623
    @slendi9623 4 года назад

    This is gonna save so much time...

  • @madcatlady
    @madcatlady 4 года назад

    can you merge coplanar faces in Blender?
    I converted it to an obj and did that in Carrara 3D and applied box UV mapping and it's not too bad

  • @p07gbar
    @p07gbar 4 года назад

    I believe to extrude a thin face you should be able to hit e then hit z twice to switch it from normal-z to world-z.

  • @emo10001
    @emo10001 4 года назад

    ProbableTrain actually tells us how he textures the buildings, using Ian Huberts techniques. Its in the "Extra Details" section of the tool website. My only suggestion would be, to be able to control how many buildings are in each block and maybe an randomize building height capability. But great work ProbableTrain! Great free tool for the community!
    maps.probabletrain.com/#/stl?id=extra-details