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"

Large Mesh Import Freezing Editor

Hello, I am a new user to UE4. I am importing a very large scene from 3DS Max as a FBX. The mesh has 5.5 million polygons and 6 million vertices. Before I begin the import I get the following message:

Attempting to import a very large file, proceed? File Size: 319 MB

After 10+ minutes the editor seems completely unresponsive. Is it normal to wait 20 to 30+ minutes for import? System specs below..

AMD Phenom II x2 3.3GHz CPU 8.00 GB Patriot Gamer Series RAM 2GB GDDR5 EVGA GeForce GTX 660 Super Clocked edition 64-bit Windows 7 Ultimate

Product Version: Not Selected
Tags:
more ▼

asked Mar 25 '14 at 09:59 PM in Using UE4

avatar image

krankzinnig
86 6 10 9

avatar image krankzinnig Mar 25 '14 at 11:34 PM

UPDATE: I optimized my mesh down to 2m polys and 81mb and the editor appears to be frozen right off the bat even after waiting 20 minutes...

EDIT: The editor eventually crashed with error reporter

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

3 answers: sort voted first

That is still really big and will take some time. Also did you triangulate in the export?

more ▼

answered Mar 25 '14 at 11:36 PM

avatar image

DJMidKnight
1.2k 50 24 51

avatar image krankzinnig Mar 25 '14 at 11:38 PM

I do see that it is working on the import, but after waiting it finally crashed. Triangulate? I am not choosing any options in the export, just the 2013 format setting.

avatar image krankzinnig Mar 25 '14 at 11:47 PM

Attempted import again, after it says creating mesh 100% the editor crashes immediately.

avatar image DJMidKnight Mar 25 '14 at 11:55 PM

is it a static or skeletalmesh? If skeletal and say a weapon that does not move make sure to check Rigid body in the import.

If you haven't already I would recommend reading the documentation here. FBX Documentation

There is a way to export things so they work and if you don't export the right way the import of course will not be happy.

avatar image krankzinnig Mar 26 '14 at 12:30 AM

It is a static mesh, I followed the documentation for importing/exporting a static mesh and selected triangulate. However I am still getting the same result. Is it completely unrealistic to use a scene of this size in a single import? Breaking this apart would be a nightmare, the rows of stairs in my stadium contain 1 million polygons alone (its a full scale stadium including concourse so this serves as the entire world for my UE4 application). I would really hate to decrease quality of all 200+ meshes or import them individually.

avatar image Matt STAFF Mar 26 '14 at 12:31 AM

The next build will contain an import all button in the FBX dialog if you want to import multiple meshes at the same time (using the same settings)

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

There are a couple of known issues that have been fixed and will be in the lastest update. You can work around them in your asset. The known issues and workarounds are:

  1. If you are importing materials and textures with your asset ensure they all have unique names.

  2. With such a huge mesh you may have more than 64 materials. We dont support more than 64 materials per mesh in order to keep the draw call count per mesh sane and not reduce performance. I suggest combining materials or breaking apart your mesh into multiple meshes if that is the case.

more ▼

answered Mar 26 '14 at 12:25 AM

avatar image

Matt STAFF
451 11 4 8

avatar image krankzinnig Mar 26 '14 at 12:31 AM

I am currently exporting without textures or materials. Even though the scene contains only a handful of textures (15 or so).

avatar image krankzinnig Mar 26 '14 at 12:32 AM

Perhaps this is related, the entire stadium mesh is 558 meters in length. Could the scale be messing with things?

avatar image Matt STAFF Mar 26 '14 at 12:34 AM

There is no scale requirement or limit. To make sure it isnt issue #2 try importing a version of the mesh with the same material for each poly. There can only be 64 material id's per mesh.

avatar image krankzinnig Mar 26 '14 at 12:41 AM

Perhaps I'm confused but if I do not import materials does this still occur? The original mesh may indeed have > 64 materials, I am about to check, but I have been excluding all textures and materials during import.

avatar image Matt STAFF Mar 26 '14 at 12:43 AM

Import materials is the act of the FBX importer importing, creating, and hooking up material assets for you. Still, each triangle has a material ID which is used to batch triangles together when drawing. Triangles with different material id's cannot be batched since they would use a different shader. You cannot have more than 64 of these ID's in your mesh. If you have more than 64 materials on your mesh in maya/max then that would do it. The reason for the limitation is to reduce draw call count.

avatar image krankzinnig Mar 26 '14 at 12:48 AM

OK. I apologize for the ignorance on the importer but that makes a lot of sense to me now. I appreciate the extended explanation :) I will look into this now.

avatar image Matt STAFF Mar 26 '14 at 12:49 AM

To be clear about the fix coming in the next build: It will fix the crash but you will still be limited to 64 materials. Anyone can of course change this value in the source code to be higher (at the risk of performance).

avatar image krankzinnig Mar 26 '14 at 02:34 AM

I am no longer experiencing the crash after removing all materials from my scene in 3DS Max but now the editor is hanging on the Building static mesh 100% step. I waited quite a long time and the editor appears to be completely locked up. I will try degrading the polygons further but I am still unable to import the mesh.

I also tried not merging the meshes and it never seems to even build the first mesh (even though its a rather small one, few thousand polys).

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

Now this is quite old of a question, but I'd like to post some research I've done on this. I've been trying to import my own huge mesh (split into separate objects) in UE4. 2.2 mln vertices total. Towards the end of the process, UE4 tries to allocate ~32 GB of memory... For whatever reason. So yeah - that's why it freezes and crashes.

alt text

more ▼

answered Apr 14 '14 at 06:57 AM

avatar image

omega323_Crew
1 1 2 2

(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