<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hello all,<div>I've been corresponding with Dave, preparing for an even in our dome on Saturday. I'm having trouble with instancing when used in combination with (dome-pixels) - it was suggested that the conversation was better suited to this list...</div>
<div><br></div><div><br></div><div><div>(require fluxus-017/planetarium)</div><div><br></div><div>(define dome (dome-build 6 180 2048))</div><div><br></div><div>(define myobj (with-pixels-renderer (dome-pixels)</div><div>
                (build-nurbs-sphere 8 10))) ; make a sphere</div><div><br></div><div>(define (render-spheres n)</div><div>       (cond ((not (zero? n))</div><div>               (with-state</div><div>               (translate (vector n 0 0)) ; move in x</div>
<div>               (draw-instance myobj))     ; stamp down a copy</div><div>               (render-spheres (- n 1)))))    ; recurse!</div><div><br></div><div>;set the view of the camera</div><div>(dome-setup-main-camera 1400 1050)</div>
<div><br></div><div>(every-frame </div><div>    (with-pixels-renderer (dome-pixels)</div><div>        (translate (vector 0 100 -100))</div><div>        (render-spheres 10))) ; draw 10 copies</div><div><br></div><div><br></div>
<div>This is an example, which includes adding (with-pixels-renderer) to the definition of myobj, but I get no spheres at all now...?</div><div><br></div><font color="#888888"><div><br></div><div>Pete</div></font></div></span>