当前位置:网站首页>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 <( ̄︶ ̄)>
边栏推荐
- How to deploy the super signature distribution platform system?
- 微信小程序 01
- Super signature principle (fully automated super signature) [Yun Xiaoduo]
- What are PV and UV? pv、uv
- How to release NFT in batches in opensea (rinkeby test network)
- What are the safest securities trading apps
- 如何在opensea批量发布NFT(Rinkeby测试网)
- [quick start of Digital IC Verification] 26. Ahb-sramc of SystemVerilog project practice (6) (basic points of APB protocol)
- 【数字IC验证快速入门】24、SystemVerilog项目实践之AHB-SRAMC(4)(AHB继续深入)
- [quick start of Digital IC Verification] 19. Basic grammar of SystemVerilog learning 6 (thread internal communication... Including practical exercises)
猜你喜欢

How to release NFT in batches in opensea (rinkeby test network)

Write sequence frame animation with shader

Do you know the relationship between the most important indicators of two strong wind control and the quality of the customer base

Briefly describe the working principle of kept

Keil5 does not support online simulation of STM32 F0 series

一大波开源小抄来袭

有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?
![[Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering](/img/a4/7320f5d266308f6003cc27964e49f3.png)
[Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering

How to create Apple Developer personal account P8 certificate

Use of SVN
随机推荐
Pat grade a 1103 integer factorizatio
What is data leakage
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
连接ftp服务器教程
Clang compile link ffmpeg FAQ
Vertex shader to slice shader procedure, varying variable
[quick start for Digital IC Validation] 26. Ahb - sramc (6) for system verilog project practice (Basic Points of APB Protocol)
How to understand that binary complement represents negative numbers
The rebound problem of using Scrollview in cocos Creator
【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
MongoDB数据库基础知识整理
Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
Super simple and fully automated generation super signature system (cloud Xiaoduo minclouds.com cloud service instance), free application in-house test app distribution and hosting platform, maintenan
Create lib Library in keil and use lib Library
Write a ten thousand word long article "CAS spin lock" to send Jay's new album to the top of the hot list
Getting started with webgl (3)
MySQL bit类型解析
【微信小程序】Chapter(5):微信小程序基础API接口
Do you know the relationship between the most important indicators of two strong wind control and the quality of the customer base
Getting started with webgl (1)