Lighting Problem

Hi, i’ve made this lighting for my game, but i have a problem with mobile devices, basically the point lights wont appear in the game

on studio (pc):

on mobile:

The lighting:
image

1 Like

Check what the automatic Graphics settings ends up being set at when playing on mobile.
If it’s an older or lower end device it may not be able to process Lighting settings the same way.

It looks like you’ve got everything tweaked the wrong way around. Do you have an outdoor setting for this place, and what is the lighting supposed to look like outdoors?
Set your Lighting Technology to Future for the latest type of Lighting.
You’ve got the Ambient setting all the way to black, and the OutdoorAmbient as gray. Try switching the two.
You have your Brightness jacked up to 3.33, where 1 is normally fine for outdoor lighting.

the game’s based only in this room

Read through my previous post and try the settings I’ve suggested.

It appears that you’re using that lighting bug with the fog to get a more “retro” style lighting, which I’ve heard simply doesn’t work on mobile.

Now as for specifically how it doesn’t work, I’m not too sure, but I wouldn’t be surprised if this is the result of it not working.

You may have to adjust the lights in your scene in order for mobile to start working, or just outright remove the effect on mobile if altering the lights doesn’t work.

Just add this somewhere in the client code:

local UserInputService = game:GetService("UserInputService")
function GetDevice()
	if UserInputService.TouchEnabled and not UserInputService.MouseEnabled then
		return "Mobile"

	else
		return "PC"

	end
end

if GetDevice() == "Mobile" then
	game.Lighting.FogEnd = 10000
	game.Lighting.FogStart = 10000
	game.Lighting.FogColor = Color3.fromRGB(0, 0, 0)
end

ty man, i was going crazy with this thing

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.