thomthom / cities-skylines-sketchup-tools

Tools for creating Cities Skylines assets with SketchUp
MIT License
20 stars 4 forks source link

Overview

This is a SketchUp extension for exporting FBX or Collada models to be used with Colossal Order's Cities: Skylines.

Cities: Skylines uses the Unity engine which require assets to have a flat model hierarchy. Unfortunately SketchUp's FBX exporter adds an extra node even if all the faces are in the root of the model.

This extension patches the exported FBX model by trying to remove the extra node.

It also checks the model for basic requirements before exporting as well as setting the FBX exporter required for the asset to be imported correctly.

Exported Collada files will import rotated and scaled. This extension will fix this during export.

Additionally it includes a tool to layout a grid to aid in the modelling process.

Beta Version

Note that this is a beta version and might fail to properly patch the exported model.

Requirements

FBX Exporter Settings

DAE Exporter Settings

Note: During export the Model will be scaled and rotated to fit the in-game needs!

Units

The wiki indicate that the units should be meters, however, exporting from SketchUp seem to require export units set to Centimetres. (It does not matter what your Model Info > Units settings are as long as you model 1:1 scale.)

It appear Unity do indeed use meters, but some exporters scale up by 100 by default. Unity's default import is therefore set to 0.01 which also appear to be the case with Cities: Skylines.

Style Guide

This project follows the GitHub Ruby styleguide.

License

This project is licensed under the MIT license.