Expand description
Quadratic Bezier Concatenated Item
VItem itself is composed with 3d bezier path segments, but when ranim renders VItem, it assumes that all points are in the same plane to calculate depth information. Which means that ranim actually renders a projection of the VItem onto a plane.
The projection target plane has the initial basis and normal defined as (DVec3::X, DVec3::Y) and DVec3::Z respectively, and it contains the first point of the VItem.
So the normal way to use a VItem is to make sure that all points are in the same plane, at this time the projection is equivalent to the VItem itself. Or you may break this, and let ranim renders the projection of it.
Modules§
- geometry
- Geometry items
- render
render - Render-world components and GPU implementation. Render-world data and GPU implementation for vitem items.
- svg
- Svg item
- text
typst - Simple text items
- typst
typst - Typst items
Structs§
- VItem
- A vectorized item.
- VItem
Plugin render - Installs vector-item extraction, GPU preparation, and rendering.
Constants§
- DEFAULT_
STROKE_ WIDTH - Default stroke width