Quote Originally Posted by Ñuño Martínez View Post
I have no problems with loading. I have a program that loads maps and renders in a "build editor". Problem is rendering. I found a paper somebody wrote that analysed how the algorithm worked and I planed to use that information to re-build the algorithm. Problem is that the algorithm works with 2.5D but not with actual 3D (or not 6DOF).

Anyway I have no time now. Too much projects.
This is the source code of DukeViewer: https://www.dropbox.com/s/lsfexp3gus...r_src.zip?dl=0

The source code is propably incomplete, but the main Loader functions, as well as the base of the rendering engine are there.
As far as I can remember, it uses some custom components (not critical). The point of interest is function GetDuke3DMapData() at Duke3DUtils.pas. This function reads a map and feeds the 3d Engine with data (polygons). The texture reading is at TD3DScene.CacheDuke3DTextures() function inside surfaces.pas.