Any triangular mesh can be converted into convex brushes used in map files.
This is achieved by extending a triangle into a pyramid along the back-facing normal.
Alternatively, meshes that have "convex" in their name can be turned into big brushes.
Scene materials are going to be discarded, unless a material list is provided.
Objects might be split into different entities and grouped together.
Line objects will be turned into path_corner entities.
Run the script with --info
option first.
python obj2map.py examples/scene.obj \
--material_list "64_blue_2;64_green_2;64_gold_2;64_blood_2;64_grey_1" \
--normal_offset 2.0 \
--game Quake
Seamless terrain generator with optional chunking for a faster compiling.
Map format is poorly suited for storing large terrains with multiple textures.
python height2map.py examples/height.png \
--material "64_green_1" \
--chunk_size 16 \
--game Quake