summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NOTES57
-rwxr-xr-xexamples/anonet_map.sh11
-rwxr-xr-xexamples/xcmd.sh2
3 files changed, 70 insertions, 0 deletions
diff --git a/NOTES b/NOTES
new file mode 100644
index 0000000..7bab329
--- /dev/null
+++ b/NOTES
@@ -0,0 +1,57 @@
+this may not be what actually happens, but this is what I'd like:
+
+x and z are floor.
+
+y is up and down.
+
+yr rotation 0 is facing east. because that's what rotation 0 is in cartesian coordinates.
+yr is yaw
+xr is pitch
+zr is roll
+
+the rotations need to be within the range: 0 <= r < 360 (so modulo 360 should work)
+
+minimap: view from above
+ +z?
+ |
+ |
+ |
+ |
+-x --------+-------- +x
+ |
+ |
+ |
+ |
+ -z?
+the reason the minimap has positive x being down is so that camera view at rotation 0 is with
+positive x to the right so 2D vector graphics don't need any dimensions flipped
+
+camera view: facing rotation 0
+ +y
+ |
+ |
+ |
+ |
+-x --------+-------- +x
+ |
+ |
+ |
+ |
+ -y
+
+increasing yr causes rotation counter-clockwise on the minimap. (around y axis)
+
+
+this is what minetest does. I guess I'll do this.
+
+camera angle 0 is north.
+north is +Z
+south is -Z
+west is -X
+east is +X
+up is +Y
+down is -Y
+
+there is no angle 0 actually. 0 < angle <= 360
+
+I guess I should use yaw.
diff --git a/examples/anonet_map.sh b/examples/anonet_map.sh
new file mode 100755
index 0000000..2c66640
--- /dev/null
+++ b/examples/anonet_map.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+cat <(printf "%s move 0 0 -270\n" "$USER") \
+ <(wget http://hacking.allowed.org/cgi-bin/map_hackvr.cgi -qO- 2>/dev/null) \
+ /dev/stdin \
+ | slowcat 0 \
+ | hackvr_x11 "$USER" \
+ | grep --line-buffered action \
+ | stdbuf -oL cut '-d ' -f3 \
+ | xargs -r -L1 printf "AS%s\n" \
+ | tee /dev/stderr \
+ | xargs -r -L1 ./xcmd.sh whois -h hacking.allowed.org
diff --git a/examples/xcmd.sh b/examples/xcmd.sh
new file mode 100755
index 0000000..0c230d6
--- /dev/null
+++ b/examples/xcmd.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec $* | xmessage -file - &