Use osgUtil::Simplifier to simplify terrain.
This commit is contained in:
parent
3b9b9988ad
commit
50a202a997
2 changed files with 43 additions and 3 deletions
|
@ -363,6 +363,37 @@
|
||||||
</enable>
|
</enable>
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
|
<checkbox>
|
||||||
|
<row>5</row>
|
||||||
|
<col>0</col>
|
||||||
|
<colspan>3</colspan>
|
||||||
|
<halign>left</halign>
|
||||||
|
<label>Simplify far terrain (increases scenery load times)</label>
|
||||||
|
<name>simplify-far</name>
|
||||||
|
<property>/sim/rendering/terrain/simplifier/enabled-far</property>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-apply</command>
|
||||||
|
<object-name>simplify-far</object-name>
|
||||||
|
</binding>
|
||||||
|
</checkbox>
|
||||||
|
|
||||||
|
<checkbox>
|
||||||
|
<row>6</row>
|
||||||
|
<col>0</col>
|
||||||
|
<colspan>3</colspan>
|
||||||
|
<halign>left</halign>
|
||||||
|
<label>Simplify all terrain (increases scenery load times)</label>
|
||||||
|
<name>simplify-near</name>
|
||||||
|
<property>/sim/rendering/terrain/simplifier/enabled-near</property>
|
||||||
|
<enable>
|
||||||
|
<property>/sim/rendering/terrain/simplifier/enabled-far</property>
|
||||||
|
</enable>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-apply</command>
|
||||||
|
<object-name>simplify-near</object-name>
|
||||||
|
</binding>
|
||||||
|
</checkbox>
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<button>
|
<button>
|
||||||
|
|
|
@ -261,7 +261,16 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
</osg-displaysettings>
|
</osg-displaysettings>
|
||||||
<osg-notify-level type="string" userarchive="y">warn</osg-notify-level>
|
<osg-notify-level type="string" userarchive="y">warn</osg-notify-level>
|
||||||
<cache type="bool">true</cache>
|
<cache type="bool">true</cache>
|
||||||
<use-vbos type="bool">false</use-vbos>
|
<use-vbos type="bool">false</use-vbos>
|
||||||
|
<terrain>
|
||||||
|
<simplifier>
|
||||||
|
<enabled-near type="bool">false</enabled-near>
|
||||||
|
<enabled-far type="bool">false</enabled-far>
|
||||||
|
<ratio type="double">0.01</ratio>
|
||||||
|
<max-error type="double">3000.0</max-error>
|
||||||
|
<max-length type="double">1000.0</max-length>
|
||||||
|
</simplifier>
|
||||||
|
</terrain>
|
||||||
</rendering>
|
</rendering>
|
||||||
<model-hz type="int">120</model-hz>
|
<model-hz type="int">120</model-hz>
|
||||||
<navdb>
|
<navdb>
|
||||||
|
|
Loading…
Reference in a new issue