- Category: Blueprints
- Update: 1.0 (03-06-2021)
- Unreal Engine: 4.23 - 5.0
- Platforms: VR, PC, Console, HTML
The Projection FOV is a user-friendly and configurable system designed for projecting textures onto a geometry. Useful for:
- implementing area of visibility in 3D games
- projecting colorful textures on the environment
- simulating shadow map in toon shading systems
- simplified fast cheap alternative for the spotlight
- camera field of view control combined with depth test
- supports two types of material rendering (mesh-based and decal based)
- frustum area attachment debug
- advanced coloring and texture mapping
- cinema-like projector
- multiple types of shape projection (rectangle, circle, masked)
- can be attached to sockets and bones
- configurable projection receivers
- distance-based coloring
- camera direction and game type independent
Basically, it’s good to start with an example demo that presets all features and a wide range of possibilities of implementing the system in the game.
The simplest way is to use Projection FOV is:
- Drag and drop BP_ProjectionFOV on the map.
- Adjust actor to your scene or attach it to actor using (AttachTo function)
- Chose the material and set it to ProjectionMaterial attribute. You can use any type of material from templates ProjectionFOV/Materials/Templates
There are two types of projection that can be used with the Projection FOV system – decal projection and mesh projection. The type of projection is detected automatically based on the master material used in the blueprint. Both have some special features and some limitations that need to be addressed.
Implemented in master material M_ProjectionFOV_Decal
- Can be only used with BP_ProjectionFOV actor because requires a decal component.
- Can be filtered by “Receive decals” so you can disable the rendering effect on some meshes.
- Uses translucent blending
- Good for rendering area of sight
Implemented in master material M_ProjectionFOV_Mesh
- Works pretty well with normal fading
- Can be used on static meshes (SM_FrustumInside or SM_Light)
- Uses multiplication blending
- Good for simulating spotlight (car lights)
Basically, the Projection FOV comes with predefined material instances (ProjectionFOV/Materials/Templates) configurated for use in some specific cases.
Users can create their own materials as well by creating a copy or material instance from master materials M_ProjectionFOV_Decal/M_ProjectionFOV_Mesh.
Material parameters can be also modified dynamically during gameplay ProjectionInstance in ProjectionFOV.