diff --git a/Config/SceneCapture/translations.xml b/Config/SceneCapture/translations.xml index e409d2d..3de36ab 100644 --- a/Config/SceneCapture/translations.xml +++ b/Config/SceneCapture/translations.xml @@ -45,8 +45,8 @@ Downsample - FocusDistance - f Number + Focus Distance + f-Number Kernel Size Use Camera FOV Focal Length @@ -164,7 +164,7 @@ Blur Amount - DirectX11 Grain + DX11 Grain Monochrome Mode Intensity Multiplier @@ -190,7 +190,7 @@ Intensity Radius - blurIterations + Blur Iterations Blur Filter Distance Downsample @@ -273,6 +273,27 @@ Copy + + Type + Enable + Rotation X + Rotation Y + Rotation Z + Reset + Reset Pos + Intensity + Bounce Intensity + Range + Spotlight Angle + Area Width + Area Width + Color + Shadow Type + Shadow Strength + Shadow Bias + Shadow Normal Bias + + Face Teeth @@ -324,50 +345,305 @@ Add Light Model Light + Main Light Language - - Scan Line Jitter - Vertical Jump - Horizontal Shake - Color Drift + スキャンライン揺れ + 垂直ちらつき + 横揺れ + 色ずれ + + アンチエイリアス技法 + シャープ + 法線表示 + ブラー半径 + エッジシャープネス + エッジ敷居 + エッジ敷居最小限 + オフセットスケール + + + HDR + ブレンド + モード + 複合 + 強度 + 敷居 + ブラー反復回数 + ブラー拡散 + 敷居色 + レンズフレアモード + レンズフレア強度 + レンズフレア彩度 + レンズフレア敷居 + レンズフレア回転 + ブラー幅 + ハリウッドブラー張り幅 + ハリウッドブラー反復回数 + フレアー色A + フレアー色B + フレアー色C + フレアー色D + + + 反復回数 + サイズ + ダウンサンプリング + + + フォーカス距離 + F値 + カーネルサイズ + カメラ視野使用 + 焦点距離 + ビジュアライズ + + + 赤色ソース + 緑色ソース + 青色ソース + + + 詳細設定 + 彩度 + 赤色チャネル + 緑色チャネル + 青色チャネル + 赤色チャンネル深度 + 緑色チャンネル深度 + 青色チャンネル深度 + Zカーブ + 特定色補正 + + + 強度 + 敷居 + ブラー拡散 + + + 強度 + 柔らかさ + 拡散 + + + フォーカスビジュアライズ + 焦点距離 + 焦点サイズ + アパーチャー + DX11ブラー + ブラーサンプル数 + ブラーサイズ最大限 + 高解像度 + 近ブラー + フォアグラウンド重複 + Bokehスケール + Bokeh強度 + Bokeh敷居 + Spawn Heuristic + + + 強度 + + + + + + + + + マゼンタ + シアン + + + + モード + 感性法線 + エッジ指数 + 感性深度 + 輝度閾値 + サンプル距離 + エッジのみ + エッジのみ背景色 + + + + オフセットX + オフセットY + 回転 + スケール + バイリニアフィルタ無効 + + + 強度X + 強度Y + + + モード + グローバル濃度 + 高度 + 高度スケール + 開始距離 + + 高度スケール調整 + 開始距離調整 + + + 色合い + 距離 + ブースト + + + + 品質 + サムプル数 + 歪み + キュービック歪み + スケール + + + 縦横幅 + 縦横高さ + + + + 追加ブラー + ブラー量 + + + DX11グレイン + 白黒 + モード + 強度乗数 + 一般強度 + 黒強度 + 白強度 + ミッドグレー + 柔らかさ + 白黒タイリング + 赤色タイルイング + 緑色タイリング + 青色タイリング + + + 強度 + 半径 + サムプル数 + サンプル数値 + Downsample + オクル―ジョンソース + アンビエントのみ + + + 強度 + 半径 + ブラー反復回数 + ブラーフィルター距離 + ダウンサンプリング + + + 解像度 + ブレンド + デプステクスチャ使用 + + 半径最大限 + ブラー半径 + ラジアルブラー反復回数 + 光量 + スカイボックスアルファ使用 + + + 露光 + 赤色バランス + 緑色バランス + 青色バランス + + + + ブラー範囲 + ブラーサイズ最大限 + ダウンサンプリング + モード + 品質 + + + 強度 + ブラー + ブラー拡散/ + 詳細設定 + 色収差 + 輝度依存性 + 軸上収差 + ぶらー距離 + - Analog Glitch + アナロググリッチ アンチエイリアス ブルーム ブラー Bokeh - Channel Swap + チャンネルスワップ カラーカーブ コントラスト 輪郭強調 深度ブラー - Digital Glitch + デジタルグリッチ Dynamic Lookup 輪郭検出 - Feedback + フィードバック 魚眼レンズ フォグ グレースケール Hue Focus Lens Distortion Blur - Letterbox + レターボックス モーションブラー ノイズ Obscurance セピア SSAO サンシャフト - Technicolor + テクニカラー ティルトシフト 光学ブラー + + 移動 + 回転 + スケール + 移動リセット + 回転リセット + スケールリセット + 削除 + 複製 + + + + 種類 + 有効 + 回転X + 回転Y + 回転Z + リセット + 位地リセット + 光量 + 弾み強度 + 範囲 + スポットライト角度 + 地域の幅 + 地域の高さ + + 影種類 + 影の強さ + 影バイアス + 影法線バイアス + + @@ -406,13 +682,21 @@ - Focal Transform - Reload - Drag Source + フォーカス変換 + リロード + ドラッグソース エフェクト設定 環境設定 データ設定 + ロード + 削除 + 背景 + モデル追加 + ライト追加 + モデル 追加ライト + メインライト + 言語 diff --git a/ConstantValues.cs b/ConstantValues.cs index 7d1fe3d..2fd7e3f 100644 --- a/ConstantValues.cs +++ b/ConstantValues.cs @@ -173,12 +173,6 @@ public enum Scene /// ライト個数上限 public const int MaxLightCount = 10; - /// メインライト名称 - public const String MainLightName = "メインライト"; - - /// 追加ライト名称 - public const String AddLightName = "追加ライト"; - /// モーション一覧 public static Dictionary> MotionList = null; diff --git a/CustomControls.cs b/CustomControls.cs index 3afdccc..40254e6 100644 --- a/CustomControls.cs +++ b/CustomControls.cs @@ -1588,8 +1588,8 @@ override public void OnGUI() if(this.Text != string.Empty) { - curveRect = new Rect( this.Left, this.Top, this.Width, this.Height / 2 ); - Rect labelRect = new Rect( this.Left + this.Height, this.Top, this.Width - this.Height, this.Height ); + Rect labelRect = new Rect( this.Left, this.Top, this.Width, this.FixedFontSize * 2 ); + curveRect = new Rect( this.Left, this.Top + labelRect.height + ControlBase.FixedMargin, this.Width, this.Height - labelRect.height - ControlBase.FixedMargin ); GUI.Label( labelRect, this.Text, labelStyle ); } diff --git a/EffectPanes/ColorCorrectionCurvesPane.cs b/EffectPanes/ColorCorrectionCurvesPane.cs index 698d41a..c3b7b97 100644 --- a/EffectPanes/ColorCorrectionCurvesPane.cs +++ b/EffectPanes/ColorCorrectionCurvesPane.cs @@ -65,15 +65,15 @@ override public void ShowPane() GUIUtil.AddGUICheckbox(this, this.modeCheckbox); GUIUtil.AddGUISlider(this, this.saturationSlider); - GUIUtil.AddGUICheckbox(this, this.redChannelCurve); - GUIUtil.AddGUICheckbox(this, this.greenChannelCurve); - GUIUtil.AddGUICheckbox(this, this.blueChannelCurve); + GUIUtil.AddGUICurve(this, this.redChannelCurve); + GUIUtil.AddGUICurve(this, this.greenChannelCurve); + GUIUtil.AddGUICurve(this, this.blueChannelCurve); if( this.ModeValue == ColorCorrectionMode.Advanced ) { - GUIUtil.AddGUICheckbox(this, this.depthRedChannelCurve); - GUIUtil.AddGUICheckbox(this, this.depthGreenChannelCurve); - GUIUtil.AddGUICheckbox(this, this.depthBlueChannelCurve); - GUIUtil.AddGUICheckbox(this, this.zCurveCurve); + GUIUtil.AddGUICurve(this, this.depthRedChannelCurve); + GUIUtil.AddGUICurve(this, this.depthGreenChannelCurve); + GUIUtil.AddGUICurve(this, this.depthBlueChannelCurve); + GUIUtil.AddGUICurve(this, this.zCurveCurve); } GUIUtil.AddGUICheckbox(this, this.selectiveCcCheckbox); diff --git a/EnvWindow.cs b/EnvWindow.cs index a943c51..c298373 100644 --- a/EnvWindow.cs +++ b/EnvWindow.cs @@ -71,7 +71,7 @@ private void InitMainLight() if( GameMain.Instance.MainLight.GetComponent() != null ) { LightPane pane = new LightPane( this.FontSize, GameMain.Instance.MainLight.GetComponent() ); - pane.Text = ConstantValues.MainLightName; + pane.Text = Translation.GetText("UI", "mainLight"); this.ChildControls.Add( pane ); this.lightPanes.Add( pane ); } @@ -606,7 +606,7 @@ private void AddLight() private void ResetLightPane( ref LightPane pane ) { Light light; - if(pane.Text == ConstantValues.MainLightName) + if(pane.Text == Translation.GetText("UI", "mainLight")) light = GameMain.Instance.MainLight.GetComponent(); else light = this.addedLightInstance[ pane.Text ].GetComponent(); @@ -652,7 +652,7 @@ private void CheckForLightUpdates() light = GameMain.Instance.MainLight.GetComponent(); lightInfo.UpdateLight(light); LightPane pane = new LightPane( this.FontSize, light ); - pane.Text = ConstantValues.MainLightName; + pane.Text = Translation.GetText("UI", "mainLight"); this.ChildControls.Add( pane ); this.lightPanes.Add( pane ); @@ -717,7 +717,7 @@ public void ClearLights(bool clearMain) LightPane[] panes = this.lightPanes.ToArray(); foreach( LightPane pane in panes ) { - if( clearMain || pane.Text != ConstantValues.MainLightName ) + if( clearMain || pane.Text != Translation.GetText("UI", "mainLight") ) { pane.StopDrag(); this.ChildControls.Remove( pane ); diff --git a/GUIUtil.cs b/GUIUtil.cs index eab6324..7bac354 100644 --- a/GUIUtil.cs +++ b/GUIUtil.cs @@ -80,6 +80,18 @@ public static void AddGUICheckbox(ControlBase parent, ControlBase elem, ControlB elem.Visible = true; } + public static void AddGUICurve(ControlBase parent, ControlBase elem) + { + float lastSize = parent.LastElementSize; + elem.Left = parent.Left + ControlBase.FixedMargin; + elem.Top = lastSize + ControlBase.FixedMargin; + elem.Width = parent.Width - ControlBase.FixedMargin * 4; + elem.Height = ControlHeight(parent) * 4; + elem.FontSize = parent.FontSize; + elem.OnGUI(); + elem.Visible = true; + } + public static void AddGUISlider(ControlBase parent, ControlBase elem) { float lastSize = parent.LastElementSize; diff --git a/LightPane.cs b/LightPane.cs index 862e648..c2d8332 100644 --- a/LightPane.cs +++ b/LightPane.cs @@ -47,123 +47,123 @@ override public void Awake() this.lightTypeComboBox = new CustomComboBox( ConstantValues.Light ); this.lightTypeComboBox.FontSize = this.FontSize; - this.lightTypeComboBox.Text = "Type"; + this.lightTypeComboBox.Text = Translation.GetText("Light", "lightType"); this.lightTypeComboBox.SelectedIndex = (int)this.light.type; this.lightTypeComboBox.SelectedIndexChanged += this.SwitchLightType; this.ChildControls.Add( this.lightTypeComboBox ); this.lightEnableToggle = new CustomToggleButton( this.light.enabled ); this.lightEnableToggle.FontSize = this.FontSize; - this.lightEnableToggle.Text = "Enable"; + this.lightEnableToggle.Text = Translation.GetText("Light", "lightEnable"); this.lightEnableToggle.CheckedChanged += this.ToggleLight; this.ChildControls.Add( this.lightEnableToggle ); this.lightDragToggle = new CustomToggleButton( false ); this.lightDragToggle.FontSize = this.FontSize; - this.lightDragToggle.Text = "DragSource"; + this.lightDragToggle.Text = Translation.GetText("UI", "dragSource"); this.lightDragToggle.CheckedChanged += this.DragLight; this.ChildControls.Add( this.lightDragToggle ); this.lightRotationXSlider = new CustomSlider( this.light.transform.eulerAngles.x, 0f, 360f, 4 ); this.lightRotationXSlider.FontSize = this.FontSize; - this.lightRotationXSlider.Text = "Rotation X"; + this.lightRotationXSlider.Text = Translation.GetText("Light", "lightRotationX"); this.lightRotationXSlider.ValueChanged += this.RotateLight; this.ChildControls.Add( this.lightRotationXSlider ); this.lightRotationYSlider = new CustomSlider( this.light.transform.eulerAngles.y, 0f, 360f, 4 ); this.lightRotationYSlider.FontSize = this.FontSize; this.lightRotationYSlider.ValueChanged += this.RotateLight; - this.lightRotationYSlider.Text = "Rotation Y"; + this.lightRotationYSlider.Text = Translation.GetText("Light", "lightRotationY"); this.ChildControls.Add( this.lightRotationYSlider ); this.lightRotationZSlider = new CustomSlider( this.light.transform.eulerAngles.z, 0f, 360f, 4 ); this.lightRotationZSlider.ValueChanged += this.RotateLight; this.lightRotationZSlider.FontSize = this.FontSize; - this.lightRotationZSlider.Text = "Rotation Z"; + this.lightRotationZSlider.Text = Translation.GetText("Light", "lightRotationZ"); this.ChildControls.Add( this.lightRotationZSlider ); this.lightResetButton = new CustomButton(); this.lightResetButton.FontSize = this.FontSize; - this.lightResetButton.Text = "Reset"; + this.lightResetButton.Text = Translation.GetText("Light", "lightReset"); this.lightResetButton.Click += this.ResetLight; this.ChildControls.Add( this.lightResetButton ); this.lightResetPosButton = new CustomButton(); this.lightResetPosButton.FontSize = this.FontSize; - this.lightResetPosButton.Text = "Reset Pos"; + this.lightResetPosButton.Text = Translation.GetText("Light", "lightResetPos"); this.lightResetPosButton.Click += this.ResetLightPos; this.ChildControls.Add( this.lightResetPosButton ); this.lightDeleteButton = new CustomButton(); this.lightDeleteButton.FontSize = this.FontSize; - this.lightDeleteButton.Text = "Delete"; + this.lightDeleteButton.Text = Translation.GetText("UI", "delete"); this.lightDeleteButton.Click += this.DeleteLight; this.ChildControls.Add( this.lightDeleteButton ); this.lightIntensitySlider = new CustomSlider( this.light.intensity, 0, 3f, 2 ); this.lightIntensitySlider.FontSize = this.FontSize; - this.lightIntensitySlider.Text = "Intensity"; + this.lightIntensitySlider.Text = Translation.GetText("Light", "lightIntensity"); this.lightIntensitySlider.ValueChanged += this.ChangeIntensity; this.ChildControls.Add( this.lightIntensitySlider ); this.lightBounceIntensitySlider = new CustomSlider( this.light.bounceIntensity, 0, 8f, 2 ); this.lightBounceIntensitySlider.FontSize = this.FontSize; - this.lightBounceIntensitySlider.Text = "Bounce Intensity"; + this.lightBounceIntensitySlider.Text = Translation.GetText("Light", "lightBounceIntensity"); this.lightBounceIntensitySlider.ValueChanged += this.ChangeIntensity; this.ChildControls.Add( this.lightBounceIntensitySlider ); this.lightRangeSlider = new CustomSlider( this.light.range, 0, 200f, 1 ); this.lightRangeSlider.FontSize = this.FontSize; - this.lightRangeSlider.Text = "Range"; + this.lightRangeSlider.Text = Translation.GetText("Light", "lightRange"); this.lightRangeSlider.ValueChanged += this.ChangeRange; this.ChildControls.Add( this.lightRangeSlider ); this.spotLightAngleSlider = new CustomSlider( this.light.spotAngle, 0, 360f, 1 ); this.spotLightAngleSlider.FontSize = this.FontSize; - this.spotLightAngleSlider.Text = "Spotlight Angle"; + this.spotLightAngleSlider.Text = Translation.GetText("Light", "spotLightAngle"); this.spotLightAngleSlider.ValueChanged += this.ChangeSpotAngle; this.ChildControls.Add( this.spotLightAngleSlider ); this.areaLightWidthSlider = new CustomSlider( 0, 0, 50f, 1 ); this.areaLightWidthSlider.FontSize = this.FontSize; - this.areaLightWidthSlider.Text = "Area Width"; + this.areaLightWidthSlider.Text = Translation.GetText("Light", "areaLightWidth"); this.areaLightWidthSlider.ValueChanged += this.ChangeAreaSize; this.ChildControls.Add( this.areaLightWidthSlider ); this.areaLightHeightSlider = new CustomSlider( 0, 0, 50f, 1 ); this.areaLightHeightSlider.FontSize = this.FontSize; - this.areaLightHeightSlider.Text = "Area Height"; + this.areaLightHeightSlider.Text = Translation.GetText("Light", "areaLightHeight"); this.areaLightHeightSlider.ValueChanged += this.ChangeAreaSize; this.ChildControls.Add( this.areaLightHeightSlider ); this.lightColorPicker = new CustomColorPicker( this.light.color ); this.lightColorPicker.FontSize = this.FontSize; - this.lightColorPicker.Text = "Color"; + this.lightColorPicker.Text = Translation.GetText("Light", "lightColor"); this.lightColorPicker.ColorChanged = this.ChangeColor; this.lightColorPicker.IsRGBA = false; this.ChildControls.Add( this.lightColorPicker ); this.shadowStrengthSlider = new CustomSlider( this.light.shadowStrength, 0, 1f, 1 ); this.shadowStrengthSlider.FontSize = this.FontSize; - this.shadowStrengthSlider.Text = "Shadow Strength"; + this.shadowStrengthSlider.Text = Translation.GetText("Light", "shadowStrength"); this.shadowStrengthSlider.ValueChanged += this.ChangeShadowStrength; this.ChildControls.Add( this.shadowStrengthSlider ); this.shadowsBox = new CustomComboBox( LIGHT_SHADOWS ); - this.shadowsBox.Text = "Shadow Type"; + this.shadowsBox.Text = Translation.GetText("Light", "shadows"); this.shadowsBox.SelectedIndex = (int)this.light.shadows; this.shadowsBox.SelectedIndexChanged += this.ChangeShadowType; this.ChildControls.Add( this.shadowsBox ); this.shadowBiasSlider = new CustomSlider( this.light.shadowBias, 0, 2f, 1 ); this.shadowBiasSlider.FontSize = this.FontSize; - this.shadowBiasSlider.Text = "Shadow Bias"; + this.shadowBiasSlider.Text = Translation.GetText("Light", "shadowBias"); this.shadowBiasSlider.ValueChanged += this.ChangeShadowBias; this.ChildControls.Add( this.shadowBiasSlider ); this.shadowNormalBiasSlider = new CustomSlider( this.light.shadowNormalBias, 0, 3f, 1 ); this.shadowNormalBiasSlider.FontSize = this.FontSize; - this.shadowNormalBiasSlider.Text = "Shadow NormalBias"; + this.shadowNormalBiasSlider.Text = Translation.GetText("Light", "shadowNormalBias"); this.shadowNormalBiasSlider.ValueChanged += this.ChangeShadowNormalBias; this.ChildControls.Add( this.shadowNormalBiasSlider ); } @@ -193,7 +193,7 @@ override public void OnGUI() GUIUtil.AddGUICheckbox(this, this.lightTypeComboBox ); - int buttonCount = this.Text != ConstantValues.MainLightName ? 5 : 3; + int buttonCount = this.Text != Translation.GetText("UI", "mainLight") ? 5 : 3; GUIUtil.AddGUIButtonAfter(this, this.lightResetButton, this.lightTypeComboBox, buttonCount ); this.lightResetButton.Height = this.ControlHeight; @@ -201,7 +201,7 @@ override public void OnGUI() GUIUtil.AddGUIButton(this, this.lightResetPosButton, this.lightResetButton, buttonCount ); GUIUtil.AddGUIButton(this, this.lightDragToggle, this.lightResetPosButton, buttonCount ); - if( this.Text != ConstantValues.MainLightName ) + if( this.Text != Translation.GetText("UI", "mainLight") ) { GUIUtil.AddGUIButton(this, this.lightEnableToggle, this.lightDragToggle, buttonCount ); GUIUtil.AddGUIButton(this, this.lightDeleteButton, this.lightEnableToggle, buttonCount ); diff --git a/Translation.cs b/Translation.cs index ae41bbc..bf2c4ce 100644 --- a/Translation.cs +++ b/Translation.cs @@ -56,7 +56,6 @@ public static void Initialize( string language ) } } string translationLanguage = translation.Attribute("language").Value.ToString(); - Debug.Log("LANG " + translationLanguage); translations[ translationLanguage ] = dict; IEnumerator enumerator = translations.Keys.GetEnumerator();