当前位置:网站首页>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 <( ̄︶ ̄)>
边栏推荐
- Actually changed from 408 to self proposition! 211 North China Electric Power University (Beijing)
- Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
- There is a cow, which gives birth to a heifer at the beginning of each year. Each heifer has a heifer at the beginning of each year since the fourth year. Please program how many cows are there in the
- 什麼是數據泄露
- 【数字IC验证快速入门】18、SystemVerilog学习之基本语法5(并发线程...内含实践练习)
- [quick start of Digital IC Verification] 29. Ahb-sramc (9) (ahb-sramc svtb overview) of SystemVerilog project practice
- 【目标检测】YOLOv5跑通VOC2007数据集
- jacoco代码覆盖率
- [quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
- leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
猜你喜欢
![[Lanzhou University] information sharing of postgraduate entrance examination and re examination](/img/06/df5a64441814c9ecfa2f039318496e.jpg)
[Lanzhou University] information sharing of postgraduate entrance examination and re examination
Implementation of crawling web pages and saving them to MySQL using the scrapy framework

【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类

Monthly observation of internet medical field in May 2022

Unity's ASE achieves full screen sand blowing effect

【數字IC驗證快速入門】26、SystemVerilog項目實踐之AHB-SRAMC(6)(APB協議基本要點)
使用Scrapy框架爬取网页并保存到Mysql的实现

居然从408改考自命题!211华北电力大学(北京)

2022 all open source enterprise card issuing network repair short website and other bugs_ 2022 enterprise level multi merchant card issuing platform source code
![[follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code](/img/8d/a6d477a8679ca4f3885b1a7b542437.png)
[follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code
随机推荐
Getting started with webgl (4)
#HPDC智能基座人才发展峰会随笔
Android -- jetpack: the difference between livedata setValue and postvalue
How to release NFT in batches in opensea (rinkeby test network)
Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
避坑:Sql中 in 和not in中有null值的情况说明
一大波开源小抄来袭
2.Golang基础知识
Unity之ASE实现卡通火焰
Typescript release 4.8 beta
Super signature principle (fully automated super signature) [Yun Xiaoduo]
[follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code
What are the safest securities trading apps
webgl_ Enter the three-dimensional world (2)
Detailed explanation of Cocos creator 2.4.0 rendering process
【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
Syntax of generator function (state machine)
Getting started with webgl (1)