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"

Normal mapped Paper2d sprites display wrong light position ingame, but perfect in editor

Using the paper2d platformer example project as a base, I set up a scene with a dynamic point light (that is not moved in game) in front of 3 non-rotated normal-mapped sprites as such:

alt text

In the editor, this looks correct, but once I start the game i get displayed with this:

alt text

The light however works correctly on "normal" models in the scene, i.e the tiny white orb displayed in the second picture. I cant for the life of me find out how to fix this, anyone have an idea what I have done wrong? I tried moving the point light and different normal-maps, but it never seems to work! (Ignore the dark line, that is from the underlying texture).

Product Version: UE 4.10
Tags:
correct.png (137.2 kB)
incorrect.png (52.7 kB)
more ▼

asked Jan 05 '16 at 10:16 PM in Rendering

avatar image

Krachn
6 4 6 10

avatar image Krachn Jan 06 '16 at 01:19 PM

Still not resolved, is easily replicated by using any normal map on a 2d-sprite in a new project.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi Krachn,

This is a known issue that has been reported with UE-11446, but it is currently backlogged due other priorities at the moment. This is a problem with the Orthographic view that is used with the paper 2d character. You can go into the BP and select the camera. You can change the Projection Mode from Orthographic to Perspective and this will resolve the streaking issue.

To better demonstrate if anyone else comes to this issue and do not quickly see it in your images this is the issue:

alt text

This is just using a simple base color material with a low roughness.

Thank you!

Tim

more ▼

answered Jan 06 '16 at 06:26 PM

avatar image

Tim Hobson ♦♦ STAFF
49k 886 98 874

(comments are locked)
10|2000 characters needed characters left
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