setTerrainGrid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "GalZohar" to "Galzohar")
 
(60 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofpr |= Game name
|game1= ofp
|version1= 1.75


|1.75|= Game version
|game2= ofpe
|version2= 1.00


|eff= local |Multiplayer Effects=
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| [[Operation Flashpoint]], [[VBS1]]: Set desired terrain resolution (in meters).  
|game4= arma2
For default landscapes, supported resolutions are:
|version4= 1.00
* '''50''' - smoothest, less lag
 
* '''25''' - default in multiplayer
|game5= arma2oa
* '''12.5''' - default in singleplayer
|version5= 1.50
* '''6.25'''
 
* '''3.125''' - bumpiest, higher lag
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50


If you select unsupported resolutions, nearest supported value is used instead.
|eff= local


[[Armed Assault]], [[VBS2]]: Terrain resolution is fixed, determined by the world created. This function controls terrain LOD instead (the distance in which the terrain mesh resolution starts to degrade). Higher number means less vertices are used for terrain rendering, making distant hills less smooth. Value 12.5 corresponds to selecting Terrain Detail Normal in Video options, 50 to Very Low, 3.125 to Very High.
|gr1= System
|DESCRIPTION=
____________________________________________________________________________________________


| '''setTerrainGrid''' grid |SYNTAX=
|gr2= Environment


|p1= grid: [[Number]] |PARAMETER1=
|descr= Sets the desired [[getTerrainGrid | terrain resolution]] in meters.


| [[Nothing]] |RETURNVALUE=
|s1= [[setTerrainGrid]] grid
____________________________________________________________________________________________
 
|x1= <pre>setTerrainGrid 12.5</pre> |EXAMPLE1=
____________________________________________________________________________________________


| [[setViewDistance]], [[viewDistance]], [[setDetailMapBlendPars]], [[getObjectViewDistance]], [[setObjectViewDistance]], [[getTerrainGrid]] |SEEALSO=
|p1= grid: [[Number]] - for default landscapes the supported resolutions are:


}}
* '''50''' - smoothest, less lag
* '''25''' - default in multiplayer
* '''12.5''' - default in single player
* '''6.25'''
* '''3.125''' - bumpiest, higher lag
{{Feature|informative|If unsupported resolution is selected, the nearest supported resolution is used instead. Higher number means less vertices are used for terrain rendering, making distant hills less smooth. Value 12.5 corresponds to selecting Terrain Detail Normal in Video options, 50 to Very Low, 3.125 to Very High. In older games like [[:Category:ArmA: Armed Assault|{{arma1}}]] terrain resolution is fixed, determined by the world created.}}


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 4, 2006 - 12:02
|x1= <sqf>setTerrainGrid 12.5;</sqf>
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''Notes from before the conversion:''


This is like opening up your video preferences and changing "terrain detail", i.e.: setTerrainGrid 50 <nowiki>=</nowiki> lowest detail
|seealso= [[getTerrainGrid]] [[setViewDistance]] [[viewDistance]] [[setDetailMapBlendPars]] [[getObjectViewDistance]] [[setObjectViewDistance]]
setTerrainGrid 3.125 <nowiki>=</nowiki> highest detail It is similar to the command [[setViewDistance]].
}}


{{Note
|user= Hardrock
|timestamp= 20060804120200
|text= ''Notes from before the conversion:''


<dd class="notedate">Posted on August 18, 2007 - 9:46
This is like opening up your video preferences and changing "terrain detail", i.e.: setTerrainGrid 50 = lowest detail
<dt class="note">'''[[User:WGL.Q|WGL.Q]]'''<dd class="note">''Effects on grass:''
setTerrainGrid 3.125 = highest detail It is similar to the command [[setViewDistance]].
}}


