model/t3d: Unreal T3D (UE1-4) brushes through codecs/model/Brush and actors as nodes

This commit is contained in:
4DBug committed 2026-11-01 19:33:35 -06:00
1 parent 37aa29d03e
commit 8d305bb942
10 files changed
+1084 -4

No files matched your search

+5 -3
View File
@@ -1,6 +1,7 @@
# Docs inputs for the engine / level-editor sections of the scene, tile map, archive and data pages (tools/fixtures.py,
# tools/docs_check.py): the hand-written ASE of tools/fixtures/ase.py, LDtk's AutoLayers_2_stamps sample (tools/fixtures/ldtk.py),
# HaxeFlixel's TurnBasedRPG Ogmo project and level (tests/fixtures/ogmo), a small Godot scene and resource.
# HaxeFlixel's TurnBasedRPG Ogmo project and level (tests/fixtures/ogmo), a small Godot scene and resource, the
# UE1 map of tools/fixtures/t3d.py.
# tests/gen/docs_engines.luau { files = { [name] = bytes }, vars = { aseText = "hand.ase", ... } }
import importlib.util, os
@@ -38,7 +39,7 @@ metallic = 0.25
roughness = 1.0
"""
INPUTS = ["tools/docs_check.py", "tools/fixtures/ase.py", "tools/fixtures/ldtk.py", "tests/fixtures/ogmo"]
INPUTS = ["tools/docs_check.py", "tools/fixtures/t3d.py", "tools/fixtures/ase.py", "tools/fixtures/ldtk.py", "tests/fixtures/ogmo"]
def mod(ctx, name):
@@ -55,6 +56,7 @@ def generate(ctx):
for f in ("turnBasedRPG.ogmo", "room-001.json"):
files[f] = ctx.read("tests/fixtures/ogmo/" + f)
files["world.tscn"] = TSCN.encode()
files["level.t3d"] = mod(ctx, "t3d").ue1()[0].encode()
files["brick.tres"] = TRES.encode()
vars = {"tscnText": "world.tscn", "tresText": "brick.tres", "aseText": "hand.ase", "ldtkText": "stamps.ldtk", "ogmoProjectText": "turnBasedRPG.ogmo", "ogmoLevelText": "room-001.json"}
vars = {"t3dText": "level.t3d", "tscnText": "world.tscn", "tresText": "brick.tres", "aseText": "hand.ase", "ldtkText": "stamps.ldtk", "ogmoProjectText": "turnBasedRPG.ogmo", "ogmoLevelText": "room-001.json"}
check.emit_inputs(ctx, files, vars)