当前位置:网站首页>UE4 exports the picture + text combination diagram through ucanvasrendertarget2d
UE4 exports the picture + text combination diagram through ucanvasrendertarget2d
2022-07-07 15:43:00 【WhiteTian】
Original article , Reprint please indicate the source .
UCanvasRenderTarget2D Export pictures
- Preface
- Get started
- establish 1>CanvasRenderTarget2D, To realize it
- establish 2> Shader
- establish 3> Material examples
- establish 4> texture of material Actor, There is one in it Box, In order to see the effect , In fact, this can not participate in visual interaction . Remember to put this Actor Drag into the world .
- establish 5>RenderTarget
- effect
- Add
- Because the above is a demonstration , Imperfect , The following contents need to be improved when used in the project
Preface
Updated date 2021-10-29 11:23:25
Made a plug-in , Download address
About how to use plug-ins ,EKExportImageLibrary.cpp Two static export methods are provided inUEKCRT2DExportImageLibrary::EKCRT2DExportByPath
UEKCRT2DExportImageLibrary::EKCRT2DExportByTexture2DBy monitoring EKCRT2D_Delegates.h Medium FOnExportImageSuccessDelegate::OnExportImageSuccessDelegate The agent can be notified of the completion of the export .
Generate QR code pictures through programs , And mark a string of text under the QR code image ( QR codes are all the same , It's hard for the naked eye to distinguish , So add text ), After exporting the picture , It can be printed and pasted in the corresponding room .
In about UE4 The image in is as follows 
The exported image is as follows , It can be HDR、Png
Get started
The following resources are needed , You can quickly complete this function . Of course, this is a demonstration , Blueprints for blogging , It will be more intuitive to show you . If it is used in the project, it still needs to be encapsulated .
establish 1>CanvasRenderTarget2D, To realize it


establish 2> Shader


establish 3> Material examples


establish 4> texture of material Actor, There is one in it Box, In order to see the effect , In fact, this can not participate in visual interaction . Remember to put this Actor Drag into the world .



establish 5>RenderTarget

effect
You can see a picture in the folder 
Add
This article only introduces DrawTexture and DrawText, In fact, many effects can be drawn .
Because the above is a demonstration , Imperfect , The following contents need to be improved when used in the project
1> How to adjust the background color of the exported picture ?( It's black now )
2> Image source material on the exported image 、 Text content A parameterized ;
3> The size of the exported picture , adjustment CreateCanvasRenderTarget2D The canvas size passed in when calling ;
4> The text above the exported image 、 Where is the position of the picture ?
5> Text has more effects , Color 、 size , Whether it's fuzzy ?
6> Export format you want PNG still JPG perhaps HDR? Find the corresponding code in this function
UKismetRenderingLibrary::ExportRenderTarget
7> Do you consider packaging into C++ To do it ?
Last , If you can't follow the steps , Please leave me a message .
thank you , It's not easy to create , Great Xia, please stay … Move your lovely hands , Give me a compliment before you go <( ̄︶ ̄)>
边栏推荐
- [follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code
- [quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)
- jacoco代码覆盖率
- Syntax of generator function (state machine)
- Vertex shader to slice shader procedure, varying variable
- 2022 all open source enterprise card issuing network repair short website and other bugs_ 2022 enterprise level multi merchant card issuing platform source code
- Create lib Library in keil and use lib Library
- VS2005 strange breakpoint is invalid or member variable value cannot be viewed
- How to release NFT in batches in opensea (rinkeby test network)
- 简述keepalived工作原理
猜你喜欢

15. Using the text editing tool VIM

Getting started with webgl (4)

Cocos uses custom material to display problems

Write sequence frame animation with shader

从 1.5 开始搭建一个微服务框架链路追踪 traceId

Unity之ASE实现卡通火焰
![Super signature principle (fully automated super signature) [Yun Xiaoduo]](/img/b8/5bafbada054b335568e64c7e1ac6bb.jpg)
Super signature principle (fully automated super signature) [Yun Xiaoduo]

Vertex shader to slice shader procedure, varying variable
使用Scrapy框架爬取网页并保存到Mysql的实现

简述keepalived工作原理
随机推荐
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
【Markdown语法高级】让你的博客更精彩(四:设置字体样式以及颜色对照表)
MongoDB数据库基础知识整理
A need to review all the knowledge, H5 form is blocked by the keyboard, event agent, event delegation
Super signature principle (fully automated super signature) [Yun Xiaoduo]
2.Golang基础知识
Webcodecs parameter settings -avc1.42e01e meaning
Points for attention in porting gd32 F4 series programs to gd32 F3 series
【原创】一切不谈考核的管理都是扯淡!
Zhongang Mining: Fluorite continues to lead the growth of new energy market
Runnable是否可以中断
How to create Apple Developer personal account P8 certificate
【目标检测】YOLOv5跑通VOC2007数据集
【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
Nacos conformance protocol cp/ap/jraft/distro protocol
Spin animation of Cocos performance optimization
How to understand that binary complement represents negative numbers
Implementation of crawling web pages and saving them to MySQL using the scrapy framework
【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
Getting started with webgl (2)