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. 

Moveable Light - Lighting Channel Error

Hi guys!

We encountered an issue with the lighting channels.

We use multiple lighting channels for lighting the interior of a moving vehicle and for the exterior environment. The environment use fully baked lighting, and the moving vehicle has some movable point lights attached to it which light the interior but should not affect the exterior (and vice vers).

Lighting channels is obviously a solution for this, and it works as well, but there is one mesh in the vehicle, that has some errors in the shading, when we set its lighting channel to 1. When we set it back to 0, the error goes away. But we would need to somehow get channel 1 working correctly, so we can have consistent errorless lighting in the vehicle interior. So our question is, where is this error coming from, and how to fix it.

Some quick notes:

  • it has two materials

  • one of the materials uses UV channel 1 for the normalmap

  • when we apply a material which does not have the said normalmap, the issue is not present

  • other meshes with the same material do show up the error

  • other meshes of similar kind, with exact same technique produced do not produce the issue

  • the normalmap is baked from a highpoly

alt text

Thanks!

Product Version: UE 4.11
Tags:
error.jpg (1.1 MB)
more ▼

asked Jul 18 '16 at 01:25 PM in Rendering

avatar image

DigitalArrow
11 1 5

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

3 answers: sort voted first

Most likely your issue is down to the fact that tangent space is determined by UV0. Consider using local space normal map, if you need UV channel other than 0 for your normal map.

more ▼

answered Jul 18 '16 at 05:20 PM

avatar image

Deathrey
7.8k 130 31 292

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

Tangent space is defined by UV coordinates. Tangent space basis is only calculated for UV0 for performance reasons. You can read up more here.

There is a material function called Derive Tangent Basis that allows you to compute tangent space for UV sets other than 0, but as I mentioned in the answer above, you should use a local space normal map in your case.

Your issue is also covered here

more ▼

answered Jul 19 '16 at 08:54 AM

avatar image

Deathrey
7.8k 130 31 292

avatar image DigitalArrow Jul 19 '16 at 09:38 AM

Awesome! Thanks!

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

We managed to fix the error by swapping uv channel 0 and 1 so now the normal map use uv 0. But the question remains, why the errors appears when you use a normal map with uv channel 1?

more ▼

answered Jul 19 '16 at 07:53 AM

avatar image

DigitalArrow
11 1 5

(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