A plugin that links the VTK Library to Unreal Engine 5.3.
Currently, this plugin does the following:
vtkMath.h
(based on an official VTK example, cross-compatible)This plugin is quite verbose as it aims to be a foundation for implementing & testing VTK functionality in UE.
Check the Unreal Log for [VtkPlugin]
to see what's happening (also valid for the blueprint functions).
VtkWrapper
)
OpenExrWrapper
(see here)You can use the [*.bat|*.sh|*.command]
installation scripts to download and build VTK for UE automatically.
By default it will do a Release
build, but you can tell it to do a Debug
build by starting it with Debug
as a parameter.
If you do a Debug build, don't delete your build folder (./Temporary
) at the end of the script. The *.dll
files store the path to its debug symbols which remain there.
# Release build
.\install_vtk_windows.bat
# Debug build (do not delete build folder at the end)
.\install_vtk_windows.bat debug
Alternatively, download & build the VTK library yourself and copy the files to the correct locations:
VtkPlugin/Source/ThirdParty/VtkLibrary/Public
*.lib
files to VtkPlugin/Source/ThirdParty/VtkLibrary/[Release|Debug]/lib
folder*.dll
files to VtkPlugin/Source/ThirdParty/VtkLibrary/[Release|Debug]/bin
folder*.so
files to VtkPlugin/Source/ThirdParty/VtkLibrary/Linux/[Release|Debug]/lib
folder*.dylib
files to VtkPlugin/Source/ThirdParty/VtkLibrary/Mac/[Release|Debug]/lib
folderPrerequisites:
For test data have a look at the VTKData repository (files here are referenced in the official VTK examples): https://github.com/open-cv/VTKData
If there are linking errors with the VTK library, have a look in the Source/ThirdParty/VtkLibrary
folder:
VtkLibrary.Build.cs
correctly finds your VTK includes & binariesIf the necessary VTK binaries don't exist, they may have not been built. Check which VTK module is missing and enable it explicitly in your build configuration for VTK.
-DVTK_MODULE_ENABLE_VTK_<module_name>=WANT
to the cmake callAdvanced
box, then you can search for the missing module name