Mercurial > cortex
comparison org/vision.org @ 341:2e7d786241d3
now I am satisfied with the tests.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 21 Jul 2012 12:20:43 -0500 |
parents | 4f5a5d5f1613 |
children | 5405f369f4a0 |
comparison
equal
deleted
inserted
replaced
340:4f5a5d5f1613 | 341:2e7d786241d3 |
---|---|
490 (comp | 490 (comp |
491 (view-image | 491 (view-image |
492 (if record? | 492 (if record? |
493 (File. "/home/r/proj/cortex/render/vision/2"))) | 493 (File. "/home/r/proj/cortex/render/vision/2"))) |
494 BufferedImage!)) | 494 BufferedImage!)) |
495 (let [timer (RatchetTimer. 60)] | 495 (let [timer (IsoTimer. 60)] |
496 (.setTimer world timer) | 496 (.setTimer world timer) |
497 (display-dilated-time world timer)) | 497 (display-dilated-time world timer)) |
498 ;; This is here to restore the main view | 498 ;; This is here to restore the main view |
499 ;; after the other views have completed processing | 499 ;; after the other views have completed processing |
500 (add-camera! world (.getCamera world) no-op))) | 500 (add-camera! world (.getCamera world) no-op))) |
629 "key-g" (colored-cannon-ball ColorRGBA/Green)}) | 629 "key-g" (colored-cannon-ball ColorRGBA/Green)}) |
630 | 630 |
631 (fn [world] | 631 (fn [world] |
632 (light-up-everything world) | 632 (light-up-everything world) |
633 (speed-up world) | 633 (speed-up world) |
634 (let [timer (RatchetTimer. 60)] | 634 (let [timer (IsoTimer. 60)] |
635 (.setTimer world timer) | 635 (.setTimer world timer) |
636 (display-dilated-time world timer)) | 636 (display-dilated-time world timer)) |
637 ;; add a view from the worm's perspective | 637 ;; add a view from the worm's perspective |
638 (if record? | 638 (if record? |
639 (Capture/captureVideo | 639 (Capture/captureVideo |
781 (:import javax.swing.JFrame) | 781 (:import javax.swing.JFrame) |
782 (:import com.jme3.math.ColorRGBA) | 782 (:import com.jme3.math.ColorRGBA) |
783 (:import com.jme3.scene.Node) | 783 (:import com.jme3.scene.Node) |
784 (:import com.jme3.math.Vector3f) | 784 (:import com.jme3.math.Vector3f) |
785 (:import java.io.File) | 785 (:import java.io.File) |
786 (:import (com.aurellem.capture Capture RatchetTimer))) | 786 (:import (com.aurellem.capture Capture RatchetTimer IsoTimer))) |
787 #+end_src | 787 #+end_src |
788 | |
789 #+results: test-header | |
790 : com.aurellem.capture.IsoTimer | |
791 | |
788 * Source Listing | 792 * Source Listing |
789 - [[../src/cortex/vision.clj][cortex.vision]] | 793 - [[../src/cortex/vision.clj][cortex.vision]] |
790 - [[../src/cortex/test/vision.clj][cortex.test.vision]] | 794 - [[../src/cortex/test/vision.clj][cortex.test.vision]] |
791 - [[../src/cortex/video/magick2.clj][cortex.video.magick2]] | 795 - [[../src/cortex/video/magick2.clj][cortex.video.magick2]] |
792 - [[../assets/Models/subtitles/worm-vision-subtitles.blend][worm-vision-subtitles.blend]] | 796 - [[../assets/Models/subtitles/worm-vision-subtitles.blend][worm-vision-subtitles.blend]] |