NYC Building Data - 3d Models


Did you know, that the NYC Dept. of Information Technology and Telecommunications produced a 3d model of all the buildings in New York City? I did. But it has taken some time to figure out how to use it. It’s a lot of data and requires some significant processing to be able to do anything fun with it. And by fun, I mean make stunning renders such as this:

manhattan empire state 3d render.jpg
The Empire State Building in Manhattan [CC BY-NC, Credit: James Hedberg]

The basic workflow involves:

  1. Downloading almost a gigabyte of CityGML files from the NYC Dept. of Information Technology and Telecommunications
  2. Converting the CityGML to CityJSON using CityGML-Tools
  3. Converting the CityJSON files to obj format using cjio
  4. Cleaning up the meshes using MeshLab
  5. Importing the cleaned up meshes into Blender
  6. Tweaking the rendering setting for hours to be able to handle nearly 1 million vertices.

(There are certainly other methods that I tried, but this list represents the most flexible and robust method I’ve found so far.)

After working through all these steps, we can begin to make some images. I like to incorporate the non-photorealistic rendering engine Freestyle in most of these works. Obviously services like Google Maps have image textures with their 3d buildings, so you can see every little tree and doorway and facade, - that’s not what we’re going for here. I want a more abstract view of the city. I find the imagination has more room to wander when there is less detail to focus on.

First light on the models looks something like this. Just a bunch of little boxes.

nyc building 3d model render
A basic solid render pass [CC BY-NC, Credit: James Hedberg]

Who doesn’t like a little Depth of Field? We can simulate a camera lens and set some focal points and f-stop values to give the image little more depth, and highlight a subject. In this case the Empire State Building.

nyc building 3d model render
Solid Render with Depth of Field [CC BY-NC, Credit: James Hedberg]

Next up we want to work on extracting all the edge lines. This is what the Freestyle render engine does. (Though, it doesn’t do it very quickly so you’ll need some muscle to wrangle something like this)

nyc building 3d model render
Freestyle Pass on the buildings [CC BY-NC, Credit: James Hedberg]

Then we can merge these two images using the compositor features and we start to get some interesting images.

nyc building 3d model render
Composite of Solid + Edge renders [CC BY-NC, Credit: James Hedberg]

Finally, we can play with all the various mixing parameters and eventually produce something like the following:

nyc building 3d model render
All done [CC BY-NC, Credit: James Hedberg]

There’s a lot more one can do. We can play with the line rendering and make some more ‘sketchy’ styled renders.

nyc building 3d model render
3d model with sketchy line render [CC BY-NC, Credit: James Hedberg]

Here are a few of my favorites so far.

nyc building 3d model render
The Empire State Building [CC BY-NC, Credit: James Hedberg]
nyc Empire state Building 3d model render
Panorama Style Rendering of Manhattan and the Empire State Building [CC BY-NC, Credit: James Hedberg]
nyc Empire state Building 3d model render
The Empire State Building with Downtown and Wall Street in the background [CC BY-NC, Credit: James Hedberg]
Freedom Tower and surroundings
One World Trade Center, aka the Freedom Tower, and other buildings in Lower Manhattan [CC BY-NC, Credit: James Hedberg]
Freedom Tower and surroundings
The Chrysler Building nestled amongst Turtle Bay [CC BY-NC, Credit: James Hedberg]

Of course, I’d rather be able to hoist a chair on a roof somewhere and bring a pad and pencil and sketch these out by hand, but that’s a tad less feasible these days.

nyc Empire state Building 3d model render
The Empire State Building, detail, sketchy blueprint style [CC BY-NC, Credit: James Hedberg]

And there’s more

I’ve also prepared these models for use in the astrovizualization software package: OpenSpace. This addon lets users visualize celestial events and other astronomical phenomena with a NYC skyline in place for reference. So, curious when the moon will be visible right above the empire state building? Or if you can see an eclipse from somewhere specific in Manhattan, with all those pesky buildings? Now you can figure out before getting on the train.

Here are some examples:

The Great Conjunction of Jupiter and Saturn, 2020

The Great Conjunction
The Great Conjunction - 2020, rendered with OpenSpace, Credit: James Hedberg]

Great Conjunction from NYC

ManhattanHenge

ManhattanHenge Simulations


Notes: All images on the page are CC BY-NC, Please credit James Hedberg if you reuse for non-commercial use. For any other inquires please contact.


Share on: