Skip to content

Commit 760ba43

Browse files
author
Chris Jakeman
committed
Removed option LODViewingExtention
1 parent db5e115 commit 760ba43

File tree

4 files changed

+23
-41
lines changed

4 files changed

+23
-41
lines changed

Source/Menu/Options.Designer.cs

Lines changed: 18 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Menu/Options.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ orderby folder.Key
320320
checkConditionalLoadOfNightTextures.Checked = Settings.ConditionalLoadOfDayOrNightTextures;
321321
checkSignalLightGlow.Checked = Settings.SignalLightGlow;
322322
checkCircularSpeedGauge.Checked = Settings.CircularSpeedGauge;
323-
checkLODViewingExtention.Checked = Settings.LODViewingExtention;
324323
checkPreferDDSTexture.Checked = Settings.PreferDDSTexture;
325324
checkUseLocationPassingPaths.Checked = Settings.UseLocationPassingPaths;
326325
checkUseMSTSEnv.Checked = Settings.UseMSTSEnv;
@@ -516,7 +515,6 @@ void buttonOK_Click(object sender, EventArgs e)
516515
Settings.ConditionalLoadOfDayOrNightTextures = checkConditionalLoadOfNightTextures.Checked;
517516
Settings.SignalLightGlow = checkSignalLightGlow.Checked;
518517
Settings.CircularSpeedGauge = checkCircularSpeedGauge.Checked;
519-
Settings.LODViewingExtention = checkLODViewingExtention.Checked;
520518
Settings.PreferDDSTexture = checkPreferDDSTexture.Checked;
521519
Settings.UseLocationPassingPaths = checkUseLocationPassingPaths.Checked;
522520
Settings.UseMSTSEnv = checkUseMSTSEnv.Checked;

Source/Menu/Options.resx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,4 @@
123123
<metadata name="bindingSourceContent.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124124
<value>114, 17</value>
125125
</metadata>
126-
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127-
<value>17, 17</value>
128-
</metadata>
129126
</root>

Source/RunActivity/Viewer3D/Shapes.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ public SharedStaticShapeInstance(Viewer viewer, string path, List<StaticShape> s
181181
// Object radius should extend from central location to the furthest instance location PLUS the actual object radius.
182182
ObjectRadius = shapes.Max(s => (Location.Location - s.Location.Location).Length()) + dlHighest.ViewSphereRadius;
183183

184-
// Object viewing distance is easy because it's based on the outside of the object radius.
185-
if (viewer.Settings.LODViewingExtention)
186-
ObjectViewingDistance = float.MaxValue;
187-
else
188-
ObjectViewingDistance = dlLowest.ViewingDistance;
184+
// Set to MaxValue so that an object never disappears.
185+
// Many MSTS objects had a LOD of 2km which is the maximum distance that MSTS can handle.
186+
// Open Rails can handle greater distances, so we override the lowest-detail LOD to make sure OR shows shapes further away than 2km.
187+
// See http://www.elvastower.com/forums/index.php?/topic/35301-menu-options/page__view__findpost__p__275531
188+
ObjectViewingDistance = float.MaxValue;
189189
}
190190

191191
// Create all the primitives for the shared shape.

0 commit comments

Comments
 (0)