{{Note
|user= WGL.Q
|timestamp= 20070818094600
|text= ''Effects on grass:''
* 50: disables/removes grass altogether.
* 50: disables/removes grass altogether.
* 25: grass is visible.
* 25: grass is visible.
* Lower values make grass drawn a bit further at distance. However the effect is decreasing rapidly: Grass radius of 25 is 100%. 12.5 is now like 100% + 20%,  6.25 is like 100% + 20% + 5% and 3.125 is  100% + 20% + 5% + 1%. Note these are estimates!
* Lower values make grass drawn a bit further at distance. However the effect is decreasing rapidly: Grass radius of 25 is 100%. 12.5 is now like 100% + 20%,  6.25 is like 100% + 20% + 5% and 3.125 is  100% + 20% + 5% + 1%. Note these are estimates!


[http://ofpc.de/wargames//files/arma/biki/Test_VD_TD.Sara.rar Demo Mission Test_VD_TD.Sara.rar]: ViewDistance and TerrainGrid can be changed via RadioTriggers
{{Link|http://ofpc.de/wargames//files/arma/biki/Test_VD_TD.Sara.rar|Demo Mission Test_VD_TD.Sara.rar}}: ViewDistance and TerrainGrid can be changed via RadioTriggers
}}


{{Note
|user= Rommel
|timestamp= 20191215055000
|text= ''{{arma2}} Supported Reso:''


In {{arma2}} you are not stuck to 50, 25, 12 etc. 45 is a lower setting than 25!
}}


<dd class="notedate">Posted on December 15, 2019 - 5:50
{{Note
<dt class="note">'''[[User:Rommel]]'''<dd class="note">''ArmA2 Supported Reso:''
|user= Galzohar
|timestamp= 20130313170500
|text= ''Arma 3 Multiplayer default:''


In ArmA2 you are not stuck to 50, 25, 12 etc. 45 is a lower setting then 25!
Some testing indicates that the default value for {{arma3}} multiplayer is 10 - just like before. 10 is between "Normal" and "High".


<dd class="notedate">Posted on March 13, 2013 - 17:05
An user's terrain detail setting is ignored in multiplayer just like in {{arma2}}.
<dt class="note">'''[[User:GalZohar|GalZohar]]'''<dd class="note">''ArmA 3 Multiplayer default:''
}}
 
Some testing indicates that the default value for Arma 3 multiplayer is 10 - just like before. 10 is between "Normal" and "High".
 
An user's terrain detail setting is ignored in multiplayer just like in ArmA 2.
 
 
 
 
 
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
{{Note
 
|user= MrPineapple
 
|timestamp= 20141119174400
[[Category:Scripting Commands|SETTERRAINGRID]]
|text= '''TerrainGrid values for {{arma3}} 1.34:'''<br>
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETTERRAINGRID]]
[[Category:Scripting Commands ArmA|SETTERRAINGRID]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on November 19, 2014 - 17:44 (UTC)</dd>
<dt class="note">[[User:MrPineapple|MrPineapple]]</dt>
<dd class="note">
'''TerrainGrid values for Arma 3  1.34:'''<br>
Low = 50 (NoGrass)<br>
Low = 50 (NoGrass)<br>
Standard = 25<br>
Standard = 25<br>
Line 100: Line 95:
Very High = 6.25<br>
Very High = 6.25<br>
Ultra = 3.125
Ultra = 3.125
</dd>
}}
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 12:49, 30 May 2024

Hover & click on the images for description

Description

Description:
Sets the desired terrain resolution in meters.
Groups:
SystemEnvironment

Syntax

Syntax:
setTerrainGrid grid
Parameters:
grid: Number - for default landscapes the supported resolutions are:
  • 50 - smoothest, less lag
  • 25 - default in multiplayer
  • 12.5 - default in single player
  • 6.25
  • 3.125 - bumpiest, higher lag
If unsupported resolution is selected, the nearest supported resolution is used instead. Higher number means less vertices are used for terrain rendering, making distant hills less smooth. Value 12.5 corresponds to selecting Terrain Detail Normal in Video options, 50 to Very Low, 3.125 to Very High. In older games like Armed Assault terrain resolution is fixed, determined by the world created.
Return Value:
Nothing

Examples

Example 1:
setTerrainGrid 12.5;

Additional Information

See also:
getTerrainGrid setViewDistance viewDistance setDetailMapBlendPars getObjectViewDistance setObjectViewDistance

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Hardrock - c
Posted on Aug 04, 2006 - 12:02 (UTC)
Notes from before the conversion: This is like opening up your video preferences and changing "terrain detail", i.e.: setTerrainGrid 50 = lowest detail setTerrainGrid 3.125 = highest detail It is similar to the command setViewDistance.
WGL.Q - c
Posted on Aug 18, 2007 - 09:46 (UTC)
Effects on grass:
  • 50: disables/removes grass altogether.
  • 25: grass is visible.
  • Lower values make grass drawn a bit further at distance. However the effect is decreasing rapidly: Grass radius of 25 is 100%. 12.5 is now like 100% + 20%, 6.25 is like 100% + 20% + 5% and 3.125 is 100% + 20% + 5% + 1%. Note these are estimates!
Demo Mission Test_VD_TD.Sara.rar: ViewDistance and TerrainGrid can be changed via RadioTriggers
Rommel - c
Posted on Dec 15, 2019 - 05:50 (UTC)
Arma 2 Supported Reso: In Arma 2 you are not stuck to 50, 25, 12 etc. 45 is a lower setting than 25!
Galzohar - c
Posted on Mar 13, 2013 - 17:05 (UTC)
Arma 3 Multiplayer default: Some testing indicates that the default value for Arma 3 multiplayer is 10 - just like before. 10 is between "Normal" and "High". An user's terrain detail setting is ignored in multiplayer just like in Arma 2.
MrPineapple - c
Posted on Nov 19, 2014 - 17:44 (UTC)
TerrainGrid values for Arma 3 1.34:
Low = 50 (NoGrass)
Standard = 25
High = 12.5
Very High = 6.25
Ultra = 3.125