Runtime Vertex Color Paint and Detection Plugin
A Plugin that allows the user to Paint & Detect Vertex Colors in Runtime in various ways which can enable audio-visual fidelity as well as new game mode and gameplay possibilities without the need to have a C++ Project with alterations to the Source.
Built almost entirely in C++ with Exposed Functions and Events to Blueprint so even users in Blueprint only projects can utilize the plugin to the fullest.
Has Multithreading Support so the user can Paint/Detect on really heavy Meshes with several LODs.
The Plugin has 2 Main Modules, the actual Runtime Paint/Detect Module, and an Editor Module that handles all the Editor Logic using an Editor Subsystem with an Editor Utility Widget, such as Storing, Previewing and Updating Color Snippets, Registering Physics Surfaces for a Material or Setting Optimization Settings.
The Plugin also uses Engine and Game Instance Subsystems to great affect as the users doesn't have to do anything but enable the plugin for them to run so we can utilize them very comfortable to run logic such as Applying Colors and handling the paint task queue.
More showcases and features can be found in the Marketplace Page!
Detect Vertex Data
Detect to get Data of the Closest Vertex of the Location which includes Color, Position and Normal of the Vertex, as well as EPhysicsSurface if the user has registered the Material and what surfaces is on each of the color channels.
Loops through the Vertices of LOD0 to get the closest Vertex.
Detect At Location
Get All Colors of Mesh or Bone in %
Can be used for Splaboon like Game Mode or just to check if a Bone has been painted over a certain amount.
For example a Enemy that can get one of their Legs frozen by the player, if over a certain amount then maybe it should break.
Detect - Get All Colors
Register Materials with what Physics Surface is on each of the Vertex Color Channels so you can get this in Native EPhysicsSurface when Detecting.
You also get it as String Type, with float values on how much is painted on each surface, which can be used to blend VFX or SFX in UE4 or Third Party Programs like WWise with their RTCPs that uses Strings.
Get Native EPhysicsSurface
Fire Example - Combines Paint at Location & Detection
Paint At Location
Paint At Location with Area of Effect and Falloff. Probably the paint type that will be just most often and can be used to create game modes and gameplay mechanics, or just nice attention to detail.
Ice, Snow and Cracks in Ice on Different Channels
Combine with Particle Collisions for added Fidelity.
Can opt to run Detection before and/or after the Paint job so you can run logic based off of how it looked like before the Paint Job, for example if Rain lands on a Dry Cap, it should make a sound different from when it's dry, compared to after the drop has made it Wet.
Combine with Particle Collisions
Paint Within Area
Paint Within Area will paint the part of the Mesh that is overlapping the Area.
Cube, Rectangle & Sphere Shape is the Cheapest. They also Support Extra Extent where we can Apply Colors outside of the area as well, which is useful if a characters clothes should soak up water if they're standing in a lake or if there are waves.
Paint Within Area - Cube/Rectangle Shape
Support Complex Shapes as well such as Skeletal Meshes.
This is more expensive but makes it possible to paint with the shape of a skeletal mesh or static meshes that have any kind of shape.
Paint Within Area - Complex Shape
Paint Entire Mesh
Paint Entire Mesh
Paint Entire Mesh can either Add or Set the entire mesh to be a Color.
This can be very useful if you're spawning Meshes which default colors is undesirable and you want to clean them.
Also if you for instance want to Dry your character if they're wet where you can Paint Entire Mesh with Add, and set to - the color on a channel.
You can also paint entire mesh but at random vertices, which is useful if it's raining or something similar. This combines especially well with Paint Color Conditions which all paint jobs can set, where you can for instance exclude areas that you don't want to get painted, like under rooftops
Paint Color Snippets
Create and Store Color Snippets which can be Painted in Runtime
This can be very useful if you want to store exactly how you want your character to look in a level or cinematic, or if you want to make several different variations of zombies with wounds and blood etc.
You can Preview a Created Snippet and Update the Colors if you want to make changes.
Through VertexPaintEngSubsystem->GetAllAvailableColorSnippetsOnMesh (which can also be called through BP) you can get them all which is useful if you want to spawn a zombie and just randomize which snippet it should get.
Painting on Cloth
The Plugin Supports Painting on Skeletal Meshes Simulated Cloth.
Since Hair can also be Cloth it can also get painted if setup correctly.
In UE5 we can also change the Cloths Physics with the new Chaos Cloth System, which means we can make Capes or Hair etc. Heavier if they for example become Wet.
Painting Cloth Wet weighs them down
Features Cloth Overlap Component
The Plugin has a Scene Component that when placed under Skeletal Mesh Component with Simulated Cloth, can trace on the cloth for overlaps. Which means even if the cloth itself is for example overlapping a Waterfall Mesh, the Cloth can start to get painted.
Otherwise the Skeletal Mesh itself would have to overlap with it.
Cloth itself Detects the Overlap
Alot more Features & Showcases can be found on the Marketplace Page!