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"

Load a huge mesh at run time

Dear community,

I am very new to UE4, so please dont bare with me if the question is too trivial.

I am having a huge mesh generated by a photogrammetry system such as Photoscan. The mesh can contain several millions or even billions of triangles. From some posts I saw that big files cause problems for the editor, thus I would like to load a mesh as a stream. However, the LOD issue remains. In summary, I would like to acomplish the following points:

  1. Load a mesh (vertices) at run time as a stream

  2. Structure it in a LOD format, which can be handled by UE4. Note, the mesh is a general one. Its not a heightmap of a terrain.

  3. Read textures and apply LOD for real time rendering.

Is there some approach I could use for this? Would be great to see some examples in the tutorials, since I am new to UE4 but experienced in C++.

Thank you very much in advance!

Product Version: UE 4.7
more ▼

asked May 13 '15 at 11:58 PM in C++ Programming

avatar image

1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I would start by giving this a read:


Basically, what you are looking for is the Custom Mesh Component.

To load your mesh at runtime, I would guess you have to load from your file and fill in the FCustomMeshTriangle array from CustomMeshComponent (CustomMeshTris) as you get the data. Since that component herits from UMeshComponent, you also have control over the materials applied on it.

I'm not sure about the LODs, but you could get some tips from UStaticMeshComponent thats also inherits from UMeshComponent and supports LODs.

I hope this sets you on the right track!


more ▼

answered May 14 '15 at 12:59 AM

avatar image

2.1k 70 37 259

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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