setDetailMapBlendPars: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
m (Replaced <code> with <sqf>)
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.02


|1.02|= Game version
|eff= local
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________


| Sets the detail texture map blend pars. Allows for smooth transition between detailed and undetailed terrain texture at distance. If noDetail &gt; fullDetail, the texture detail will incur smooth transition in the area between the thresholds. If noDetail &lt;<nowiki>=</nowiki> fullDetail there will be obvious visible edge between texture detail changes at fullDetail distance.  |DESCRIPTION=
|gr1= System
____________________________________________________________________________________________


| '''setDetailMapBlendPars''' [fullDetail, noDetail] |SYNTAX=
|descr= Sets the detail texture map blend pars. Allows for smooth transition between detailed and undetailed terrain texture at distance.
* If ''noDetail'' &gt; ''fullDetail'', the texture detail will incur smooth transition in the area between the thresholds.
* If ''noDetail'' &lt;= ''fullDetail'', there will be obvious visible edge between texture detail changes at ''fullDetail'' distance.


|p1= [fullDetail, noDetail]: [[Array]]  |PARAMETER1=
|s1= [[setDetailMapBlendPars]] [fullDetail, noDetail]


|p2= fullDetail: [[Number]] - threshold distance in metres up to which the terrain will have full texture detail |PARAMETER2=
|p1= fullDetail: [[Number]] - threshold distance in metres up to which the terrain will have full texture detail


|p3= noDetail: [[Number]] - threshold distance in metres after which the texture detail will be switched off |PARAMETER3=
|p2= noDetail: [[Number]] - threshold distance in metres after which the texture detail will be switched off


| [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]


|x1= <sqf>setDetailMapBlendPars [20, 50];</sqf>


|x1= <code>[[setDetailMapBlendPars]] [20, 50];</code>|EXAMPLE1=
|x2= <sqf>setDetailMapBlendPars ([[20, 50], [300, 600]] select (currentWeapon player in ["Binocular", "Rangefinder", "Laserdesignator"]));</sqf>
|x2= <code>[[setDetailMapBlendPars]] ([[if]] ([[currentWeapon]] [[player]] [[in]] [
"Binocular",
"Rangefinder",
"Laserdesignator"
]) [[then]] [
{[300,600]},
{[20,50]}
]);
</code>|EXAMPLE2=
|x3= Reset to default: <code>[[setDetailMapBlendPars]] [-1, -1];</code>|EXAMPLE3=


____________________________________________________________________________________________
|x3= Reset to default:
<sqf>setDetailMapBlendPars [-1, -1];</sqf>


|[[setViewDistance]], [[viewDistance]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]] |SEEALSO=
|seealso= [[setViewDistance]] [[viewDistance]] [[setTerrainGrid]] [[getObjectViewDistance]] [[setObjectViewDistance]]
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:48, 14 May 2022

Hover & click on the images for description

Description

Description:
Sets the detail texture map blend pars. Allows for smooth transition between detailed and undetailed terrain texture at distance.
  • If noDetail > fullDetail, the texture detail will incur smooth transition in the area between the thresholds.
  • If noDetail <= fullDetail, there will be obvious visible edge between texture detail changes at fullDetail distance.
Groups:
System

Syntax

Syntax:
setDetailMapBlendPars [fullDetail, noDetail]
Parameters:
fullDetail: Number - threshold distance in metres up to which the terrain will have full texture detail
noDetail: Number - threshold distance in metres after which the texture detail will be switched off
Return Value:
Nothing

Examples

Example 1:
setDetailMapBlendPars [20, 50];
Example 2:
setDetailMapBlendPars ([[20, 50], [300, 600]] select (currentWeapon player in ["Binocular", "Rangefinder", "Laserdesignator"]));
Example 3:
Reset to default:
setDetailMapBlendPars [-1, -1];

Additional Information

See also:
setViewDistance viewDistance setTerrainGrid 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