Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1.81 KB

README.md

File metadata and controls

16 lines (10 loc) · 1.81 KB

UE4 Scene Capture Shaders

For fancy sensors such as the Semantic Segmentation camera, Carla uses post-processing materials to act as shaders and produce high-quality results with minimal cost to performance.

An excellent tutorial by UE4 on the subject can be found here (youtube)

Without getting too much into the details, the post-processing effect materials held here serve as shaders that can take information such as custom stencil/depth buffers and produce pixel-wise computations very efficiently.

Description Demo
For example, Carla's GTMaterial.uasset shader is used to encode custom stencil information into the red channel of the output images, producing an image such as this (colours exaggerated for viewing). Then in the PythonAPI client, the LibCarla definitions for City Palettes is applied to convert the image to user-desired colours by index. red_encode
By contrast, our DReyeVR_SemanticSegmentation shader builds on the fundamentals of the Carla GTMaterial but directly indexes the array of colours in the shader itself, so you can effortlessly obtain semantic colour information straight into the first-person-camera. rgb_encode

We are interested in including the various shader outputs in our replay functionality.

To demo the shaders we include in DReyeVR in real time, press . (period) for the next and , (comma) for the previous shaders.