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"

Can each element in a static mesh have its own lightmap ?


I am importing a fbx file with multiple elements, each with its own lightmap.

My problem is that all the lightmaps appear on the uv channel 0 together, resulting in a somewhat messy shadow map (the "light map coordinate index" is set to 0 because for each element i use the same map for texture and light).

alt text

So each element seems to have its own uv map for texture (which is correct, all my elements are textured correctly), but they all seem to share the same large messy lightmap (superposition of every individual lightmaps).

Is there a way to assign a different lightmap to each element or should i build (some way or another) a global lightmap for all my static mesh and assign it to uv channel 1 ?



Product Version: Not Selected
more ▼

asked Jun 03 '14 at 05:19 PM in Rendering

avatar image

860 75 93 362

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

1 answer: sort voted first

Unfortunately no, you need to import the elements as different meshes, or lay out their lightmap UVs so they do not overlap. Note that packing lots of meshes together like this means you will have to use a higher lightmap resolution, which will make build times longer (the largest lightmap resolution usually dominates the build time, the same mesh split into smaller pieces builds faster).

more ▼

answered Jun 03 '14 at 05:43 PM

avatar image

1.9k 31 11 72

avatar image uced Jun 03 '14 at 05:47 PM

Hi Daniel,

Pity, maybe for a future release ?

Anyway, thanks for the answer and the info !

All the best


(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