Instance buildings in simulation

  1. Project description:

I’m currently trying to create the perfect procedural buildings. I can generate buildings from shp or OSM files with UV maps and metadata.


However, I thought it could be done using instance and metadata. I only generated roofs and walls smaller than 3 meters.

then I created a 4 meter by 4 meter mesh.

In the next step, I generated the points where the model would be spawned, calculated the rotation, scale and added metadata.

All looks great! However, when loading an instance, cesium block the Unreal main loop and first create full instances tabel then back to main render loop. This causes the screen to freeze for a few milliseconds
This is a big problem in aviation and car simulations

My example for test. This is small city Tczew in Poland. Coordination:
Lat: 54.09437276154797, Lng: 18.78383384505706:
cesiumForum.zip (6.4 MB)
Main Json roof: cesiumForum/Roof/0/L0X0Y0.json
Main Json instances Wall: cesiumForum/InstanceWall/0/L0X0Y0.json

  1. My question:
    Do you plan to develop instances? for example: Create a system for loading instance tables in packages, or support metadata?
1 Like

Hi @m.kwiatkowski,

Thank you for the detailed writeup. We actually happen to be working on support for instanced features and metadata! You can see the status of the Github PRs for them here:

We’re hoping to get this into the next release, so stay tuned. :smile:

2 Likes

I created a test model with metadata. Maybe it will be useful to someone.

  1. Just instances without a model:
    MetadaWithoutModel.zip (7.7 MB)

  2. 17 Blender model Wall 4mx4m:
    blenderWall.zip (4.9 MB)

Descrition metadata Model:
ID 0-4 : Perter houses

ID 5-7 : connected to OSM metadata - garage, garages, parking, construction, hangar, industrial, warehouse.
parter:


with floor>1:

ID 8-10: connected to OSM metadata - services, commercial, kiosk, office, supermarket, bakehouse, college, fire_station, government, hospital, kindgartten, musem, school, sporthHall, stadium

ID 11-16: apartment blocks and rest.

[image]

  1. separated instances with connected models
    separetedInstancesWithModel.zip (56.4 KB)

  2. Full Json+model

  • Roof:
    roof.zip (2.9 MB)
  • Instances Wall:
    instancesWall.zip (7.7 MB)
    Test town Coordination:
    Lat: 54.09437276154797, Lng: 18.78383384505706:
    Main Json roof: /Roof/0/L0X0Y0.json
    Main Json instances Wall: /InstanceWall/0/L0X0Y0.json