model/proc: Doom 3 / Quake 4 .proc render geometry (models / surfaces to meshes, clockwise-front turned CCW; portals, BSP nodes, shadow models as data)
This commit is contained in:
1 parent
7d4e0381fe
commit
719abb97c0
12 files changed
+2498
-1081
No files matched your search
@@ -1,9 +1,10 @@
|
||||
# Docs inputs for the id Tech sections of the scene / tilemap / archive pages (tools/fixtures.py; tools/docs_check.py
|
||||
# explains the inputs), made by the format fixtures' writers: the hand-written UDMF room (udmf.py).
|
||||
# explains the inputs), made by the format fixtures' writers: the hand-written UDMF room (udmf.py), a dmap-layout
|
||||
# .proc (proc.py).
|
||||
# tests/gen/docs_idtech.luau { files = { [name] = bytes }, vars = { udmfText = "room.udmf", ... } }
|
||||
import importlib.util, os
|
||||
|
||||
INPUTS = ["tools/docs_check.py"]
|
||||
INPUTS = ["tools/docs_check.py", "tools/fixtures/udmf.py", "tools/fixtures/proc.py"]
|
||||
|
||||
|
||||
def mod(ctx, name):
|
||||
@@ -16,6 +17,9 @@ def mod(ctx, name):
|
||||
|
||||
def generate(ctx):
|
||||
check = mod(ctx, "docs_check")
|
||||
files = {"room.udmf": mod(ctx, "udmf").ROOM.encode()}
|
||||
vars = {"udmfText": "room.udmf"}
|
||||
P = mod(ctx, "proc")
|
||||
models, portals, nodes, areas, shadow = P.level(ctx.rng(2), False)
|
||||
files = {"room.udmf": mod(ctx, "udmf").ROOM.encode(),
|
||||
"level.proc": P.write(models, portals, nodes, areas, shadow, "mapProcFile003", False).encode()}
|
||||
vars = {"udmfText": "room.udmf", "procText": "level.proc"}
|
||||
check.emit_inputs(ctx, files, vars)
|
||||
Reference in new issue
Block a user