Kenshi
96 ratings
Illumination and Hologram Statues
2
3
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
23.567 MB
16 Oct, 2023 @ 5:20am
15 Jun @ 12:18am
6 Change Notes ( view )

Subscribe to download
Illumination and Hologram Statues

Description
New!: IHS Faction Edition

-----

イルミネーションとホログラムを映し出す照明を追加します。
モデルは6種類で、1つにつき8通りのタイプがあります。
(ホログラムかイルミネーションか・大小・設置特性)

表記なしは地面に設置します。高さと角度を調整できます。
(Small)は大きさが約半分になります。
(Interior)は屋内と一部建物の屋外部分に設置できます。地面にも設置できますが高さと角度の変更はできません。

バニラの屋内照明(電灯柱や天井灯のやつ)の研究が済んでいれば建設可能です。
建築カテゴリーはIHSおよびIHS INTERIORです。
インポート不要。
照明としての強さはバニラの電灯柱とほぼ同じです。

Adds illumination / hologram lights.
There are 6 models, and each model has 2*2*2 types.
(Holo or illum, large or small, built on the ground or in/exterior.)

(No adjectives) ones can be built on the ground and their height and slope can be changed.
(Small) ones are half-sized.
(Interior) ones can be built in the interiors and exterior parts of some buildings. But their height and slope can not be changed.

Unlocked at the same time as finishing the vanilla Indoor Lighting research (includes Ceiling Lamps and Electrical Torch Post).
Building category is IHS and IHS INTERIOR.
No need to import.
The lighting power is almost as the same as the vanilla Electrical Torch Post.

Do not merge this mod into your mod.
Do not upload this mod anywhere.
Free to reuse and edit material and particle scripts in this mod.


Info for modders
そのうち解説のガイド作るかもしれません。

マテリアルスクリプトの構文などはこちら。むずい
https://www.ogre3d.org/docs/manual18/manual_16.html#Passes

ホログラムはrendererの値をBillboard(いつもの)ではなくEntityにして表現しています。
Entityでは指定したメッシュをパーティクルとして発生させることができます。
これは設置個所の傾斜を反映した位置と方向に出現します。
これを利用すればパーティクルのために水平に設置する必要がなくなったりします。
またメッシュのテクスチャーのアニメーションも可能です。
Entityで指定したメッシュには頂点カラー情報が必要です。頂点カラー情報がないとテクスチャーが黒赤になります。
頂点カラーレイヤーだけ作って(頂点ペイントモードに入るとデータ→カラー属性に自動的に追加されます)何も塗らず、頂点カラーをエクスポートにチェックを入れてエクスポートしてください。
Lucius氏のこちらのアドオンが色々と便利です。
https://github.com/Lucius64/kenshi_io_blender

イルミネーションは光の粒子はBillboardですが、発生箇所の指定の値をBoxやPointではなくMeshSurfaceにしています。
MeshSurfaceは指定したメッシュの表面からパーティクルを発生させます。

このへんのKenshiで使われていなかった値は、Particle Universe editorで色々と確認できます。
https://wiki.ogre3d.org/Particle+Universe+plugin
Editorをインスト―ルしたら、インストールフォルダーの /manual/script にhtml形式のマニュアルがあり、そこに使用可能な値や構文がすべて載ってあります。(表層ウェブだとなんか見つからなかったと思います。)
私はmod製作時はindex.htmlをお気に入り登録して見ていました。
Editor自体も少しクセが強いですが、スクリプト作成の助けになります。色の値を知るのにも有用です。

FCSでの設定では、EFFECTSのsky colour multiplierがデフォルトでは1になっているので、必要に応じて0などに変更してください。
またinstancesでeffectsを追加する際、OrientationがデフォルトでWXYZ=0100になっていますが、これはスクリプトで作ったものを上下反転させるので、WXYZ=1000に直すとよいです。

スクリプト自体の流用や改変はご自由にどうぞ。

.material script syntaxes
https://www.ogre3d.org/docs/manual18/manual_16.html#Passes
.pu script editor
https://wiki.ogre3d.org/Particle+Universe+plugin
14 Comments
Momayo  [author] 21 Oct, 2024 @ 7:58am 
The assets of this mod are independent so should not cause the "incompatibility" that can generally occur with combinations of mods
Technically, particle textures are not subject to unloading so reside in VRAM while the game even though these textures are completely not showed in the screen.
By the way the total size of textures in this mod's particle assets is 15MB.
TheDewd 20 Oct, 2024 @ 1:38pm 
Really love this mod, but holy BEEP does it make my game lag. was getting 15fps when I had the mod installed. I get 60+ fps when I have it uninstalled. might have some compatibility issues.
Momayo  [author] 14 Feb, 2024 @ 6:41am 
@Elemental Conjurer
No, sadly can't. Half-tansparent texture can be used in very limited situations on Kenshi.
I think in particles (like this mod), shirt texture (strictly it's not, it multiplies colors by alpha) and water surface. That's all.
So unless someone publishes a modding of the game built-in shader which is very complex and difficult, it is not possible to render anything else with transparency.
KILLERS EZ 2 PLAY 13 Feb, 2024 @ 2:54pm 
any way you can make a ghost faction type somehow with this? like ghosts you'd see on a rare occasion
Twomoon 28 Dec, 2023 @ 1:01pm 
very nice mod, especially the color hologram.

btw an UC samurai hologram would be cool too, and maybe a shek, or mad catlon etc :>
刘畅-x64 12 Dec, 2023 @ 4:27am 
Amazing this is absolutely mesmerizing.
F0X_H0UND 25 Oct, 2023 @ 5:55pm 
This somehow feels like it would fit nicely in the vanilla game. I'm not sure why, but it just 'feels' like it.
BattleMaster 24 Oct, 2023 @ 2:30am 
just need a all female version for my club palace
Saccharine 20 Oct, 2023 @ 3:31pm 
:2018bestaward: This is some amazing stuff, awesome, thank you for sharing