W.I.P. Summit Road, Christchurch, New Zealand

Discussion in 'Tracks' started by barf, Nov 12, 2018.

  1. barf

    barf Member

    Joined:
    Aug 6, 2018
    Messages:
    63
    Likes Received:
    81
    Updated the top post with a download URL for anyone brave enough to test! ;)

    The OSM building footprint data came with mercator scale error, abandoned that idea, using LINZ building footprint data instead (which is apparently better than OSM/Google maps data anyway!). The buildings are simply polygons draped onto the DEM and extruded upwards 4.20 meters to form polyhedra.
    [​IMG]
    [​IMG]

    Known issues with this release:
    • No materials/textures on buildings yet. Just testing FPS/performance with them at this stage.
    • Road is a bit dodgy in places. There are gaps between the LiDAR sections, and the terrain underneath needs re-contouring to flatten the edges.
    • No AI path, no track map and no replay cameras yet.
     
    Last edited: Feb 15, 2019
    Prototype, luchian and Tibor Solyom like this.
  2. barf

    barf Member

    Joined:
    Aug 6, 2018
    Messages:
    63
    Likes Received:
    81
    Some trees and shelter-belts have been growing from official NZ topographic map data:
    [​IMG]
    [​IMG]
    [​IMG]

    This is just points and polylines emitting various trees with the particle system, need to drape the forest area polygons onto the DEM properly now, and grow some actual forests!
     
    Prototype, Tibor Solyom and luchian like this.
  3. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    2,207
    Likes Received:
    870
    Soo.. you found a way to plant the trees automatically, according to map ?
     
  4. barf

    barf Member

    Joined:
    Aug 6, 2018
    Messages:
    63
    Likes Received:
    81
    Yep!

    You need map layer data in ESRI Shapefile format (.shp), or something that is supported by QGIS (and then export is as a shapefile).

    There's surely other ways, but the overview of the process I used is like this:
    1. Crop out the data in QGIS and export as separate shapefiles depending on data type (points, polylines and polygons).
    2. Import shapefile to blender with blenderGIS. Set the elevation source to the DEM object.
      [​IMG]
    3. Tidy up imported meshes and drape onto DEM. (Only really necessary for polygons/areas).
    4. Add some trees, and create a group for them (Ctrl-G)
    5. Add particle systems to imported objects.
    6. Configure particle system to emit random, or weighted-random trees from the group.
    When importing point-type Shapefiles you get a single vertex for each point, so I applied the Particle system to the object, configured to emit from the vertices to 'grow' the trees.

    The shelter-belt data was polylines which created vertices and edges, I needed to clean these up a little by 'removing doubles' and using alt-m to merge some near vertices. Then I converted to a curve, subdivided, and used the particle system to emit trees from the vertices.

    For forest area polygons, the imported object looks like this:
    [​IMG]

    These polygons (and the other imported shapes) are not actually exported. They are used as the surface from where the trees are 'grown'.

    But they didn't fit onto the DEM, making trees grow in the air, so I used a modifier stack to triangulate, subdivide and shrinkwrap the polygons onto it.
    [​IMG]

    Then I added a particle system to emit trees as 'hair' from the faces. I followed this guide here:
    https://blender.stackexchange.com/questions/40270/how-to-make-forest-with-different-types-of-trees

    The topo map layers have species info which helps to plant them by type, I'm told the council has height data and number of laterals! Here are some 'exotic coniferous' trees (pinus radiata was introduced to NZ) with a shelter-belt visible on the left:
    [​IMG]
     
    Last edited: Feb 27, 2019
    Prototype and luchian like this.
  5. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    2,207
    Likes Received:
    870
    That's very cool :nerd:, thanks for info.
     
  6. barf

    barf Member

    Joined:
    Aug 6, 2018
    Messages:
    63
    Likes Received:
    81
    This technique could work even without map layer data, by using QGIS to draw forested-area polygons over satellite photos.

    The particle system settings I used are like this:
    [​IMG]

    Then to actually export the trees, you need to 'make duplicates real' and join them together into one object. With multiple tree types, select each type by material and separate as a new object.
     
    Last edited: Feb 27, 2019
  7. barf

    barf Member

    Joined:
    Aug 6, 2018
    Messages:
    63
    Likes Received:
    81
    Just a wee update! :whistle:
    Finally got around to playing with the ksMultilayer_fresnel_nm shader!
    [​IMG]

    But I need to do something to blend the edges still. And we have cattle-stops now!
    [​IMG]
    [​IMG]
     
    Last edited: Mar 11, 2019
    Prototype, luchian and Tibor Solyom like this.
  8. barf

    barf Member

    Joined:
    Aug 6, 2018
    Messages:
    63
    Likes Received:
    81
    An update with good and bad news. On Friday (NZ time) I was working on down-sampling and decimating a LiDAR DSM to try and make the view of Christchurch more beautiful, when I heard the news about a terrorist attack in the city :( now the terror threat level is high, police helicopters are patrolling 24/7, and I live by the airport but it is eerily quiet...

    I wasn't even sure if I would use the DSM (as well as the DEM) because it's a lot of vertices for a 'background' but there are more than 50 victims so far, and I want Christchurch to be remembered as a beautiful city, so I will keep it in their memory. Some of the victims worked in IT too.

    This update replaces a section of the 30m Jaxa/ALOS (stereo-optic) DSM with a 1m (LiDAR) DSM resampled down to 4m and draped with 4m orthophotos, to try and keep a pixel-colour/vertex relationship. Christchurch is very flat, but from the hills all of it is visible. So instead of placing buildings onto a DEM, the DSM is perfect because it shows the heights of buildings and trees, without the extra vertices of separate objects and shader invocations.

    It seems to perform OK and the vertical accuracy/confidence is still pretty good at 0.20m (95%):
    [​IMG]
    [​IMG]
    [​IMG]
     
    Tibor Solyom, luchian and Prototype like this.
  9. Prototype

    Prototype Active Member

    Joined:
    Dec 24, 2018
    Messages:
    112
    Likes Received:
    142
    Your track surface is looking really nice @barf
    It really feels like its come a long way since only just a couple of weeks ago.
    I guess having such a huge area to cover changes the scope /approach to everything.
    Very nice!

    And yes the whole world is watching and is shocked by the insanity of what recently happened in NZ.
     
  10. barf

    barf Member

    Joined:
    Aug 6, 2018
    Messages:
    63
    Likes Received:
    81
    @Prototype I hope Christchurch can be known for it's great roads and motorsport instead of awful things like that.. and I probably should have started with something smaller :)
    [​IMG]

    Most of my time seems to be spent re-contouring the DEM. Being LiDAR it contains residual remnants of surface features, and acute terrain angles are smoothed out, meanwhile some flat and open areas are driveable raw.

    Would love to find a better way, it's simple enough just time consuming, by using elevation, plan and auxillary views to craft contour lines with blender's knife tool, then manipulating them into position to create road edges, flattening with looptools, then shrinkwrapping and subdividing a smooth surface suitable onto it. It's a similar process to the original prison labour used to make some of the road I guess :ROFLMAO:
     
    luchian and Prototype like this.
  11. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    2,207
    Likes Received:
    870
    Sorry for what happened in NZ :(. I know that weird, quiet feeling after.. my wife was in Paris few years back when it happened there.
     
  12. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    2,207
    Likes Received:
    870
    :lol:
     
  13. Pixelchaser

    Pixelchaser Well-Known Member

    Joined:
    Jan 4, 2015
    Messages:
    1,485
    Likes Received:
    1,012
    yeah RIP Zealanders. I do have to say, Try not to believe the Television. its no where near as simple as it has been made out. Terrorism crossed to your states for sure. but you don't have terrorism issues. given your national border laws which means its political. a new playground that has to start somewhere. and yeah NZ just got tarnished with the rest of the worlds politics for that im sorry. I always referred to NZ as probably the last Bastion regards this. I think someone else thought the very same thing and decided to change that. tarnish that.
     
    barf likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice