当前位置:网站首页>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 <( ̄︶ ̄)>
边栏推荐
- Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
- Unity's ASE achieves full screen sand blowing effect
- 写一篇万字长文《CAS自旋锁》送杰伦的新专辑登顶热榜
- unnamed prototyped parameters not allowed when body is present
- [quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)
- 2. Heap sort "hard to understand sort"
- Oracle控制文件丢失恢复归档模式方法
- 15. Using the text editing tool VIM
- 2. Basic knowledge of golang
- ./ Functions of configure, make and make install
猜你喜欢
写一篇万字长文《CAS自旋锁》送杰伦的新专辑登顶热榜
Ida Pro reverse tool finds the IP and port of the socket server
使用cpolar建立一个商业网站(2)
[Lanzhou University] information sharing of postgraduate entrance examination and re examination
【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码
Cocos uses custom material to display problems
【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
How to create Apple Developer personal account P8 certificate
[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset
从 1.5 开始搭建一个微服务框架链路追踪 traceId
随机推荐
Nacos conformance protocol cp/ap/jraft/distro protocol
Yunxiaoduo software internal test distribution test platform description document
Webcodecs parameter settings -avc1.42e01e meaning
OpenGL's distinction and understanding of VAO, VBO and EBO
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
[quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)
Unity's ASE realizes cartoon flame
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
Stm32f103c8t6 PWM drive steering gear (sg90)
[original] all management without assessment is nonsense!
[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)
【搞船日记】【Shapr3D的STL格式转Gcode】
【目标检测】YOLOv5跑通VOC2007数据集
Mathematical modeling -- what is mathematical modeling
如何在opensea批量发布NFT(Rinkeby测试网)
[data mining] visual pattern mining: hog feature + cosine similarity /k-means clustering
Keil5 does not support online simulation of STM32 F0 series
webgl_ Enter the three-dimensional world (1)
从 1.5 开始搭建一个微服务框架链路追踪 traceId
unnamed prototyped parameters not allowed when body is present