当前位置:网站首页>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 <( ̄︶ ̄)>
边栏推荐
- Implementation of crawling web pages and saving them to MySQL using the scrapy framework
- Gd32 F3 pin mapping problem SW interface cannot be burned
- jacoco代码覆盖率
- 使用Scrapy框架爬取网页并保存到Mysql的实现
- 如何在opensea批量发布NFT(Rinkeby测试网)
- Mathematical modeling -- what is mathematical modeling
- Configure mongodb database in window environment
- What are PV and UV? pv、uv
- MySQL bit类型解析
- 知否|两大风控最重要指标与客群好坏的关系分析
猜你喜欢
Window环境下配置Mongodb数据库
【数字IC验证快速入门】18、SystemVerilog学习之基本语法5(并发线程...内含实践练习)
HW primary flow monitoring, what should we do
[make a boat diary] [shapr3d STL format to gcode]
Syntax of generator function (state machine)
Qu'est - ce qu'une violation de données
【数字IC验证快速入门】20、SystemVerilog学习之基本语法7(覆盖率驱动...内含实践练习)
The download button and debug button in keil are grayed out
【OBS】RTMPSockBuf_ Fill, remote host closed connection.
Zhongang Mining: Fluorite continues to lead the growth of new energy market
随机推荐
How to release NFT in batches in opensea (rinkeby test network)
Clang compile link ffmpeg FAQ
Android -- jetpack: the difference between livedata setValue and postvalue
HPDC smart base Talent Development Summit essay
【数字IC验证快速入门】18、SystemVerilog学习之基本语法5(并发线程...内含实践练习)
2022 all open source enterprise card issuing network repair short website and other bugs_ 2022 enterprise level multi merchant card issuing platform source code
Write a ten thousand word long article "CAS spin lock" to send Jay's new album to the top of the hot list
Database exception resolution caused by large table delete data deletion
什麼是數據泄露
【目标检测】YOLOv5跑通VOC2007数据集
Super signature principle (fully automated super signature) [Yun Xiaoduo]
有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?
Typescript release 4.8 beta
Share the technical details of super signature system construction
What are PV and UV? pv、uv
unnamed prototyped parameters not allowed when body is present
【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
[understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper
如何在opensea批量发布NFT(Rinkeby测试网)
leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)