On Fri, Apr 11, 2008 at 11:43 AM, marius schebella &lt;<a href="mailto:marius.schebella@gmail.com">marius.schebella@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br></div>
I don&#39;t know how I could translate the objects correctly without gemheads or separators, maybe storing the current XYZlocation and subtracting it from the relative position? would that be faster than to use pushmatrix popmatrix?<div class="Ih2E3d">
<br>
</div></blockquote><div><br>For something like a grid this is not difficult to do, but for less uniform structures it would be a pain.&nbsp; <br><br>Pushing and popping the matrix is not expensive done sparingly, but it does accumulate.&nbsp; Once the geometry count gets high you will need all the time you can get.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">the geometry I was using so far was simple, but objects could still be faster I guess. are you talking about display lists like VOBs or FBOs? I have to read more about that and how gem makes use of it.</div>
<div class="Ih2E3d"></div></blockquote><div><br>A display list is the geometry compiled and sent to the card once and then called from storage on the GPU for drawing.&nbsp; The model object uses display lists to help handle large numbers of triangles found in most models.<br>
<br>VBO is a vertex buffer object which can be quite fast if you need to modify geometry on the CPU side and submit it to the GPU each frame.&nbsp; <br><br>FBO is a way to render offscreen to use rasterized geometry as a texture in another framebuffer (usually the one drawn to screen).&nbsp; FBOs will probably not help you here.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">write as write in c++? or write as write in luagl?<br></div><font color="#888888">
<br></font></blockquote><div><br>C++ - Jamie did a lot of this for his personal use.<br><br>I have not used luagl, but I suspect it will not be comparable to C in speed.<br><br>cgc<br> </div></div><br>