diff org/test-creature.org @ 120:83e638955e89

fixed bug in retina-sensor-image
author Robert McIntyre <rlm@mit.edu>
date Sat, 21 Jan 2012 09:30:47 -0700
parents ebfd62779ab4
children 05e60a0ed043
line wrap: on
line diff
     1.1 --- a/org/test-creature.org	Sat Jan 21 08:30:28 2012 -0700
     1.2 +++ b/org/test-creature.org	Sat Jan 21 09:30:47 2012 -0700
     1.3 @@ -644,8 +644,7 @@
     1.4        #(ImageToAwt/convert
     1.5          (.getImage (.loadTexture (asset-manager) %))
     1.6          false false 0)
     1.7 -      (read-string
     1.8 -       eye-map))))
     1.9 +      (eval (read-string eye-map)))))
    1.10  
    1.11  (defn eye-dimensions
    1.12    "returns the width and height specified in the metadata of the eye"
    1.13 @@ -790,7 +789,7 @@
    1.14               topology
    1.15               (vec 
    1.16                (for [[x y] whites]
    1.17 -                (bit-xor
    1.18 +                (bit-and
    1.19                   mask (.getRGB @vision-image x y))))))))
    1.20          retinal-map))
    1.21      ]))