Last change
on this file since 5232 was
5232,
checked in by FelixSchulthess, 16 years ago
|
I AM A WORLDENTITY TOO
|
-
Property svn:executable set to
*
|
File size:
555 bytes
|
Rev | Line | |
---|
[5232] | 1 | #!/bin/bash |
---|
| 2 | dir=${pwd} |
---|
| 3 | name=$1 |
---|
| 4 | subdir=$2 |
---|
| 5 | if [[ $2 = "" ]] ; then |
---|
| 6 | $2="." |
---|
| 7 | fi |
---|
| 8 | |
---|
| 9 | echo "renaming files in ./${2}/ to ${1}_XX.jpg" |
---|
| 10 | cd $2 |
---|
| 11 | cp 0001.jpg "${1}_BK.jpg" |
---|
| 12 | cp 0002.jpg "${1}_LF.jpg" |
---|
| 13 | cp 0003.jpg "${1}_FR.jpg" |
---|
| 14 | cp 0004.jpg "${1}_RT.jpg" |
---|
| 15 | cp 0005.jpg "${1}_UP.jpg" |
---|
| 16 | cp 0006.jpg "${1}_DN.jpg" |
---|
| 17 | cd $dir |
---|
| 18 | |
---|
| 19 | echo -e "creating material script:\n" |
---|
| 20 | echo -e "material Orxonox/${1}{\n\ttechnique{\n\t\tpass{\n\t\t\tlighting off\n\t\t\tdepth_write off\n\t\t\ttexture_unit{\n\t\t\t\tcubic_texture ${1}.jpg separateUV\n\t\t\t\ttex_address_mode clamp\n\t\t\t}\n\t\t}\n\t}\n}" |
---|
Note: See
TracBrowser
for help on using the repository browser.