codecat / godot-tbloader

TrenchBroom Loader for Godot 4. (Alternative to Qodot)
MIT License
232 stars 29 forks source link

Patch Meshes #72

Open solitaryurt opened 1 year ago

solitaryurt commented 1 year ago

Any chance we can support patch meshes like the ones supported by the Quake 3 .map file?

ie:

// entity 0
{
"classname" "worldspawn"
// brush 0
{
patchDef2
{
patchMeshTexture
( 9 3 0 0 0 )
(
( ( -496 -672 -80 -2 1 ) ( -496 -672 48 -2 0.5 ) ( -496 -672 176 -2 0 ) )
( ( -496 -800 -80 -1.5 1 ) ( -496 -800 48 -1.5 0.5 ) ( -496 -800 176 -1.5 0 ) )
( ( -368 -800 -80 -1 1 ) ( -368 -800 48 -1 0.5 ) ( -368 -800 176 -1 0 ) )
( ( -240 -800 -80 -0.5 1 ) ( -240 -800 48 -0.5 0.5 ) ( -240 -800 176 -0.5 0 ) )
( ( -240 -672 -80 0 1 ) ( -240 -672 48 0 0.5 ) ( -240 -672 176 0 0 ) )
( ( -240 -544 -80 0.5 1 ) ( -240 -544 48 0.5 0.5 ) ( -240 -544 176 0.5 0 ) )
( ( -368 -544 -80 1 1 ) ( -368 -544 48 1 0.5 ) ( -368 -544 176 1 0 ) )
( ( -496 -544 -80 1.5 1 ) ( -496 -544 48 1.5 0.5 ) ( -496 -544 176 1.5 0 ) )
( ( -496 -672 -80 2 1 ) ( -496 -672 48 2 0.5 ) ( -496 -672 176 2 0 ) )
)
}
}
}