Building the files
Now, we will redo the cover video, as the maual says.
Got to the Deep Fluid net directory and type the below to create the simulation files (the particles), if you haven't already:
- cd scenes
- python3 ../scripts/run_network.py --weights ../scripts/pretrained_model_weights.pt --scene canyon_scene.json --output canyon_out --num_steps 1500 ../scripts/train_network_torch.py
- python3 ../scripts/create_surface_meshes.py --input_glob "canyon_out/fluid*.npz" --outdir canyon_out
If the Boost lib can't be found, execute the "export" command used when installing OpenVDB.
Note: If you get the error "free(): invalid pointer", it means you imported Scipy before OpenVDB. Set it as:
- import pyopenvdb as vdb; from scipy.spatial import cKDTree
Meanwhile, if you don't have Blender, install it through the official site, not the Microsoft Store, just to simplify some paths we will need. My current version is 2.92.
Then, open the Canyon blender file in "scenes" and type this in the interactive Python terminal:
- import sys; sys.exec_prefix
Copy that path, and go to it in Windows Terminal or PowerShell and install and update pip:
- cd 'F:\Blender Foundation\Blender 2.92\2.92\python\bin'
- .\python.exe -m ensurepip
- .\python.exe -m pip install --upgrade pip
- .\python.exe -m pip install plyfile
Also, you can create an AVI video instead of a collection of PNG images. Go to "Output" (the printer icon on the right) and set the file format.
No comments:
Post a Comment