Giter VIP home page Giter VIP logo

Comments (3)

noppefoxwolf avatar noppefoxwolf commented on May 24, 2024 2

ありがとうございます!少しリサーチしたので以下共有します。

SceneKitでMToonを再現する場合、ShaderModifierかSCNProgramを使って描画することになりそうです。
ShaderModiferはデフォルトのシェーダの中間に処理を挟み込むような実装になりますが、差し込む前のコード(ダンプしたものか不明ですが)は
https://gist.github.com/andrewzimmer906/b0e05920c7b947604bd9a5a50cfc2155
が参考になります。
MToonの移植に当たってShaderModifierかSCNProgramのどちらを使うかまだ判断は出来ていないです。(この辺り知見があれば知りたいです)

また現状公式の
https://github.com/Santarh/MToon
以外に、Babylon.jsで書かれた
https://github.com/virtual-cast/babylon-mtoon-material
が存在しており、後者はWebGL向けに書かれたものなのでMetal移植の際は後者も参考になりそうです。
移植ではなく再現という観点では
https://qiita.com/ruyo/items/ec082d81dea3033e1500
が参考になりそうです。

from vrmkit.

tattn avatar tattn commented on May 24, 2024 1

VRMKitのロードマップとしてはMToonのサポートを考えているのですが、
まだ実装の進捗はなく、対応予定も未定な状況です 🙏

https://github.com/tattn/VRMKit#todo

ToDo
VRM shaders support

from vrmkit.

tattn avatar tattn commented on May 24, 2024

参考資料ありがとうございます!とても助かります!!
MToonの詳細な仕様をまだ読み込めておらず、SceneKitのどの機能が最適なのかが分かっていません。。
なるべく標準に寄せたほうが楽でメンテナンスしやすそうなので、ShaderModifierで試してみて、足りない機能が出てきた際にSCNProgramに移行するのが良さそうと考えていますー!

from vrmkit.

Related Issues (6)

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.