Monday, 22 October 2018

Game - Lighting issue during development

During the development stage of my game, I experienced an issue regarding the lighting of my project.

The lighting in my project was not working for an unknown reason. When I started the run the game in play mode, it was not loading the lighting of the scene, and would only show the player's weapon, door objects and the static turrets. Movement and other mechanics appeared to work. This was not an issue which I have experienced before in Unreal.

I spent time attempting to re-build the lighting to see if it works, but this failed. Even in play mode, it was not showing the error to suggest the lighting required a rebuild. I also spoke to my lecturer, who was unsure how to fix the issue, and further searches online did not reveal any fixes.

I decided to update the static mesh material on all of the affected objects, and this appeared to fix the lighting. The issue appeared to be regarding the static mesh on the cubes.

The issue is visible. You can see a white box in the bottom left of  the map, which was one of the targets


Conclusion
With regards to the lighting, I dislike the fact that the user needs to build (update) the lighting when they add a new game object, or move an existing game object. This can slow down the development process, and usually takes 30 seconds to 1 minute to complete. In comparison to Unity, this is a slow process, as the lighting updates instantly, and you do not have to rebuild it.