3 ms·
Wow. It's been quite some time since I last thought about Comanche. Thank's for the throwback.
by Numberwang 9y ago
Wow. It's been quite some time since I last thought about Comanche. Thank's for the throwback.
- aaron-lebo 9y agoYou may find this interesting: https://comanche3d.com/ https://comanche3d.com/
- gmueckl 9y agoNice, but this implementation should extend the voxels down to the lowest neighbor. This would close the gaps in the steep hillsides. If you're doing it in a pure software implementation and with no tilted camera, you could optimize this heavily. You start at the bottom of the screen and for each vertical row of pixels you march along the heightmap in 2D and project the texels to the screen. You also remember the current hightest Y coordinate that you've drawn. If the new texel is projected higher than that, you draw another vertical line to that position with the texel color and remember that position. So you're filling up your screen from bottom to top in an extremely efficient way.