当前位置:网站首页>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 <( ̄︶ ̄)>
边栏推荐
- MySQL bit类型解析
- The bank needs to build the middle office capability of the intelligent customer service module to drive the upgrade of the whole scene intelligent customer service
- Points for attention in porting gd32 F4 series programs to gd32 F3 series
- 【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码
- Keil5 does not support online simulation of STM32 F0 series
- [make a boat diary] [shapr3d STL format to gcode]
- Briefly describe the working principle of kept
- 【深度学习】图像超分实验:SRCNN/FSRCNN
- 有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?
- leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
猜你喜欢

【数字IC验证快速入门】20、SystemVerilog学习之基本语法7(覆盖率驱动...内含实践练习)
![[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset](/img/69/9dadeb92f8d6299250a894690c2845.png)
[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset

What is data leakage
![[quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)](/img/3f/40475f9f6e0fcd3f58c93164f65674.png)
[quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
![Super signature principle (fully automated super signature) [Yun Xiaoduo]](/img/b8/5bafbada054b335568e64c7e1ac6bb.jpg)
Super signature principle (fully automated super signature) [Yun Xiaoduo]

【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)

Webgl texture
![[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)](/img/d3/cab8a1cba3c8d8107ce4a95f328d36.png)
[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)

有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?

从 1.5 开始搭建一个微服务框架链路追踪 traceId
随机推荐
Cut ffmpeg as needed, and use emscripten to compile and run
有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?
Use cpolar to build a business website (2)
2022全开源企业发卡网修复短网址等BUG_2022企业级多商户发卡平台源码
【原创】一切不谈考核的管理都是扯淡!
15. Using the text editing tool VIM
How to release NFT in batches in opensea (rinkeby test network)
居然从408改考自命题!211华北电力大学(北京)
What is Base64?
【目标检测】YOLOv5跑通VOC2007数据集
[quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)
Unity's ASE achieves full screen sand blowing effect
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
TypeScript 发布 4.8 beta 版本
Pat grade a 1103 integer factorizatio
Guangzhou Development Zone enables geographical indication products to help rural revitalization
Runnable是否可以中断
HW primary flow monitoring, what should we do
Points for attention in porting gd32 F4 series programs to gd32 F3 series
Webcodecs parameter settings -avc1.42e01e meaning