render rope

From Valve Developer Community
Jump to navigation Jump to search
Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
Render Rope
This render type renders the particles as a ribbon or rope, connected in series from the oldest particle to the newest. Ropes require a specific .vmt type to render properly - it must have $splinetype set to 1 or 2. Additionally, ropes which have $orientation 3 set in their .vmt will use the normal to render oriented to the per-particle normal.

Generic Operator Options

Generic Render Operator Visibility Options

subdivision_count [integer]
The number of polygons, or subdivisions between each particle. More subdivisions will create smoother curves at a performance cost.
texel_size [float]
The visual density of the rope along its length. Quite small numbers may be required.
texture_scroll_rate [float]
The rate at which the texture will scroll along its length
texture_offset
The offset to the initial texture placement. Note that as each new particle is created or as they move, the rope will "scroll" along the length to maintain the specified texel density.
scale CP start/end
Setting these two control points which switch the texture mapping mode of the ropes to be relative to the two control points. This will allow the other "scale" options to work.
scale texture by CP distance
If set, will treat the texel_size as relative to the distance between the two control points, with 1 being a single span of the texture between the two.
scale scroll by CP distance
If set, will treat the texture_scroll_rate as relative to the distance between the two control points.
scale offset by CP distance
If set, will treat the texture_offset as relative to the distance between the two control points.