Open eranimo opened 7 years ago
Hi @eranimo,
all light-related algorithms in rot.js (LoS, FoV, Lighting) are topology-based. This means they heavily utilize the concept of "neighboring cells". So as far as you are able to extend those typical 2d topologies (4-, 8- and 6-neighbors) to a 3d space, we can probably make some effort in extending these algorithms as well.
I have never thought about a cell-based 3d game. Perhaps a vector-based approach would be more viable? But than these algos from rot.js are not really applicable (for reasons described above).
How difficult would it be to modify / fork rot.js to support 3D field of view and lighting? I realize 3D isn't the focus of this library. I want to implement a dwarf fortress style game and I would like lighting to have a z component. (this is what I'm talking about). Do the algorithms implemented here work as a base / starting off point for simple (as in grid-based) 3D games?