👾
Mintbeer’s Blog
/
GPU Driven Instance Plugin
Search

GPU Driven Instance Plugin

Created
Jan 19, 2024 03:05 AM
Software
Unreal
Key Words
C++, Rendering
Category
Plugin
Program Tool

Pics and Vids

notion image
 

Description

Full GPU-driven mesh rendering pipeline in a single plugin. With culling, customized buffer and materials handled together in UE 4.26.2.
 

Technical Brief

Using an indirect-draw interface to achieve this. Customized mesh components and vertex factories for rendering the vertex buffers. Compute shaders implemented for sampling textures to generate instance positions and culling. The depth buffer is acquired using the ViewExtension. All features are implemented in a plugin for easy deployment for the project.
 

Related Links

I wrote Chinese tutorials for this
虚幻引擎 自定义VertexFactory(一)
引言在之前 自定义MeshComponent那篇文章中,我们可以看到虚幻引擎内置了很多VertexFactory。那么如果我们要实现如复杂的效果,自定义自己的数据结构等等目的,就需要自定义VertexFactory。这篇文章中我会讲解如何…
虚幻引擎 自定义VertexFactory(一)
https://zhuanlan.zhihu.com/p/580731018
虚幻引擎 自定义VertexFactory(一)
虚幻引擎 自定义VertexFactory(二)
引言在 上一篇文章中,我介绍了如何自定义一个最简单的VertexFactory。在这篇文章中,我们将拓展这个VertexFactory来实现阴影、法线、光照、材质的绘制。文章代码基于4.26.2。一、阴影我们先来看阴影的绘制。在虚…
虚幻引擎 自定义VertexFactory(二)
https://zhuanlan.zhihu.com/p/585747199
虚幻引擎 自定义VertexFactory(二)
虚幻引擎 自定义VertexFactory(三)Draw Indirect
引言https://zhuanlan.zhihu.com/p/580731018https://zhuanlan.zhihu.com/p/585747199之前的文章中,我介绍了如何修改Vertex Factory来自定义自己的顶点渲染流程。这篇文章中我将介绍如何实现Instancing,以及将资…
虚幻引擎 自定义VertexFactory(三)Draw Indirect
https://zhuanlan.zhihu.com/p/601327546
虚幻引擎 自定义VertexFactory(三)Draw Indirect
虚幻引擎 自定义VertexFactory(四)Culling与Dithering
引言Mintbeer:虚幻引擎 自定义VertexFactory(三)Draw Indirect在前三篇文章中,我们已经将大部分GPU Driven的Component的功能都实现了。这篇文章就是这个系列的完结篇。在这篇文章中,我们将实现一个简单的GPU …
虚幻引擎 自定义VertexFactory(四)Culling与Dithering
https://zhuanlan.zhihu.com/p/626021146
虚幻引擎 自定义VertexFactory(四)Culling与Dithering
虚幻引擎 自定义VertexFactory(五)Occlusion Culling 与ViewExtension
引言Mintbeer:虚幻引擎 自定义VertexFactory(四)Culling与Dithering在前面的四篇文章中,我展示了如何在插件中编写自己的Vertex Shader。但是还存有一些收尾工作,一个是我想实现一下简单的GPU Driven的Occlusi…
虚幻引擎 自定义VertexFactory(五)Occlusion Culling 与ViewExtension
https://zhuanlan.zhihu.com/p/675458779
虚幻引擎 自定义VertexFactory(五)Occlusion Culling 与ViewExtension
Code is available here:
https://drive.google.com/file/d/1VuXJJG8hZmiN3YQwkj0PkI4t0BV-_kDS/view?usp=drive_link
Table of Contents
Pics and VidsDescriptionTechnical BriefRelated Links
Copyright 2026 Mintbeer