diag drawMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - "|size=0.75" to "|size= 0.75")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:diag_drawMode}}
{{RV|type=command
{{Command|Comments=
____________________________________________________________________________________________


| arma3dev |Game name=
|game1= arma3


|1.85|= Game version
|branch= diag
____________________________________________________________________________________________


| Activates specific debug visualization.
|version1= 1.86
{{warning|Command is only available when using [[Arma 3 Diagnostics Exe|Arma 3 Diagnostics Exe]] on Dev-Branch.}}|DESCRIPTION=
____________________________________________________________________________________________


| '''diag_drawMode''' type |SYNTAX=
|gr1= Diagnostic


|p1= type: [[String]] - Type of visualization |PARAMETER1=
|descr= Activates a debug visualisation.


| [[Nothing]] |RETURNVALUE=
|s1= [[diag_drawMode]] type
____________________________________________________________________________________________
 
|x1= <code>[[diag_drawMode]] "normal"</code> |EXAMPLE1=
____________________________________________________________________________________________
 
| [https://resources.bisimulations.com/wiki/diag_drawmode VBS diag_drawmode], [https://resources.bisimulations.com/wiki/setDrawMode VBS setDrawMode]  |SEEALSO=


|p1= type: [[String]] - type of visualisation. Can be one of:
{{Columns|2|
* "Normal"
* "Roadway"
* "Geometry"
* "ViewGeometry"
* "FireGeometry"
* "Paths"
* "ShadowVolume"
* "ShadowBuffer"
* "Buoyancy"
* {{GVI|arma3|2.10|size= 0.75}} "Wire" - can be used along other visualisation
** first mode: pure wireframe, no normal rendering
** second mode: normal rendering combined with wireframe
** third mode: back to normal
}}
}}


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


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>
diag_drawMode "FireGeometry";
sleep 5;
diag_drawMode "Normal";
</sqf>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|x2= "Wire" can be used along other modes:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
<sqf>
diag_drawMode "Wire"; // switch to first Wire mode
diag_drawMode "Roadway"; // switch to Roadway like usual


<!-- CONTINUE Notes -->
diag_drawMode "Wire"; // switch to second Wire mode
<dl class="command_description">
diag_drawMode "ViewGeometry"; // switch to ViewGeometry, keeping the current Wire mode
<dd class="notedate">Posted on September 6, 2016 - 07:36 (UTC)</dd>
<dt class="note">[[User:Kju|Kju]]</dt>
<dd class="note">
Currently A3 dev branch, diag.exe, version 1.65.138249 has no drawModes available:


<code>diag_list "drawMode" -> []</code>
diag_drawMode "Wire"; // disable Wire
</dd>
</sqf>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
|seealso= [[diag_list]]
<dl class="command_description">
}}
<dd class="notedate">Posted on August 21, 2018 - 14:45 (UTC)</dd>
<dt class="note">[[User:kllrt|kllrt]]</dt>
<dd class="note">
Since rev. 144956 of diag.exe this parameter should work with there modes:<br>
Normal<br>
Roadway<br>
Geometry<br>
ViewGeometry<br>
FireGeometry<br>
Paths<br>
ShadowVolume<br>
ShadowBuffer<br>
Buoyancy<br>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 13:09, 21 December 2022

Hover & click on the images for description
Only available in Diagnostic branch(es).

Description

Description:
Activates a debug visualisation.
Groups:
Diagnostic

Syntax

Syntax:
diag_drawMode type
Parameters:
type: String - type of visualisation. Can be one of:
  • "Normal"
  • "Roadway"
  • "Geometry"
  • "ViewGeometry"
  • "FireGeometry"
  • "Paths"
  • "ShadowVolume"
  • "ShadowBuffer"
  • "Buoyancy"
  • Arma 3 logo black.png2.10 "Wire" - can be used along other visualisation
    • first mode: pure wireframe, no normal rendering
    • second mode: normal rendering combined with wireframe
    • third mode: back to normal
Return Value:
Nothing

Examples

Example 1:
diag_drawMode "FireGeometry"; sleep 5; diag_drawMode "Normal";
Example 2:
"Wire" can be used along other modes:
diag_drawMode "Wire"; // switch to first Wire mode diag_drawMode "Roadway"; // switch to Roadway like usual diag_drawMode "Wire"; // switch to second Wire mode diag_drawMode "ViewGeometry"; // switch to ViewGeometry, keeping the current Wire mode diag_drawMode "Wire"; // disable Wire

Additional Information

See also:
diag_list

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