diff options
author | epoch <epoch@hacking.allowed.org> | 2016-11-21 03:08:58 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2016-11-21 03:08:58 -0600 |
commit | dcc04cba2446a7bfe8af8268229f3ca28e228b13 (patch) | |
tree | 8d441104cb47dc719aec20b97bdee70a70b9d4a7 /filebrowser/list_to_cubes.sh | |
parent | 2ca9aa1c7fc8e39743e8aa8a2b715773657d3842 (diff) | |
download | hackvr-dcc04cba2446a7bfe8af8268229f3ca28e228b13.tar.gz hackvr-dcc04cba2446a7bfe8af8268229f3ca28e228b13.zip |
added an example use of hackvr with the filebrowser dir.
updated a bunch of stuff in hackvr needed to that that filebrowser working.
added a multicast example what uses mcast program in my misc repo.
updated obj2hackvr to require a filename as argument instead of using stdin
Diffstat (limited to 'filebrowser/list_to_cubes.sh')
-rwxr-xr-x | filebrowser/list_to_cubes.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/filebrowser/list_to_cubes.sh b/filebrowser/list_to_cubes.sh new file mode 100755 index 0000000..5de89a6 --- /dev/null +++ b/filebrowser/list_to_cubes.sh @@ -0,0 +1,12 @@ +#!/bin/bash +while read -r line;do + if [ "_$line" != '_' ];then +# ../tools/obj2hackvr.pl "$line" ../meshes/cube.obj + printf "%s addtriangle 1 0 0 0 1 0 0 0 0\n" "$line" + printf "%s move 0 %d 0 0 0 0 0 0 0\n" "$line" "$i" + i=$[i+2] + else + printf "epoch deleteallexcept epoch\n" + i=0 + fi +done |