Loading light in an area far away from the player

I have a non euclidean system in my game that works by teleporting the player to different areas and this system nearly works flawlessly but fails in one specific spot that breaks the entire illusion. The lighting.

When the player gets teleported, they will easily notice something is off because the all of a sudden the room will be shown with no darkness or lighting and comes back a moment later but this moment alone is enough to destroy the entire illusion.

Is there any way that you can load the lights before the player is within the area so I won’t need to scrap this whole system?

2 Likes

im not sure if i would know enough to answer this adequately but have you tried creating a light instance type on the client with a localscript

Never tried that but does light instances made on client work differently than instances made on the server?

im pretty sure that it would render a bit faster since its being run on your device

Tried it and lighting seems to be giving the same issue

I also want to say that the sun also seems to not be loaded when teleported either

oh, sorry this didnt manage to fix the issue

by the way does the sun have problems after you tried it, or was it already an issue before

The sun always had the issue even before trying your solution.

See if you can set the area where you teleport to not stream in or out

1 Like

you could also try this and see if it would work

I disabled streaming to see if lighting work but I tried using instance streaming and I’m still getting the same issue but I’ve never tried using streaming before so could’ve done something wrong

Well, I thought it was worth a try. I haven’t used the Instance Streaming stuff either, and most non Euclidean places I have seen were older places that seem to have lighting disabled.

bump because I need a solution

May you provide a video, and maybe the code of teleportation etc? I don’t know the exact behavior of the lights.

Is your playtest graphics level low? as this could be the issue, lighting seems to load slower at lower graphic levels.

Sorry for the delayed response everyone else but found out that this is an engine limitation and there is currently no feature that allows the dev to preload lights that isn’t near the player so I ended up rewriting the code to move the world around the player instead of moving the player.

2 Likes

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