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"

Procedurally generated level on ES2 device, lights not illuminating scene

Hi all,

I'm working on an infinite runner type game and trying to work out lighting on android/ES2.

Currently, I have a floor tile class which is generated per tick. Inside that floor tile, I've included some lighting. Using Shader Model 5, I was able to use moveable lights, but working with ES2, I've only seen strange results (mostly dark scenes) and sometimes varied lighting.

The closest I seem to have gotten to making the lights work on ES2 preview is by setting them to stationary. However, after about the 10th floor tile is generated, I'm back to darkness.

I should mention that my scene is an interior which blocks out the sky. So the skylight is not able to touch anything inside the scene. Is that part of my problem? Can I somehow make the "roof" tile pass through the skylight's illumination to the rest of the scene components below?

Apologies in advance, as I'm just learning the engine but am eager to try things out.

Thanks

Product Version: UE 4.15
Tags:
more ▼

asked Jun 13 '17 at 04:07 AM in Rendering

avatar image

nicksava
31 2 4 9

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

1 answer: sort voted first

First of all, in project settings you need to find and set NumberOFDynamicLights. Last time I saw it, it was maximum 4 sources. Then, in runtime, you must spawn and keep only this 4 lights. But these will not produce any dynamic shadows, only lightning.

Im not sure about performance in this case, so I'd rather use fully unlit environment with shadows drawn on textures.

P.S. Sky light affects everything, you cannot block it in indoor or wherever. Maybe you can't see it because its not supported for es2?

more ▼

answered Jun 13 '17 at 04:42 AM

avatar image

redbox
4.2k 80 17 103

(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