diff org/util.org @ 74:fb810a2c50c2

trying to get the hand to work
author Robert McIntyre <rlm@mit.edu>
date Wed, 28 Dec 2011 06:44:36 -0700
parents 257a86328adb
children 77b506ac64f3
line wrap: on
line diff
     1.1 --- a/org/util.org	Wed Dec 28 00:00:23 2011 -0700
     1.2 +++ b/org/util.org	Wed Dec 28 06:44:36 2011 -0700
     1.3 @@ -274,6 +274,16 @@
     1.4  		     :shape (Sphere. 32 32 (float r)))))) 
     1.5    ([] (sphere 0.5)))
     1.6  
     1.7 +(defn green-x-ray 
     1.8 +  "A usefull material for debuging -- it can be seen no matter what
     1.9 +  object occuldes it."
    1.10 +  []
    1.11 +  (doto (Material. (asset-manager)
    1.12 +                   "Common/MatDefs/Misc/Unshaded.j3md")
    1.13 +    (.setColor "Color" ColorRGBA/Green)
    1.14 +    (-> (.getAdditionalRenderState)
    1.15 +        (.setDepthTest false))))
    1.16 +
    1.17  (defn node-seq
    1.18    "Take a node and return a seq of all its children
    1.19     recursively. There will be no nodes left in the resulting