Open alelievr opened 2 years ago
Install steps
- Download and copy the content of the
Assets/Common
,Assets/Editor
andAssets/OpenVDB
folder directly into your Unity project- You'll probably hit some compilation error in LibraryDownloader.cs, you can delete this file as well as its references in PackageMenu.cs
- Now that everything compiles, download the conan_package.tgz file from the wayback machine: https://web.archive.org/web/20210501105509/https://dl.bintray.com/kazuki/conan/kazuki/OpenVDBNativePlugin/0.0.1/stable/0/package/
- To know which hash to download, see this file: https://github.com/karasusan/OpenVDBForUnity/blob/d4906025a0592c52d07edef151ce2b2b904f2bc8/OpenVDBForUnity/Assets/Editor/PackageBuild/LibraryDownloader.cs#L32
- For example this is the download link for windows
- Extract the archive and copy the lib and bin directories in this directory: Assets/OpenVDB/Scripts/Plugins
- Then reimport the OpenVDB folder
- Drag and drop vdb files directly in Unity :)
Bonus: extract 3D texture from VDB:
- On windows, add this line after the Path.GetDirectoryName: https://github.com/karasusan/OpenVDBForUnity/blob/d4906025a0592c52d07edef151ce2b2b904f2bc8/OpenVDBForUnity/Assets/OpenVDB/Editor/Importer/OpenVDBImporterEditor.cs#L44
projectPath = projectPath.Replace('\\', '/');
Click on your VDB file and then Material and finally "Extract Textures"
Did you manage to link the generated 3D texture to a local fog volume? Its just empty for me I'm not sure why.
Do you mean HDRP volumetric fog? If yes, then you need a specific format (Alpha8) and it's pretty bothersome to convert if you start from an RGBA 3D texture (other than scripting I don't know how to do it). In later versions of HDRP they added support for RGBA textures so that might work better
It works thanks a lot!
Install steps
Assets/Common
,Assets/Editor
andAssets/OpenVDB
folder directly into your Unity projectBonus: extract 3D texture from VDB:
Click on your VDB file and then Material and finally "Extract Textures"