<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I do this with to_texture commands to jit.gl.render as well<div><br class="webkit-block-placeholder"></div><div><br><div><div>On Oct 1, 2007, at 10:21 AM, Wesley Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Btw what is the most convenient way to render multiple objects to the same texture? I was hoping that @capture scene could simply be applied to multiple objects, but it only seems to work with one at a time.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">That's a tricky one.<span class="Apple-converted-space"> </span>There are 3 ways to render to texture:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1) @capture, only works for that object</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2) @capture with jit.gl.sketch and multiple drawobject commands</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">3) use jit.gl.lua and jit.gl.begincapture/jit.gl.endcapture commands</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">and this made me think of another possibility that might be quite</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">useful for a future version of Jitter</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">jit.gl.texture @capture_layer .<span class="Apple-converted-space"> </span>This would render all all objects</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">assigned to a layer to a texture.<span class="Apple-converted-space"> </span>hmmm.<span class="Apple-converted-space"> </span>will have to think about</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">this some more.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">wes</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">jitter mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:jitter@cycling74.com">jitter@cycling74.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.cycling74.com/mailman/listinfo/jitter">http://www.cycling74.com/mailman/listinfo/jitter</a></div> </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#B51C1C" size="2"><span class="Apple-style-span" style="font-size: 10px;; color: rgb(181, 28, 28); "><b style="color: rgb(181, 28, 28); font-size: 10px; font-weight: bold; "><span class="Apple-style-span" style="color: rgb(181, 28, 28); font-size: 10px; font-weight: bold; ">v a d e //</span></b></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; min-height: 12px; ; font-size: 10px; "><font class="Apple-style-span" color="#7F7F7F"><br style="color: rgb(127, 127, 127); font-size: 10px; "></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#7F7F7F" size="2"><span class="Apple-style-span" style="font-size: 10px;; color: rgb(127, 127, 127); "><b style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; "><span class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; ">www.vade.info</span></b></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#7F7F7F" size="2"><span class="Apple-style-span" style="font-size: 10px;; color: rgb(127, 127, 127); "><b style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; "><span class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; ">abstrakt.vade.info</span></b></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span> </div><br></div></body></html>