setDetailMapBlendPars: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ")
m (Some wiki formatting)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 1.02
|version1= 1.02
|eff= local
|eff= local


|gr1= System
|gr1= System


|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;<nowiki>=</nowiki> fullDetail there will be obvious visible edge between texture detail changes at fullDetail distance.
|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.


|s1= [[setDetailMapBlendPars]] [fullDetail, noDetail]
|s1= [[setDetailMapBlendPars]] [fullDetail, noDetail]


|p1= [fullDetail, noDetail]: [[Array]]
|p1= fullDetail: [[Number]] - threshold distance in metres up to which the terrain will have full texture detail
 
|p2= 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
|p2= noDetail: [[Number]] - threshold distance in metres after which the texture detail will be switched off


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


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


|seealso= [[setViewDistance]], [[viewDistance]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]]
|seealso= [[setViewDistance]], [[viewDistance]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]]
}}
}}

Revision as of 18:23, 24 November 2021

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:
setViewDistanceviewDistancesetTerrainGridgetObjectViewDistancesetObjectViewDistance

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