Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/contentcreation/orx_artists/FelixSchulthess/skybox/rename.sh @ 12411

Last change on this file since 12411 was 5233, checked in by FelixSchulthess, 16 years ago

skybox script

  • Property svn:executable set to *
File size: 647 bytes
Line 
1#!/bin/bash
2dir=${pwd}
3name=$1
4subdir=$2
5if [[ $2 = "" ]] ; then
6        $2="."
7fi
8
9echo "renaming files in ./${2}/ to ${1}_XX.jpg"
10cd $2
11cp 0001.jpg "${1}_BK.jpg"
12cp 0002.jpg "${1}_LF.jpg"
13cp 0003.jpg "${1}_FR.jpg"
14cp 0004.jpg "${1}_RT.jpg"
15cp 0005.jpg "${1}_UP.jpg"
16cp 0006.jpg "${1}_DN.jpg"
17cd $dir
18
19echo -e "creating material script:\n"
20echo -e "material Orxonox/${1}\n{"
21echo -e "\ttechnique\n\t{"
22echo -e "\t\tpass\n\t\t{"
23echo -e "\t\t\tlighting off"
24echo -e "\t\t\tdepth_write off"
25echo -e "\t\t\ttexture_unit\n\t\t\t{"
26echo -e "\t\t\t\tcubic_texture ${1}.jpg separateUV"
27echo -e "\t\t\t\ttex_address_mode clamp"
28echo -e "\t\t\t}\n\t\t}\n\t}\n}"
Note: See TracBrowser for help on using the repository browser.