4 (in-package :lambdamundo
)
9 :location
(make-vertex3d* 1.5 1.5 0.0 1.0)
10 :orientation
(make-quaternion* 0.0 0.0 0.0 1.0)))
13 (defparameter *dalek-mesh
* (mixamesh:make-mesh
'lodematron
:md2-mesh
))
15 (defparameter *compiled-dalek-mesh
* nil
) ;; (mixamesh:mesh-compile *dalek-mesh*))
17 ;; (one-shot-compile #P"mesh-compiler.lisp")
19 (defparameter *dalek
* nil
)
21 (defparameter *dalek-md2
*
25 (merge-pathnames #P
"dalekx/tris.md2")
27 :element-type
'(unsigned-byte 8))
28 (lodematron:parse-md2-file dalek-md2
))))
30 (lodematron::pose
*dalek-md2
* (gethash *dalek-mesh
* *meshes
*) "stand16" "brit")
32 (bound-mesh *dalek-mesh
*)
34 (one-shot (mixamesh::make-compiled-mesh
*dalek-mesh
* :skin
(lodematron::skin-of
(gethash *dalek-mesh
* *meshes
*))))
36 (defparameter *dalek-actor
*
39 :location
(make-vertex3d (location-of (gethash *turtle
* *actors
*)))
40 :orientation
(make-quaternion (orientation-of (gethash *turtle
* *actors
*)))))
42 (defparameter *dalek-actor
* (make-npc *dalek-mesh
*))
44 (destroy-actor *dalek-actor
*)