diff org/body.org @ 44:f3e33fd5f97d

working through blender tutorial
author Robert McIntyre <rlm@mit.edu>
date Tue, 08 Nov 2011 01:38:22 -0700
parents 50c92af2018e
children f080f1e49fba
line wrap: on
line diff
     1.1 --- a/org/body.org	Fri Nov 04 07:54:20 2011 -0700
     1.2 +++ b/org/body.org	Tue Nov 08 01:38:22 2011 -0700
     1.3 @@ -5,20 +5,28 @@
     1.4  #+SETUPFILE: ../../aurellem/org/setup.org
     1.5  #+INCLUDE: ../../aurellem/org/level-0.org
     1.6  
     1.7 -
     1.8 -
     1.9 -
    1.10  * Body ! 
    1.11  
    1.12  #+srcname: body-main
    1.13  #+begin_src clojure 
    1.14 -(ns body.body)
    1.15 -(use 'cortex.world)
    1.16 -(use 'cortex.import)
    1.17 +(ns cortex.body
    1.18 +  (use (cortex world util import)))
    1.19 +
    1.20  (use 'clojure.contrib.def)
    1.21  (cortex.import/mega-import-jme3)
    1.22  (rlm.rlm-commands/help)
    1.23  
    1.24 +;;(.loadModel 
    1.25 +;; (doto (asset-manager)
    1.26 +;;   (.registerLoader BlenderModelLoader (into-array String ["blend"])))
    1.27 +;;   "Models/person/person.blend")
    1.28 +
    1.29 +(defn view-model [^String model]
    1.30 +  (view 
    1.31 +   (.loadModel 
    1.32 +    (doto (asset-manager)
    1.33 +      (.registerLoader BlenderModelLoader (into-array String ["blend"])))
    1.34 +    model)))
    1.35  
    1.36  
    1.37  #+end_src
    1.38 @@ -31,7 +39,7 @@
    1.39  
    1.40  
    1.41  * COMMENT generate Source.
    1.42 -#+begin_src clojure :tangle ../src/body/body.clj
    1.43 +#+begin_src clojure :tangle ../src/cortex/body.clj
    1.44  <<body-main>>
    1.45  #+end_src
    1.46