afritz1 / OpenTESArena

Open-source re-implementation of The Elder Scrolls: Arena.
MIT License
915 stars 68 forks source link

Chunk system #200

Closed afritz1 closed 3 years ago

afritz1 commented 3 years ago

This branch has all the work for converting the engine's active level from one big voxel grid to 64x64-sized chunks.

Lots of things are broken at the moment but I was able to enter the game world in a handful of circumstances (basically only interiors). I am making this pull request now in case anyone is interested in testing.

Some things I noticed:

See issue #181.

afritz1 commented 3 years ago

Fixed the voxel definition/textures bug.

Chasms are not rendering. Might be that their world space coordinates are being thrown far away somewhere.

Lights appear to only work in chunk (0, 0).

The stretching voxels bug might be a distance calculation error in the renderer DDA lambda since voxels only look correct in chunk (0, 0).