Mercurial > cortex
view org/body.org @ 47:ee55966ce7f6
enhanced cortex.utils to do proper lighting when viewing objects
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 11 Nov 2011 00:52:47 -0700 |
parents | 286a00500ee5 |
children | 96a41b384100 |
line wrap: on
line source
1 #+title: The BODY!!!2 #+author: Robert McIntyre3 #+email: rlm@mit.edu4 #+description: Simulating a body (movement, touch, propioception) in jMonkeyEngine3.5 #+SETUPFILE: ../../aurellem/org/setup.org6 #+INCLUDE: ../../aurellem/org/level-0.org8 * Body10 #+srcname: body-main11 #+begin_src clojure12 (ns cortex.body13 (use (cortex world util import)))15 (use 'clojure.contrib.def)16 (cortex.import/mega-import-jme3)17 (rlm.rlm-commands/help)19 ;;(.loadModel20 ;; (doto (asset-manager)21 ;; (.registerLoader BlenderModelLoader (into-array String ["blend"])))22 ;; "Models/person/person.blend")24 (defn view-model [^String model]25 (view26 (.loadModel27 (doto (asset-manager)28 (.registerLoader BlenderModelLoader (into-array String ["blend"])))29 model)))30 #+end_src39 * COMMENT generate Source.40 #+begin_src clojure :tangle ../src/cortex/body.clj41 <<body-main>>42 #+end_src