Too lazy to comment
This commit is contained in:
Binary file not shown.
27
tools/build_from_blender.sh
Executable file
27
tools/build_from_blender.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
|
||||
ROOT=${DIR}/../
|
||||
MAPDIR=${ROOT}/id1/maps/
|
||||
|
||||
MAPNAME=test
|
||||
WORKING_DIR=/tmp
|
||||
|
||||
IN=${MAPNAME}.map
|
||||
OUT=${MAPNAME}.bsp
|
||||
|
||||
TOOLS_DIR=${ROOT}/tools/ericw_tools
|
||||
QBSP=${TOOLS_DIR}/qbsp
|
||||
VIS=${TOOLS_DIR}/vis
|
||||
LIGHT=${TOOLS_DIR}/light
|
||||
|
||||
pushd ${WORKING_DIR}
|
||||
${QBSP} -bsp2 ${IN} ${OUT}
|
||||
${VIS} -fast -level 4 -noambient ${OUT}
|
||||
${LIGHT} -bounce -soft -extra -extra4 -dirt -dirtdepth 128 ${OUT}
|
||||
cp ${OUT} ${MAPDIR}
|
||||
popd
|
||||
|
||||
pushd ${ROOT}
|
||||
#./quakespasm-sdl2 +map ${MAPNAME}
|
||||
|
||||
popd
|
||||
38
tools/example.map
Normal file
38
tools/example.map
Normal file
@@ -0,0 +1,38 @@
|
||||
// Game: Quake
|
||||
// Format: Standard
|
||||
// entity 0
|
||||
{
|
||||
"classname" "worldspawn"
|
||||
// brush 0
|
||||
{
|
||||
( -64 -64 -16 ) ( -64 -63 -16 ) ( -64 -64 -15 ) __TB_empty 0 0 0 1 1
|
||||
( -64 -64 -16 ) ( -64 -64 -15 ) ( -63 -64 -16 ) __TB_empty 0 0 0 1 1
|
||||
( -64 -64 -16 ) ( -63 -64 -16 ) ( -64 -63 -16 ) __TB_empty 0 0 0 1 1
|
||||
( 64 64 16 ) ( 64 65 16 ) ( 65 64 16 ) __TB_empty 0 0 0 1 1
|
||||
( 64 64 16 ) ( 65 64 16 ) ( 64 64 17 ) __TB_empty 0 0 0 1 1
|
||||
( 64 64 16 ) ( 64 64 17 ) ( 64 65 16 ) __TB_empty 0 0 0 1 1
|
||||
}
|
||||
// brush 1
|
||||
{
|
||||
( -32 -128 0 ) ( -32 -127 0 ) ( -32 -128 1 ) __TB_empty 0 0 0 1 1
|
||||
( -32 -128 0 ) ( -32 -128 1 ) ( -31 -128 0 ) __TB_empty 0 0 0 1 1
|
||||
( -32 -128 0 ) ( -31 -128 0 ) ( -32 -127 0 ) __TB_empty 0 0 0 1 1
|
||||
( 160 -80 16 ) ( 160 -79 16 ) ( 161 -80 16 ) __TB_empty 0 0 0 1 1
|
||||
( 160 -80 16 ) ( 161 -80 16 ) ( 160 -80 17 ) __TB_empty 0 0 0 1 1
|
||||
( 160 -80 16 ) ( 160 -80 17 ) ( 160 -79 16 ) __TB_empty 0 0 0 1 1
|
||||
}
|
||||
// brush 2
|
||||
{
|
||||
( -272 48 -80 ) ( -272 49 -80 ) ( -272 48 -79 ) __TB_empty 0 0 0 1 1
|
||||
( -272 48 -80 ) ( -272 48 -79 ) ( -271 48 -80 ) __TB_empty 0 0 0 1 1
|
||||
( -272 48 -80 ) ( -271 48 -80 ) ( -272 49 -80 ) __TB_empty 0 0 0 1 1
|
||||
( -80 528 -64 ) ( -80 529 -64 ) ( -79 528 -64 ) __TB_empty 0 0 0 1 1
|
||||
( -80 528 -64 ) ( -79 528 -64 ) ( -80 528 -63 ) __TB_empty 0 0 0 1 1
|
||||
( -80 528 -64 ) ( -80 528 -63 ) ( -80 529 -64 ) __TB_empty 0 0 0 1 1
|
||||
}
|
||||
}
|
||||
// entity 1
|
||||
{
|
||||
"classname" "info_player_start"
|
||||
"origin" "0 -16 40"
|
||||
}
|
||||
38
tools/example.txt
Normal file
38
tools/example.txt
Normal file
@@ -0,0 +1,38 @@
|
||||
// Game: Quake
|
||||
// Format: Standard
|
||||
// entity 0
|
||||
{
|
||||
"classname" "worldspawn"
|
||||
// brush 0
|
||||
{
|
||||
( -64 -64 -16 ) ( -64 -63 -16 ) ( -64 -64 -15 ) __TB_empty 0 0 0 1 1
|
||||
( -64 -64 -16 ) ( -64 -64 -15 ) ( -63 -64 -16 ) __TB_empty 0 0 0 1 1
|
||||
( -64 -64 -16 ) ( -63 -64 -16 ) ( -64 -63 -16 ) __TB_empty 0 0 0 1 1
|
||||
( 64 64 16 ) ( 64 65 16 ) ( 65 64 16 ) __TB_empty 0 0 0 1 1
|
||||
( 64 64 16 ) ( 65 64 16 ) ( 64 64 17 ) __TB_empty 0 0 0 1 1
|
||||
( 64 64 16 ) ( 64 64 17 ) ( 64 65 16 ) __TB_empty 0 0 0 1 1
|
||||
}
|
||||
// brush 1
|
||||
{
|
||||
( -32 -128 0 ) ( -32 -127 0 ) ( -32 -128 1 ) __TB_empty 0 0 0 1 1
|
||||
( -32 -128 0 ) ( -32 -128 1 ) ( -31 -128 0 ) __TB_empty 0 0 0 1 1
|
||||
( -32 -128 0 ) ( -31 -128 0 ) ( -32 -127 0 ) __TB_empty 0 0 0 1 1
|
||||
( 160 -80 16 ) ( 160 -79 16 ) ( 161 -80 16 ) __TB_empty 0 0 0 1 1
|
||||
( 160 -80 16 ) ( 161 -80 16 ) ( 160 -80 17 ) __TB_empty 0 0 0 1 1
|
||||
( 160 -80 16 ) ( 160 -80 17 ) ( 160 -79 16 ) __TB_empty 0 0 0 1 1
|
||||
}
|
||||
// brush 2
|
||||
{
|
||||
( -272 48 -80 ) ( -272 49 -80 ) ( -272 48 -79 ) __TB_empty 0 0 0 1 1
|
||||
( -272 48 -80 ) ( -272 48 -79 ) ( -271 48 -80 ) __TB_empty 0 0 0 1 1
|
||||
( -272 48 -80 ) ( -271 48 -80 ) ( -272 49 -80 ) __TB_empty 0 0 0 1 1
|
||||
( -80 528 -64 ) ( -80 529 -64 ) ( -79 528 -64 ) __TB_empty 0 0 0 1 1
|
||||
( -80 528 -64 ) ( -79 528 -64 ) ( -80 528 -63 ) __TB_empty 0 0 0 1 1
|
||||
( -80 528 -64 ) ( -80 528 -63 ) ( -80 529 -64 ) __TB_empty 0 0 0 1 1
|
||||
}
|
||||
}
|
||||
// entity 1
|
||||
{
|
||||
"classname" "info_player_start"
|
||||
"origin" "0 -16 40"
|
||||
}
|
||||
Reference in New Issue
Block a user