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. 

How to light an indoor infinite runner for mobile?

Hey, very new to using UE4. Does anyone have and tips or suggestions that might send me in the right direction on this? I have an infinite runner that spawns and destroys actors that act as sections of the dungeon my character is running through. I'm targeting mobile devices. Unfortunately, since I have to spawn and move each new section, I can't use static lighting which is just about all that mobile supports. I'm allowed to have a directional light, but how can I use that if the whole thing takes place indoors?

Hope I was clear. Thanks for any help you can provide.

Product Version: UE 4.9
more ▼

asked Oct 29 '15 at 03:57 PM in Rendering

avatar image

1 1 3 4

avatar image LordBlackwood Oct 29 '15 at 04:03 PM

P.S. I am going to implement object pooling later, but that still doesn't solve the fact I have to move the level sections into place.

avatar image LordBlackwood Oct 30 '15 at 11:18 AM

Okay I've worked on this some more and still no luck. I've tried taking all the static meshes in my actor and setting them to "light as if static" then placing the actor directly into my scene and lighting it with a separate static point light. My hope that the lighting would bake in, and then I'd be able to move the actor to my player. But that doesn't seem to be the case, moving the actor away from my point light seems to plunge it into darkness.

Is there some way. Any way at all, that I can bake my lighting onto an actor composed of static meshes and then move it around? It doesn't matter if I have to have the object already in my scene, or if I spawn it procedurally. I can handle either, I just need to solve this one problem and I can move forward.

Assistance is greatly appreciated, I'm losing my mind.

avatar image hilbelinknr Nov 03 '15 at 04:02 PM

I don't know if this will help you but I was going through the same thing and was able to make things work decently well by creating material's/ material instances with emissive textures so that they show up well. Then I used one directional light with a hue to get a better atmosphere. You can see in the setup for the materials as well as the setup I had with lights vs the setup using the textures. Obviously the one with the actual lights looks way better but considering the limitations of mobile you can get an ok looking replica.

avatar image LordBlackwood Nov 09 '15 at 12:05 PM

Thanks a lot, I've been getting some ok results so far using the method you've described. Unfortunately your first two images didn't upload correctly it seems, so i can't see what your specific material settings were.

Thanks for the tip!

avatar image hilbelinknr Nov 09 '15 at 01:54 PM

Sorry about that. I'll try upload them again.Material Setup and Screenshot of the end result.End Result

alt text

runnermobile.jpg (404.6 kB)
materialsetup.png (406.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

have a similar question to lighting, but rather than an indoor runner I'm working on an outdoor endless runner where i have the same issues with lighting. Could i use a similar texture set up without having to bake them. Each object is set to spawn randomly, this is where the lighting has issues. Any answers?

more ▼

answered Jan 22 '16 at 08:55 PM

avatar image


avatar image hilbelinknr Feb 07 '16 at 01:28 AM

It should work. I can't think of any reason why it wouldn't just because it is "outside"

(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