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"

Import FBX, doesnt auto-generate lightmap for one mesh

Build: This is a binary build, Version: 4.10.1-2791327+++depot+UE4-Releases+4.10

Details: When I import a single FBX (but with several meshes). I don't combine the meshes, and UE4 won't autogenerate a lightmap for the final mesh that it imports. It generates lightmaps for the other meshes, except for the last one.

Link to video: https://youtu.be/-B5jHKV-XY4

Repro Steps: 1. Import an FBX 2. Select 'yes' to autogenerate lightmaps 3. Select 'no' to 'combine meshes' 4. Select 'import all' and let the meshes, textures and materials import 5. Check the number of UV channels... the last mesh will only have one UV channel because a lightmap hasn't been generated for it

Additional: This issue seems to occur 100% of the time. I'm using Windows 10 on a fairly high-spec MSI gaming laptop..

Product Version: UE 4.10
Tags:
more ▼

asked Jan 23 '16 at 10:57 AM in Bug Reports

avatar image

aNorthStar
1k 8 17 20

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

1 answer: sort voted first

Hi WhiteNorthStar,

Using your repro steps I'm not able to get the same result you've described. I've only made a simple asset that has three differently shaped boxes. I've tested in 4.9, 4.10, and 4.11 p3, without issue.

Test Asset

If you'd like to attach a test asset that this happens with, in a zip file I can have a look and see if I can see anything out of the ordinary.

Thank you!

Tim

sm_box_test.zip (4.7 kB)
more ▼

answered Jan 25 '16 at 07:30 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 887 101 878

avatar image aNorthStar Jan 25 '16 at 09:01 PM

Hi Tim... that's great, thanks for getting back to me so promptly...

As you said, the three boxes in your FBX worked perfectly... 2 UV channels on each.

But in the attached FBX, the second building just imports with 1 UV channel. Then again, my triangle count is a bit out of control... the second building has over 180,000 triangles so this might be the cause.

Cheers, David

link text

buildings.zip (4.1 MB)
avatar image Tim Hobson ♦♦ STAFF Jan 25 '16 at 10:06 PM

Alright, I had a look at the asset in 3DS Max and I separated the two buildings into single FBXs and imported. The only one causing the issue is the building that is on the left (the bigger one with 180k tris).

This is really more of a content creation issue that doesn't work well with the lightmap generation in UE4 on import. When I open the mesh and create the lightmap in the static mesh editor it'll generate the second UV but nothing is available to view in the second UV, which is an issue.

To be honest, I could enter this as a bug, but I can already say that it would be backlogged or marked as "Won't Fix" since it's such an edge case and can be corrected if the UV that it was being generated from were broken up to fit the limitations of the lightmap generation.

This is a short list of limitations and how the generated lightmaps work:

  • Lightmaps do not break or divide any UV chunks when it's being generated. It will only repack the texture UV (UV 0 in UE4).

  • Requires that UV Islands be broken up and laid out to work properly without any Overlapping UV warnings.

  • Large objects (vert/poly count) do not tend to work well. Lightmap resolutions would have to be set so high that you are more likely to see artifacts in the light bake. It's recommended to break the model up into smaller chunks that can be reassembled.

(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