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"

[Paper2D] [Lighting] Tilemaps with masked sprites respond to all lighting at incorrect directions.

Description

It appears that tilemaps using lit methods of rendering are now subject to a lighting bug. If the material for the tilemap is using a 'masked' method of rendering (as is the standard for all Paper2D materials) all lighting will appear at incorrect angles.

  • Point, box, and spot lights projected directly downwards onto a flat plane will only have roughly 50% of their light projected upon them, spread out over a cone.

  • Rotating the plane will change the direction of the light's cone.

  • Directional lights will always be angled incorrectly against the tilemap plane. Pointing a directional light at flat tilemap plane will result in no light. If the plane is rotated upwards, all light will appear against the tilemap, despite the light and the plane now pointing in perpendicular directions.

  • If a tilemap's material uses 'translucent' instead of 'masked', the lighting will appear logically against it, with no inconsistencies between rotation or lighting rendering.

This result seemingly differs from how tilemaps were lit circa Unreal 4.17.

alt text

Reproduction Steps

  1. Delete all content in scene.

  2. Import a texture for a tilemap.

  3. Apply paper 2 settings.

  4. Create tileset.

  5. Create tilemap.

  6. Place tilemap in scene, flat (x as -90).

  7. Duplicate default paper 2D material with one that is lit. Make sure that the tileset is using a "masked" blend mode. Apply to the tilemap.

  8. Place a bright point-light above the tilemap, observe results. Bug: light's radius is not fully visible against the tilemap.

  9. Rotate the tilemap along Z, observe results. Bug: light's radius will rotate.

  10. Place a directional light in scene. Set the directional light to be pointed directly downwards, towards the tilemap. Bug: tilemap will no be affected by the directional light.

  11. Rotate the tilemap so that it's x value is no longer -90, but 0, observe results. Bug: tilemap is now lit by the directional light even though they are directed perpendicularly to one another.

  12. Rotate the tilemap back to -90 along X.

  13. Open the material applied to the tilemap.

  14. Set the blend mode to "Translucent". Observe results. Tilemap will appear to be properly lit.

.

Expected Result

Tile maps are lit in logical ways regardless of their blend modes.

Addendum

A sample project of this bug can be found at: https://www.dropbox.com/s/jmo9boicgz7nlxn/TilemapLights.rar?dl=0 This bug has also been logged via: https://epicsupport.force.com/unrealengine/s/

Product Version: UE 4.21
Tags:
more ▼

asked Nov 18 '18 at 11:20 AM in Bug Reports

avatar image

Chaosian
111 4 12 11

avatar image Jeff A ♦♦ STAFF Nov 20 '18 at 10:10 PM

Hello,

We've recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

avatar image pixhitt Apr 11 '19 at 12:15 AM

Hello, any news about this bug? we need this solved to progress with our project. Thanks

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

0 answers: sort voted first
Be the first one to answer this question
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