DMX/Source 2 Vertex attributes

From Valve Developer Community
< DMX
Revision as of 10:18, 18 January 2020 by Rectus (talk | contribs)
Jump to navigation Jump to search

The DMX mesh format (Version 22) supports arbitrary mesh attributes. The Source 2 tools can make use of many attributes besides the standard ones to control per-vertex model features.

Stub

This article or section is a stub. You can help by expanding it.

Note.pngNote: The list is very likely incomplete.

Standard

Attribute Type Description
position vector3 Vertex position.
normal vector3 Vertex normal.
texcoord vector2 UV coordinates. A second UV map can be added with texcoord$1.
blendweights float
blendindices int
wrinkle
balance float
tangent
speed


Vertex Color Maps

Attribute Type Description
VertexPaintBlendParams vector4 Used to blend between texture layers in bland materials. Works the same way as the Hammer Terrain Blending tool.
VertexPaintBlendParams1 vector4
Todo:  Unknown additional blend parameters
VertexPaintTintColor vector4


Cloth Simulation

Attribute Type Description
cloth_enable float Enables cloth simulation and creates a cloth node on the vertex when set to 1. Range 0.0 - 1.0
cloth_animation_attract float
cloth_animation_force_attract float
cloth_goal_strength float
cloth_goal_strength_v2 float
cloth_goal_damping float
cloth_drag float
cloth_drag_v2 float
cloth_mass float
cloth_gravity float
cloth_gravity_z float
cloth_collision_radius float
cloth_ground_collision float
cloth_ground_friction float
cloth_use_rods float
cloth_make_rods float
cloth_anchor_free_rotate float Controls how freely cloth nodes bordering to non-cloth vertices can rotate. Range 0.0 - 1.0
cloth_volumetric float
cloth_suspenders float
cloth_bend_stiffness float
cloth_stray_radius_inv float
cloth_stray_radius float
cloth_stray_radius_stretchiness float
cloth_antishrink float
cloth_shear_resistance float
cloth_stretch float
cloth_friction float
cloth_collision_layer_0 - 15 float
cloth_vertex_set_<set_name> float