UV map attributes (or generic mapping attributes) to texture matrix - possible ?

I have Doom 3 .map exporter that takes convex meshes and exports them as brush primitives. More info on what .map format is and what brushes are can be found here:http://fabiensanglard.net/doom3/dmap.php

It does a very good job so far, except it can not transfer texture mapping information from Blender meshes to brushes.

The goal is to either convert UV map attributes into texture matrix, or convert generic procedural mapping attributes into texture matrix (each mesh face would have a separate material and mapping)

Is it something doable?

It’s gotta be not as complicated as the response rate shows for the task to be :confused: