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"

[Bug] Rotating movable static meshes lit as if static screws up their lighting

Hello all, I just discovered an odd bug in our project where we play with movable static mesh actors which have baked lighting (Light as if static).

If you move them during play, everything seems fine.

However, if you rotate them a strange issue occurs. Adding rotation somehow darkens the mesh. Running up to 180° rotation, the mesh becomes nearly complete black. Towards 0° the mesh returns to its original lighting.

I also made a gif to illustrate the issue. It's briefly interrupted at 180°.

alt text

This bug was reproduced as follows:

  1. Open a new/blank project (i chose top-down example project)

  2. Set some mesh actors to movable and light as if static

  3. Add somewhere in BP a continous rotation of the meshes (e.g. level bp -> tick -> addActorRotation)

  4. Bake the lighting of your scene

  5. Start playing and observe & wonder..

Product Version: UE 4.8
Tags:
more ▼

asked Aug 20 '15 at 12:27 PM in Bug Reports

avatar image

LeFxPete
16 2 5 6

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

3 answers: sort voted first

Hi LeFxPete,

I've entered a ticket for this because it looks like the volume light samples aren't being honored for the movable mesh when it's rotated. The ticket is UE-20233.

I'm not sure if this is actually intended behavior or not in the code, but it will be reviewed and I'll update you once there is any progress made on the ticket.

Thank you!

Tim

more ▼

answered Aug 20 '15 at 08:20 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 888 103 879

avatar image LeFxPete Aug 21 '15 at 10:03 AM

Thanks alot for your fast response. I'm curious about the outcome.

avatar image MasterM Dec 07 '15 at 03:08 PM

Hello. Any progress on this bug? I have the exact same issue in my project as well.

avatar image Tim Hobson ♦♦ STAFF Dec 07 '15 at 03:45 PM

@MasterM

This was marked as "by design" and will not be fixed according to the ticket.

avatar image MasterM Dec 07 '15 at 04:01 PM

Thank you for your reply. Care to share any details as to where to look in the engine code so that I can "fix" it myself?

avatar image Tim Hobson ♦♦ STAFF Dec 07 '15 at 04:19 PM

The ticket doesn't include any of that information and I'm not a programmer. I'm not sure exactly what file this would be in in the source, and unfortunately, I don't have the spare time to dig into the code and locate where this could be set.

If you do get a "fix" for this, I would encourage you to submit the pull request via GitHub to help anyone else as well.

Sorry I couldn't be more help.

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

You can fix this by disabling "use lightmap directionality" in your material settings

more ▼

answered Jun 25 '19 at 02:58 PM

avatar image

Quartz04
1

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

This obviously is not a bug. The whole point of setting a mesh to have "static" lighting is to allow the engine to precompute a bunch of stuff so that the game doesn't have to at runtime. There is a direct tradeoff: you lose flexibility and some runtime memory and you gain more processing cycles in your game.

If you want to be able to rotate meshes without them looking bad, don't set them to be static and don't use static lighting on them.

more ▼

answered Jun 25 '19 at 05:23 PM

avatar image

K6L2
34 1 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