Cities: Skylines

Cities: Skylines

Not enough ratings
Easy way to make Rotating Prop (EN/JP)回転Propの作成
By stmSantana
Easy way to make rotating prop and speed setting.
English(Google Translation) / Japanese(日本語解説は下へ)
回転するプロップの簡単な作り方と速度の設定の説明をします。
   
Award
Favorite
Favorited
Unfavorite
0. Introduction
Since Cities: Skylines version 1.6, the asset editor Prop template has been subdivided so that you can easily create props with additional functions without using Modtools etc.
Here, I will explain how to easily make a rotating prop and how to set speed.

* Rotation is horizontally counterclockwise, you can change the speed for each mesh
* It is for people who can make basic ordinary asset

1. Create model
This is an example of creating with Blender.
Most of the procedure is the same as "How to make revolving asset" (author bozekj 0803).
http://steamproxy.net/sharedfiles/filedetails/?id=734042217

1. Move the rotation axis to X 0 Y 0
2. In the edit mode, select the face you want to rotate
(Select only parts with the same speed)
3. Switch to "vertex paint" mode


4. Select brush color


The rotation speed changes with the color selected.
  • Choose the color with a gray bar or enter the HSV value.
  • When painted on white (H = 0, S = 0, V = 1.000 of HSV) meshes do not rotate.
  • When painted black (V = 0.000) meshes rotate the fastest.
  • The gray between white and black is faster as it is closer to black, and slower as it is closer to white.
  • When it is gray close to 80% white (V = 0.800), the speed becomes 20% of black.

  • In game (not asset editor), When the black object rotates 10 times, the position of all objects is reset.

5. Turn on the Mesh use paint mask


6. Shift + K, To paint selected meshes with the current brush color

7. Exit vertex paint mode and export the object as fbx as usual.
* Vertex color does not affect Prop color. As usual, only the texture color and color variation mask are displayed.
* In the example below, for the sake of clarity, I made the texture the same color as the vertex color.



LOD
You can make the rotating LOD, Paint vertex.
2. Import and save
1. Select the prop (Morello's Cookie Dough Ice) in the asset importer



2. After you move time, you can see the prop rotate.

3. You can upload it to the workshop after saving this as usual

*Supplementary explanation
If you use a rotating Billboard template other than ice, the prop rotates differently.
However, when loading after saving it will be the same rotation as the ice Billboard.
If you know detailed information, I would appreciate it if you could tell me in comments.
3. Afterword
Rotating Sign Templates (Prop)
http://steamproxy.net/sharedfiles/filedetails/?id=901965132

Example of use
http://steamproxy.net/sharedfiles/filedetails/?id=892494438

I am grateful to bozekj 0803's guide.
0. はじめに
Cities:Skylinesの本体バージョン1.6から、アセットエディタのPropの項目が細分化されて、Modtools等を使わなくても簡易的に追加機能を持ったプロップが作成できるようになりました。
ここでは回転するプロップの簡単な作り方と速度の設定の説明をします。
※回転は水平に反時計回りで、メッシュごとに速度を変えられます
※基本的な通常のアセット製作ができるのが前提となっています

(追加機能のあるプロップとして今までイスやテーブルセットのプロップをいくつか作成して作動が成功しました。
その他として「回転」する看板や換気扇、「アニメーション」(2~4枚の画像切り替え)看板、「風になびく」旗などがありましたが、ほとんどは単純な作成では上手く行かず回転看板の中でも一番単純な1軸の物だけが今回成功しました。
ちなみに旗はPrefabHook Modを使えば以前から作成可能です。)
1. モデルの製作
Blenderで制作する場合の例です。
手順のほとんどは『回転アセットの作成方法』(bozekj0803作)と同じです。
http://steamproxy.net/sharedfiles/filedetails/?id=734055136

1. 回転軸が原点になるようにする
2. 編集モードで回転させたい面を選択する
(速度の異なる部分は分けて設定する)
3. 頂点ペイントモードにする


4. ブラシカラーを選択する


5. ペイントマスク用の面選択モードをONにする


6. Shift + K キーを使うと、選択されたメッシュが現在のブラシカラーで塗られる

※ここで選ぶ色により回転速度が変わります。
・白~黒の方が速度が分かりやすいので、グレーのバーで選ぶか、HSV値で入力します。
・白(HSVのH=0,S=0,V=1.000)だと回転しない。
・黒(V=0.000)だと一番速い回転になる。
・白と黒の間のグレーは、黒に近いほど速く、白に近いほど遅くなる。
・80%白に近いグレー(V=0.800)だと、黒の20%の速度になる。
・ゲーム中に(アセットエディタではなく)黒のオブジェクトが10回転する時間が経過すると、全てのオブジェクトの位置がリセットされる。

7. 頂点ペイントモードを終了し、通常通りオブジェクトをfbx形式でエクスポートする。

※頂点色はプロップの色には影響を与えません。いつものようにテクスチャの色だけが表示されます。(color maskも含む)
※下の例ではテクスチャに頂点色と同じような色を使ってわかりやすくしている。



LOD
LODも同じように頂点ペイントを使って回転させられる。
2. インポートと保存
1. アセットインポーターでプロップの3Dアイス屋看板( Morello's Cookie Dough Ice )を選ぶ



2. 時間を動かせば回転しているのが確認できる

3. 通常通り保存し、ワークショップにアップロードできる

※補足
アイス看板以外にも色々と回転プロップがあり、回転軸や基準速度などそれぞれ動作が違う。

しかしこの手順で保存しても、ロード後にはアイスと同じ回転に変わってしまうので無意味。
それ以上の詳しい手順は不明、ご存じの方はコメントで教えて頂けたら嬉しい。
3. 終わりに
使用例

http://steamproxy.net/sharedfiles/filedetails/?id=892494438

テンプレート
Rotating Sign Templates (Prop)
http://steamproxy.net/sharedfiles/filedetails/?id=901965132

bozekj0803様のガイドに感謝します。

蛇足ですが、このモデルを先進型風力発電所のタイプでインポートした場合
https://youtu.be/HZiKoaWhy-M
やはりグレー濃度でメッシュが伸び縮みするようです
7 Comments
Imchilrdenjaehee1242 4 Jan, 2021 @ 7:49pm 
IJTB IBVKJ :steammocking:
stmSantana  [author] 21 Aug, 2018 @ 4:01pm 
@Holodets
Try to use "PropRotating Params" Mod.
Please ask to Ronyx69.
Holodets 20 Aug, 2018 @ 11:08pm 
Is it possible to make an object rotate on an inclined axis? As on concrete mixers for example
Emperor Li 11 Apr, 2017 @ 3:20pm 
Great guide. Thanks!
Tomcat 7 Apr, 2017 @ 7:44am 
Thank you for the guide! I want to try as soon as possible.
stmSantana  [author] 4 Apr, 2017 @ 3:41pm 
When you do not react even if you push the button…….
For example, a file is empty or is an output option mistake.
If the file is not readable even if you choose other types of asset importers, it is a cause. (e.g., a park, building)
Henry Suen 4 Apr, 2017 @ 7:46am 
I had put the FBX into the folder,and I see it in the asset editor , but The game didn't react when I chose the FBX and pressed Continue; So frustrating.