marysaka / inox2d

Native Rust reimplementation of Inochi2D

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inox2D

Discord

Officially supported experimental Rust port of Inochi2D.

The Inox2D workgroup provides support in the #inox2d channel on the Inochi2D Discord.

Currently this library and the specification is in a prototype state, it is not recommended to use this library in production.

 

Rigging

If you're a model rigger you may want to check out Inochi Creator, the official Inochi2D rigging app in development.
This repository is purely for developers and is not useful if you're an end user.

 

Status

INP parsing works completely fine, but not INX (bad indexes, wrong reading?).

Both renderers (OpenGL, WGPU) now work on all models we could test them on (Aka, Midori, Arch-chan).

Support for parameters, physics and animations is on the way!

Feature tree

  • Parsing
    • INP format
  • Rendering
    • OpenGL
    • WGPU (Camera TBD)
    • Draw List
  • Parameters
    • Deforms (mesh vertex offsets)
    • Values (node transform offsets)
  • Physics
  • Animations

INP parsing

Parsed foxgirl

OpenGL renderer

OpenGL-rendered Arch-chan

WGPU renderer

WGPU-rendered Arch-chan

 

Implementation

Inox2D aims at supporting all features currently present in the standard D implementation.

Inox2D is designed to be extensible. Nodes are extensible through a generic InoxData<T> enum which has a Custom(T) variant. Every other part of the library accounts for it: the OpenGL renderer accepts any struct that implements the CustomRenderer trait to be able to render your custom nodes, and the deserialization functions accept generic Fns for deserialization of custom nodes when it is relevant.

 

Optimization on OpenGL

Implementation language OpenGL calls
Inochi2D reference* D 3076
Link Mauve's inochi2d Rust 551
Inox2D Rust 1544

* Reference implementation is subject to change as optimisation passes are done, additionally code is more geared towards readability than performance for implementers to be able to more easily use it as reference.

 

License

This project is licensed under the 2-Clause BSD license. See LICENSE for details.

About

Native Rust reimplementation of Inochi2D

License:Other


Languages

Language:Rust 95.2%Language:GLSL 4.8%