Character & Sprite System
![]()
This document describes the character and sprite system in DVN.
Contents
- Character definitions
- Character Auto-Position
- Live2D / pseudo-Live2D
- 1. Pseudo-Live2D (Layered Sprite Method) - Supported
- 2. Full Live2D Model Rendering - Possible, but requires custom work
Character definitions
We've already touched on characters in DVN Basics and Scripting Language, but let's dive in and take a deeper look at the definition and how characters are used in DVN.
In DVN characters are just named image files and character names are separate from characters, meaning you always specify the character speaking.
This makes it easy to have characters appear without their names displayed, such as if they haven't introduced themselves yet.
But since characters are just named images, that means you can use them for normal image components too, making it easy to create ex. a character gallery, without having to use separate image definitions.
Ex. the following just works.
auto image = new Image(window, "MyCharacter");
Character Auto-Position
Characters are automatically positioned when there are 1 or 2 characters on screen.
If you have more than 2 characters you must specify positions.
If you have 1 character it will automatically be bottomCenter.
If you have 2 characters it will automatically be bottomSlightLeft and bottomSlightRight positioning them beside each other.
Live2D / pseudo-Live2D
DVN does not currently provide native Live2D integration out of the box. However, the engine is flexible enough to support custom rendering workflows for developers who want to implement Live2D-style characters or full Live2D models.
There are two main approaches:
1. Pseudo-Live2D (Layered Sprite Method) - Supported
DVN's sprite system already supports layered images, transforms, and animation logic. Using these features, it is possible to simulate Live2D-style motion by animating multiple character parts independently (eyes, mouth, hair, head tilt, accessories, etc.).
This approach uses standard DVN functionality and requires no modifications to the engine.
2. Full Live2D Model Rendering - Possible, but requires custom work
Developers who want true Live2D rendering can achieve it by extending or hooking into DVN's rendering pipeline.
This may include:
- Injecting a custom renderer
- Loading and updating Live2D model states
- Synchronizing model expressions and animation with DVN events
This approach is recommended only for advanced users, as it requires custom code and familiarity with DVN's rendering architecture.
| Feature | Status | Notes |
|---|---|---|
| Layered / pseudo-Live2D animation | Supported | Uses built-in sprite layering and animation |
| Native Live2D model support | Not built-in | Requires custom renderer integration |
| Rendering pipeline access | Available | Enables full Live2D support if implemented |
In short: DVN does not ship with Live2D, but the engine won't stop you if you want to integrate it.