thomthom / cities-skylines-sketchup-tools

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

Add option to export textures #1

Open thomthom opened 9 years ago

thomthom commented 9 years ago

Add option to export textures.

For diffuse the model material can be exported.

For the others a webdialog with options for each type supported can be added. Save the export preference with the model.

Mistro11 commented 9 years ago

Hi ThomThom. Great work. The test building I used was exported with a blue diffuse color. I chose a 4x4 industrial building as the template. It successfully imported into the asset editor with no problem but the texture was a desaturated gold color with what looks like some graphics on the ground plane. Is this expected or should it come in blue as I had it in Sketchup? Using SU2015 Pro BTW.

thomthom commented 9 years ago

That sounds like the color variation features of the came. Expand the Materials section in the Properties window:

2015-04-18_11h12_36

Mistro11 commented 9 years ago

You're right about the color variation. I played with it a bit. I'm still learning the editor properties. Are you writing a script that creates 1 texture map with UV coordinates for the model?

thomthom commented 9 years ago

No - that's UV unwrapping and that's very difficult to do auto-magically. This issue was an idea I had where the exporter would open a dialog where you have multiple file fields where you could pick textures for the differente texture channels the game support and it'd copy them to the game asset folder.

Though - don't expect this to happen immediately. I shouldn't really have been doing this exporter in the first place - I have too many other things I should have done first.