NokiMo
relativisticgame
relativisticgame

patreon


Week 17 progress update

This week I did a lot of work on the game engine to improve its capabilities. I refactored all the remaining ECS Systems so that they use entity registration. This enables building entire scenes programmatically in Lua.

I implemented spot-lights (directional lights and point lights were already supported) and introduced depth-maps alongside diffuse, normal and specular maps. Depth-maps can be used to correct the position of surfaces. They turn out to improve lighting in the tunnel, making it a bit more realistic.

I also experimented with using depth maps to completely replace normal maps. This seems to work decently, except around edges, where antialiasing gets visibly worse. I think this has to do with how mipmaps are calculated for depth maps. I will need to generate the mipmaps by hand and see whether anything can be done, especially around ignoring pixels that have no depth information. I am optimistic this is possible.

I attach a video that shows my first attempts at adding more lights to the scene. The appearance of my demo is still quite basic, but I think it improved a bit.


Related Creators