#开源 
一个基于 Electron 的 Live2D 桌面展示器,同时支持 moc、moc3 模型

#开源 一个基于 Electron 的 Live2D 桌面展示器,同时支持 moc、moc3 模型

Property
Sep 8, 2022 10:04 PM

Hime Display

notion image
Hime Display aims to create an open-source, cross-platform, universal desktop model presenter.

Preview

Control Panel

notion image

Display Window

Can't see anything? that's right, the display window is just a transparent window.

Features

  1. Multiple Model Type Support: Supports loading Live2D, MMD, VRoid, Spine models.
  1. Motion Capture: Provides motion capture support for Live2D, MMD, VRoid with the help of Google's MediaPipe.
  1. Cross Platform: Supports Windows and macOS.
  1. Multilingual support: Supports English, Simplified Chinese, and Japanese.
  1. Full Model Control: Various operations can be performed on the model, including bone transformation, deformation, and animation playback.
  1. Animation transition: MMD model can load animations from Mixamo directly (Plan to support VRoid).

Basic Usage

Design of model database

The application uses one or more paths as the model data source. It can recursively detect the model under these paths according to some model file features and add them to the database.

Method to load models

  1. Click Source in left row of the control panel.
  1. Add Data Source, select the directory of models, motions, and audios.
  1. Click Refresh in the source path operations.
  1. Click Model in left row, select the model you want to load in the model database, the selected one will be highlighted.
  1. Last step, Click Load Selected Model under the database.

Attentions

  1. Different types of models, motions, audios can be put in the same data source.
  1. In order to improve efficiency and enhance generality, for most file types, the detection process does not read the content of the file, and mainly judges by the file extension. So even if the file has problems or is not supported, it may be loaded into the database.
  1. For some types of models, their file names are usually not the model names, and the names of the upper-level directory of the model files will be used as the model names, so placing multiple model files in the same directory may be confusing.
  1. For motions and audios, their file names are usually related to the contents, so the file names will be used as the names, and placeing them into one directory will not cause naming confusion.
  1. After adding data source, you can click Edit and decide the search type. All types will be detected by default.
  1. When the search is complete, it will automatically update the statistic info, model database, motion database, and audio database (the latter two are displayed in the animation control page of the selected and displayed 3D model)

Implemented Features Comparison

MMD
VRoid
Live2D
Spine
Files
(Developing)
(Animation only)
(All status)
(Considering)
(Not support)
Morph
Morph
ParameterPart
(TODO)
(No specification)
(No specification)
(No specification)

Main Techniques

This application mainly uses Front-end technology, based on Electron, mainly uses Vite as build tools.
Uses lowdb as the database.
Multilingual support adopted i18next.
The control panel adopted Vue framework and Element Plus component library.
Uses Pixi.js as the rendering engine of 2D models, and the 3D models use Three.js.
Motion capture adopts Google's MediaPipe, and adopts Kalidokit to analyse captured data.

Develop

# Install dependencies
yarn
# start
yarn start
# build (The specific build version can be configured in the `build.config.js` file in the root directory)
yarn run build

Special Thanks

This is my first attempt to develop a full application, maybe there are some deficiencies.
The file structure of this application refers to a download tool Motrix which is also developed by Electron.
Thanks to 笺染菲素 for testing the application and providing many suggestions.
Thanks to pure01fx, the author of HuiDesktop for some technical support on Spine.
Thanks to greenjerry for supporting me in material, spiritual, software and hardware.