crapola / blender_t3d

Blender Import-Export add-on for Unreal .T3D files.
11 stars 1 forks source link

Empty collection and MOPP parser #11

Open AnyResO opened 3 months ago

AnyResO commented 3 months ago

I'm trying to import an old map made for Unreal Engine 2 / 2.5 in UnrealEd.

@crapola Do you know why importing the following map in Blender 4.0 results in an empty collection with no meshes?

https://gist.github.com/AnyResO/1754e25777c75f5f8d1f3e170d62826c

AnyResO commented 3 months ago

Ah it seems your regex here expects classes to be only Brush while it could be Engine.Brush

https://github.com/crapola/blender_t3d/blob/7f77cfd6c627c3aed6f9e6247813dc18f4270d5f/blender_t3d/t3d_parser.py#L30

see https://gist.github.com/AnyResO/1754e25777c75f5f8d1f3e170d62826c#file-mp-beml4-canyoncrusade-t3d-L32

crapola commented 3 months ago

Indeed, I think using r"""(Begin Actor Class=(?:Engine.)?Brush .*?End Actor)""" will work.

AnyResO commented 3 months ago

It seems that a .t3d can also be tied to a binary .mopp. Do you by any chance have any clues on how to extract the terrain geometry from this file?

I found this wiki that describes the format in more detail, but that's all for now https://github.com/niftools/nifxml/wiki/Havok-MOPP-Data-format

Here's a zip archive with sample data MP-BEML4-BloodVeldt.zip