Git Product home page Git Product logo

cubism-go's Introduction

Cubism Go

License: MIT Go Reference Go Report Card CI

cubism-goはLive2D Cubism SDKの非公式版のGolang実装です。ebitengine/puregoを用いているため扱いやすいです。

インストール

go get -u github.com/aethiopicuschan/cubism-go

動作に必要なもの

  • cubism coreの動的ライブラリ
  • Live2Dモデル

使い方

exampleディレクトリにサンプルコードがあります。おおむね全ての機能を利用したものとなっているので、Go Referenceと合わせて参照してください。

また、描画の実装として renderer/ebitengine パッケージがあります。 これにより、Ebitegineを用いたプロジェクトで簡単に利用することができます。もちろん、自身で実装した renderer を使うことも可能です。

また、音声の再生のための実装をいくつか用意しています。

  • sound/normal
    • 一番素直と思われる実装
  • sound/delay
    • 音声ファイルの読み込みやデコード等を再生時まで遅延させる実装
  • sound/disabled
    • 音声再生を無効化する実装

こちらも自身で実装することが可能です。

cubism-go's People

Contributors

aethiopicuschan avatar

Stargazers

 avatar irieda avatar  avatar Yota Hamada avatar  avatar  avatar Hajime Hoshi avatar

Watchers

 avatar

Forkers

eihigh

cubism-go's Issues

`sound`パッケージを代替可能にする

現状、こちらで実装した音声再生用の関数群を internal に持っているが、これをユーザが代替できるようにする。
つまり、interfaceとして抽象化して motion_manager あたりに持たせるようにする。
そのうえでデフォルト実装が internal にあるのは問題ない。

モーションの音声設定を無視する設定ができるようにする

現状 LoadModel 時に自動で音声ファイルを読み込み、モーション開始時に再生しているが、別に音声はいらないというパターンもありそうなので、以下検討して実装する

  • LoadModel 時の自動読み込みをせず、モーション再生時まで遅延させる機能
  • モーション開始時の音声再生を無効にする機能

json系の構造体をinternalに持つ

そのままの構造体はcore_5_0_0以下にあるのが望ましい。
バージョンを超越した構造体を別で持ち、toCommon() のような関数を実装する。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.