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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Combine Meshes without Overlapping UV's

Ok, so I have a Fridge that I've modeled in Cinema, each element is broken apart such as Door, Chrome Handles and so forth. I've got those meshes grouped under a null a 0 point and each mesh has two sets of UV's. The problem is that if I wanted to bring this in as static combined mesh all of the UV's stack over each other and cause the light map to fail.

If I don't combine these meshes everything work's fine. I would assume that my UV's might have to respect each other in their placement, so when combined they merge correctly. But I was wondering if there was a way to avoid this type of work.

Thanks in advance.

Product Version: Not Selected
Tags:
more ▼

asked Jul 02 '14 at 04:13 AM in Rendering

avatar image

pixelvspixel
16 2 4 8

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

1 answer: sort voted first

Hi Pixelvspixel,

You go it! That's exactly what you would need to do. If these meshes are combined within UE4 on import and the UVs are not laid out in a way that they will not overlap each other this will cause the overlapping issue you indicated.

If you're going to combine you need to make sure they respect each others bounds by having their own unique spacing to avoid the overlap since their individual UVs will be combined into one once they are combined with the import.

If you have any other questions about it or need further clarification let me know, but it seems like you've already got a good understanding of how they affect each other. :)

Tim

more ▼

answered Jul 04 '14 at 01:14 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 887 101 878

avatar image ColdSteel48 Jan 12 '17 at 11:39 AM

Hi Tim, I have the same problem Unfortunately I bought an asset with 3 LODs which are overlapping UVs on combine - I have 0 clue with 3D authoring tools - so I doubt I can fix it - but I can export each LOD as a separate FBX: Question: If I will export 3 FBXs 1 as base and 2 LODs and add the LODs to the Base in mesh editor in UE4 will i still have the same Overlapping issue ? or I just should research how to do this in Blender and reexport FBX with the tweaked UVs ?

avatar image Tim Hobson ♦♦ STAFF Jan 12 '17 at 02:24 PM

@ColdSteel48

This largely depends on how the UV was laid out for the base mesh. The LODs should all be using the same UV layout with only lower edge/vert count. You can go through the process of exporting them and getting rid of LODs (which you can simply do in the editor as of 4.14 without having to export everything). Sometimes it still takes tweaking in an external program for models though.

If you bought the asset on our Marketplace one of the submission guidelines requires a good UV layout for the lightmap that doesn't have any overlapping faces. You may want to contact the seller and bring this to their attention to update the asset. This should be the case for any Static Meshes and does not apply to skeletal meshes since they do not use lightmaps.

avatar image ColdSteel48 Jan 13 '17 at 10:53 AM

Unfortunately for me I bought it from turbosquid :-(.

avatar image Tim Hobson ♦♦ STAFF Jan 13 '17 at 02:53 PM

Sometimes a lot assets like this do require some setup and fixing when bought from other CG sources. There are some that are "Game-Ready", but often these still don't account for a lightmap UV that is good for UE4 or have a good texture UV that works well with our in-editor lightmap generation. There are some good free tools out there for UVs or even Blender with following a tutorial you can get by just doing a flat mapping technique in most cases to get something that looks good enough to be less problematic.

avatar image ColdSteel48 Jan 14 '17 at 08:02 PM

Yeah this was tagged as game ready but well I tried it with SceneKit and it was even bigger disaster :-))) all the model was just black. Unity somehow managed to live with this but still not perfect - some shadows were completely off. I tried several blender tutorials it didnt help- now I am going to try to make Auto UV channel will update tomorrow if ot helped.

Bit honestly I encountered another model SM_PineTree from landscape package on MarketPlace (I think by Epic) and it had 87.6% overlapping UV when I migrated it to my project - however in landscape project I have no warnings about UVs and lighting. I think I am missing something here.

avatar image Tim Hobson ♦♦ STAFF Jan 17 '17 at 03:10 PM

Static Lighting and lightmaps can be time-consuming to get right, especially when learning because there are a lot of "gotchas" along the way that really just takes time and practice to learn.

If the SM_PineTree asset is from the Open World content we released this is expected. Those assets were taken from the Kite Demo that EPIC did for GDC 2015 with a specific design in mind. They were only intended to be used as movable actors because that project only used dynamic lighting so there was no need for lightmaps. Generally for things like foliage you wouldn't want to have that be statically lit anyway because often in games or projects these will move and sway with the wind to some degree rather than just stay completely still. If static lighting was used the cast shadow on the ground wouldn't look very natural sitting still while the tree moved. Often times the swaying is handled via the material and not actual wind assets although these asset were created with SpeedTree which can use the Directional WInd actor in UE4.

SpeedTree assets also have a lot of UVs with 1 still often being used for the lightmap but it's just a matter of looking at the UV and seeing if it looks like a Lightmap UV compared to a texture UV.

(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