Git Product home page Git Product logo

unityrealtimevoxelizer's Introduction

UnityRealtimeVoxelizer

ezgif com-gif-maker(1)

Unity上で任意の3Dモデルをリアルタイムでボクセル化するシェーダーです。
元のモデルのテクスチャおよびベースカラーをボクセル色に反映させることができます。

環境

Unity 2021.2.5f1 URP

使い方

  • ボクセル化したいオブジェクトに専用のレイヤーを割り当てます。MainCameraのCullingMaskからはこのレイヤーを除外してください。
  • マテリアルのシェーダーに"Voxelizer"を指定します。必要に応じてテクスチャとベースカラーを指定します。
  • プレハブ"Voxelizer"をシーン上に配置します。
    スクリーンショット 2021-12-19 120303
    • Target Layer:ボクセル化したいオブジェクトのレイヤーを指定します。
    • Mesh:ボクセル1つをどのメッシュで描画するかを指定します。
    • Center Pos:ボクセル化したい領域の中心座標を指定します。
    • Area Size:ボクセル化したい領域のサイズを指定します。Center Posを中心とした、一片の長さがArea Sizeの立方体がボクセル化対象の領域となります。
    • Grid Width:ボクセル化対象領域の1辺を何個のボクセルで分割するかを指定します。8の整数倍の数値を入力してください。
    • Target Pos:ここにTransformを設定すると、Center PosがそのTransfromに追従するようになります。
    • Height Scale:ボクセルの高さにスケールを掛けます。
    • FPS:ボクセルの更新間隔を指定し、コマ送りのような効果を与えることができます。

ライセンス

”ユニティちゃんライセンス”

Assets/UnityChan配下のデータはユニティちゃんライセンス条項の元に提供されています

unityrealtimevoxelizer's People

Contributors

seyakara avatar

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.