x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Best Way to write dynamic Text on static Meshs?

Hello,

my basic problem is that I have a lot of static meshs and I have to write a separate text on each of them. The meshs are simple rectangles and the text should be on every page. Here is a picture how it should look like:

alt text

Currently I use CanvasRenderTexture2D to create textures with the desired text. This is my code for it (As Pictures because i can't find how to make pretty Code in this):

The CanvasRenderTexture2D-Object:

alt text

The method called after UpdateRecource:

alt text

However, this method leads to massive memory consumption, so that the engine can no longer be used with 4000 static meshes. It uses all 32 GB ram i have. For my project it is however necessary to have 4000 or more meshes at the same time, whilst keeping performance as good as possible.

My question now is whether it gives a resource-saving method to create a dynamic text when creating the static mesh and write it to the mesh?
The Text should be on each site of the Mesh.
By dynamic I mean that only when creating the mesh is known what this text looks like, not that the text should be changed at runtime.

I just started working with the Unreal Engine and hope that one of you knows a better solution for my problem. Thank you in advance for suggestions.

Product Version: UE 4.19
Tags:
crt2dcode.png (21.7 kB)
updatecode.png (86.7 kB)
more ▼

asked Mar 04 '19 at 09:09 PM in Rendering

avatar image

GreyMatz
1 1

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question