Skip to content

7_6_TimeOfNight

gaj_cg edited this page Sep 13, 2021 · 2 revisions

7.スカイボックス

7-6.Time of night

夜空用のスカイボックス。ミルキーウェイ(天の川)有り無しが用意されています。

Time of night Time of night without milkway
7_5_TimeOfNight 7_5_TimeOfNight_without_milkway

ファイル一覧

「Main」タブは表示用、「EnvLightMap」タブはライティング用、「FogMap」タブはフォグ用。

ファイル名 設定先タブ 説明
LICENSE.txt ―― ライセンスの書かれたファイル(CC BY-NC-SA 3.0)
README.png ―― fxファイルの設定先が記載されてる画像
Time of fog.fx FogMap フォグ用
Time of lighting.fx EnvLightMap ライティング用
Time of night without milkway.fx Main 表示用(天の川無し版)
Time of night.conf ―― 設定ファイル
Time of night.fx Main 表示用
Time of night.pmx ―― スカイボックスのモデル兼コントローラー

使い方

  1. Time of night.pmxをMMDに追加します。
    「Main」タブにはTime of night.fx、「MaterialMap」にはMaterials\material_2.0.fxが割り当てられます。
    天の川無し版を使う時は、「Main」タブにTime of night without milkway.fxを割り当てます。
  2. 「MaterialMap」に Materials\material_skybox.fx を割り当てます。
  3. MMDの「モデル描画順」で一番上に。
    (これはスカイボックス共通の操作)
  4. Time of lighting.fxを「EnvLightMap」に割り当てます。
  5. 必要があればフォグ用のfxファイルを「FogMap」タブに割り当てられます。(必要なければ割り当ては不要です)
  6. コントローラーで各種調整をします。

コントローラの説明

表情操作パネル 左上

月と大気の設定。

  • SunRadius+ / SunRadius-
    月の大きさ(半径)を増減

    SunRadius+ SunRadius ±0 SunRadius-
    7_5_SunRadius_1 7_5_TimeOfNight 7_5_SunRadius_2
  • SunRadiance+ / SunRadiance-
    月のの輝きを増減

    SunRadiance+ SunRadiance ±0 SunRadiance-
    7_5_SunRadiance_1 7_5_TimeOfNight 7_5_SunRadiance_2
  • MiePhase+ / MiePhase-

    MiePhase+ MiePhase ±0 MiePhase-
    7_5_MiePhase_1 7_5_TimeOfNight 7_5_MiePhase_2
  • MieTurbidity+ / MieTurbidity-

    MieTurbidity+ MieTurbidity ±0 MieTurbidity-
    7_5_MieTurbidity_1 7_5_TimeOfNight 7_5_MieTurbidity_2
  • RayleighHeight+ / RayleighHeight-
    レイリー散乱が起こる大気の高さ
    デフォルトは3kn、最大12km、最小0.00001km(=1cm)

    RayleighHeight+ RayleighHeight ±0 RayleighHeight-
    7_5_RayleighHeight_1 7_5_TimeOfNight 7_5_RayleighHeight_2
  • RayleighColorH+ / RayleighColorS+ / RayleighColorV+ / RayleighColorV-
    レイリー散乱の色の調整。空の色を調整します。

    RayleighColorS ±0 RayleighColorS+
    7_5_TimeOfNight 7_5_RayleighColorS_1

表情操作パネル 右上

環境光の設定

名称 機能
EnvDiffLight+
EnvDiffLight-
アルベドに対して影響を及ぼす光の強さ
EnvSpecLight+
EnvSpecLight-
スペキュラに対して影響を及ぼす光の強さ
EnvSSSLight+
EnvSSSLight-
サブサーフェスに対して影響を及ぼす光の強さ

※ 効果は 7_2_Helipad_GoldenHour の同名モーフを参照のこと。

表情操作パネル 左下

フォグ関連の設定(フォグ用のfxを割り当てていないと効果はありません)
スカイボックスにはフォグは描画されません。
※ 画像は Time of fog.fx を「FogMap」タブに割り当てています。

  • FogRange+ / FogRange-
    フォグの範囲

    FogRange+ FogRange ±0 FogRange-
    7_5_FogRange_1 7_5_TimeOfNight_with_fog 7_5_FogRange_2
  • FogDensity+ / FogDensity-
    フォグ密度

    FogDensity+ FogDensity ±0 FogDensity-
    7_5_FogDensity_1 7_5_TimeOfNight_with_fog 7_5_FogDensity_2

表情操作パネル 右下

星と流星の設定

  • StarSaturation+ / StarSaturation-
    星の彩度

    StarSaturation+ StarSaturation ±0 StarSaturation-
    7_5_StarSaturation_1 7_5_TimeOfNight_without_milkway 7_5_StarSaturation_2
  • StarBrightness+ / StarBrightness-
    星の明るさ

    StarBrightness+ StarBrightness ±0 StarBrightness-
    7_5_StarBrightness_1 7_5_TimeOfNight_without_milkway 7_5_StarBrightness_2
  • Meteor+ / Meteor-
    流星の明るさ

    Meteor+ Meteor ±0 Meteor-
    7_5_Meteor_1 7_5_TimeOfNight_without_milkway 7_5_Meteor_2

Time of night.confの説明

コントローラーで調整するパラメータの多くはこのファイルで設定されています。

R = default value,G = min value for silder bar,B = max value for silder bar

設定 対応モーフ 説明
static const float3 mSunRadiusParams = float3(1, 0.0, 10); SunRadius+
SunRadius-
Sun Radius
static const float3 mSunRadianceParams = float3(5, 1.0, 10.0); SunRadiance+
SunRadiance-
Sun light power, 10.0 is normal
static const float3 mMiePhaseParams = float3(0.76, 0.65, 1.0); MiePhase+
MiePhase-
Defines sun light concentration
static const float3 mMieTurbidityParams = float3(200, 1e-5, 500); MieTurbidity+
MieTurbidity-
Defines sun light turbidity
static const float3 mMieHeightTopParams = float3(1.2, 1e-5, 2.4); (MieHeight+
MieHeight-)
Mie scattering with its water particles up to 1.2km, 1.2km is standard
static const float3 mRayleighHeightTopParams = float3(3.0, 1e-5, 12.0); RayleighHeight+
RayleighHeight-
Rayleigh scattering with its atmosphereic up to 8.0km, 8.0km is standard
static const float3 mFogRangeParams = float3(2, 1e-5, 10.0); FogRange+
FogRange-
Fog range
static const float3 mFogDensityParams = float3(100, 0.1, 5000.0); FogDensity+
FogDensity-
Fog density
static const float3 mStarSaturationParams = float3(0.3, 0.0, 1.0); StarSaturation+
StarSaturation-
Star Saturation
static const float3 mStarBrightnessParams = float3(2, 0, 5.0); StarBrightness+
StarBrightness-
Star Brightness
static const float3 mMeteorParams = float3(1, 0, 2.0); Meteor+
Meteor-
Meteor
static float3 mWaveLength = float3(690e-9,650e-9,575e-9); ―― earth lambda

フォグ用fxファイル

Time of day と違いパラメータ設定はありません。


Model : Hatsune Miku V4X Model by Digitrevx / モブ港ステージセット by Tansoku102cm

Clone this wiki locally