- Blender
- Python3
- imageio (with freeimage plugin)
- MacOS
brew install freeimage
- Windows
https://imageio.readthedocs.io/en/v2.5.0/format_exr-fi.html
- MacOS
- numpy
- imageio (with freeimage plugin)
- Unity [URP]
- Resource Generation
- Install python3 and python requirements wrote in
requirements.txt
- Modify
build_vat.py
set data_path to your obj models path. - Create
output
folder in the same directory withbuild_vat.py
- Export blender animation sequences in wavefront obj format into
output
folder. (DO NOT EXPORT MATERIALS). - Run
./build_vat.py
- Copy
unity/create_vat_mesh.cs
to unityAssets/Editor
folder (create it if you don't have it)
- Install python3 and python requirements wrote in
- Unity Asset
- Select
vat_vertex_tex.exr
and Click Unity MenuVAT/Create VAT Mesh
create vat mesh for current vat textures. - Create Unity Material with
shader/VATFluid.shader
, attach vat textures to spercific material slot. - Create any unity 3D GameObject and replace mesh with generated vat mesh.
- Set material to generated material.
- Done
- Select
and generated vat textures to render VAT mesh in unity.
Because vat texture is data texture. So vat texture import setting must set in specific form.
- [IMPORTANT] Compression
None
. - sRGB set to
false
. - FilterMode set to
Point Filter
. - Generate Mip Maps set to
false
. - Max Size set to the same size as vat textures.
- Alpha Source set to
None