setTerrainGrid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
(46 intermediate revisions by 18 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#S|COMREF]]
{{Command|Comments=
____________________________________________________________________________________________


<h2 style="color:#000066">'''setTerrainGrid ''grid'''''</h2>
| ofpr |Game name=


|1.75|Game version=


'''Operand types:'''
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________


'''grid:''' [[Number]]
| Sets the desired [[getTerrainGrid | terrain resolution]] (in meters). For default landscapes the supported resolutions are:


'''Type of returned value:'''
* '''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.
|DESCRIPTION=
____________________________________________________________________________________________
 
| '''setTerrainGrid''' grid |SYNTAX=
 
|p1= grid: [[Number]] |PARAMETER1=
 
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>[[setTerrainGrid]] 12.5;</code> |EXAMPLE1=
____________________________________________________________________________________________
 
| [[getTerrainGrid]], [[setViewDistance]], [[viewDistance]], [[setDetailMapBlendPars]], [[getObjectViewDistance]], [[setObjectViewDistance]] |SEEALSO=
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on August 4, 2006 - 12:02
<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
setTerrainGrid 3.125 <nowiki>=</nowiki> highest detail It is similar to the command [[setViewDistance]].
 
 
<dd class="notedate">Posted on August 18, 2007 - 9:46
<dt class="note">[[User:WGL.Q|WGL.Q]]<dd class="note">''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!


[[Nothing]]
[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


'''Compatibility:'''


Added in version '''1.75'''


'''Description:'''
<dd class="notedate">Posted on December 15, 2019 - 5:50
<dt class="note">[[User:Rommel]]<dd class="note">''ArmA2 Supported Reso:''


Set desired terrain resolution (in meters).
In ArmA2 you are not stuck to 50, 25, 12 etc. 45 is a lower setting then 25!


For default landscapes, supported resolutions are:
<dd class="notedate">Posted on March 13, 2013 - 17:05
<dt class="note">[[User:GalZohar|GalZohar]]<dd class="note">''Arma 3 Multiplayer default:''


* '''25''' - smoothest, less lag
Some testing indicates that the default value for Arma 3 multiplayer is 10 - just like before. 10 is between "Normal" and "High".
* '''12.5'''
* '''6.25'''
* '''3.125''' - bumpiest, higher lag


An user's terrain detail setting is ignored in multiplayer just like in ArmA 2.


If you select unsupported resolutions, nearest supported value is used instead.




'''Example:'''


'''setTerrainGrid''' 12.5


<!-- Note Section END -->
</dl>


'''Comments:'''
<h3 style="display:none">Bottom Section</h3>


This is like opening up your video preferences and changing "terrain detail", i.e.:


'''setTerrainGrid''' 25 = lowest detail<br>
[[Category:Scripting Commands|SETTERRAINGRID]]
'''setTerrainGrid''' 3.125 = highest detail
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETTERRAINGRID]]
[[Category:Scripting Commands Armed Assault|SETTERRAINGRID]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]


It is similar to the command [[setViewDistance]].
<!-- 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>
Standard = 25<br>
High = 12.5<br>
Very High = 6.25<br>
Ultra = 3.125
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 20:43, 3 June 2020

Hover & click on the images for description

Description

Description:
Sets the desired terrain resolution (in meters). 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.
Groups:
Uncategorised

Syntax

Syntax:
setTerrainGrid grid
Parameters:
grid: Number
Return Value:
Nothing

Examples

Example 1:
setTerrainGrid 12.5;

Additional Information

See also:
getTerrainGridsetViewDistanceviewDistancesetDetailMapBlendParsgetObjectViewDistancesetObjectViewDistance

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

Notes

Posted on August 4, 2006 - 12:02
hardrock
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.
Posted on August 18, 2007 - 9:46
WGL.Q
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
Posted on December 15, 2019 - 5:50
User:Rommel
ArmA2 Supported Reso: In ArmA2 you are not stuck to 50, 25, 12 etc. 45 is a lower setting then 25!
Posted on March 13, 2013 - 17:05
GalZohar
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.

Bottom Section

Posted on November 19, 2014 - 17:44 (UTC)
MrPineapple
TerrainGrid values for Arma 3 1.34:
Low = 50 (NoGrass)
Standard = 25
High = 12.5
Very High = 6.25
Ultra = 3.125