Mercurial > cortex
comparison org/eyes.org @ 38:99971a59b6ac
quick touch-up for eyes
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 03 Nov 2011 09:53:02 -0700 |
parents | 91090f8a4414 |
children | f080f1e49fba |
comparison
equal
deleted
inserted
replaced
37:eeba17a4bd54 | 38:99971a59b6ac |
---|---|
1 #+title: Simulated Sense of Sight | 1 #+title: Simulated Sense of Sight |
2 #+author: Robert McIntyre | 2 #+author: Robert McIntyre |
3 #+email: rlm@mit.edu | 3 #+email: rlm@mit.edu |
4 #+description: Simulated sight for AI research using JMonkeyEngine3 | 4 #+description: Simulated sight for AI research using JMonkeyEngine3 and clojure |
5 #+keywords: computer vision, jMonkeyEngine3, clojure | 5 #+keywords: computer vision, jMonkeyEngine3, clojure |
6 #+SETUPFILE: ../../aurellem/org/setup.org | 6 #+SETUPFILE: ../../aurellem/org/setup.org |
7 #+INCLUDE: ../../aurellem/org/level-0.org | 7 #+INCLUDE: ../../aurellem/org/level-0.org |
8 #+babel: :mkdirp yes :noweb yes :exports both | 8 #+babel: :mkdirp yes :noweb yes :exports both |
9 | 9 |
72 (doto viewport | 72 (doto viewport |
73 (.setClearFlags true true true) | 73 (.setClearFlags true true true) |
74 (.setBackgroundColor ColorRGBA/Gray) | 74 (.setBackgroundColor ColorRGBA/Gray) |
75 (.addProcessor (scene-processor continuation)) | 75 (.addProcessor (scene-processor continuation)) |
76 (.attachScene (.getRootNode world))))) | 76 (.attachScene (.getRootNode world))))) |
77 | |
78 #+end_src | 77 #+end_src |
79 | 78 |
80 Note the use of continuation passing style for connecting the eye to a | 79 Note the use of continuation passing style for connecting the eye to a |
81 function to process the output. You can create any number of eyes, and | 80 function to process the output. You can create any number of eyes, and |
82 each of them will see the world from their own =Camera=. Once every | 81 each of them will see the world from their own =Camera=. Once every |