VRGroupRWTH / VTKPlugin

A plugin that downloads, builds, installs and links VTK to UE.
BSD 3-Clause "New" or "Revised" License
11 stars 4 forks source link

VTK Plugin for Unreal Engine 5+

A plugin that links the VTK Library to Unreal Engine 5.3.

Currently, this plugin does the following:

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).

⚠️ Remarks on Windows

⚠️ Remarks on Linux/Mac

Installation

Automated Installation

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

Manual Installation

Alternatively, download & build the VTK library yourself and copy the files to the correct locations:

Prerequisites:

Troubleshooting

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:

If 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.