Too lazy to comment

This commit is contained in:
2020-01-02 17:58:49 +01:00
parent 9e8cdf1ce4
commit 7fad0cc429
13 changed files with 113 additions and 7 deletions

27
tools/build_from_blender.sh Executable file
View 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