<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Cory,<br>
      <br>
      Thanks for the answer. I wasn't aware that ImmediateModeRendering
      did exactly that. (Btw, it's On, not Off). I tried what you
      suggested and it does make the application faster, but not as fast
      as what I had before. If I don't modify the mapper, I must create
      another vtkPolyData each time I move my cube, then the standard
      mapper renders it. This gets me near 10fps.<br>
      <br>
      In my version, I modified the mapper to receive a
      set<vtkIdType>* (the cells passing in the box) and a
      polydata* (all the fibers), so it renders only the required cells.
      (it doesn't even render its input object... it's a hack, I know).
      With this, there's no useless points/cells copy. If there's a
      cleaner way to do it, I'm all ears :)<br>
      <br>
      Le 2014-06-04 14:55, Cory Quammen a écrit :<br>
    </div>
    <blockquote
cite="mid:CAB5Fpx7vSV1SmGzsBi8n9Q7MQU3VNh_Nw+onR-+8_EK3PuM1rg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi Nil,</div>
        <div><br>
        </div>
        You shouldn't actually need to modify the code. You should just
        be able to turn off use of OpenGL display lists with
        vtkMapper::ImmediateModeRenderingOff().
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
href="http://www.vtk.org/doc/nightly/html/classvtkMapper.html#ab9db044b3f5113808d2de42f13bb4fe8">http://www.vtk.org/doc/nightly/html/classvtkMapper.html#ab9db044b3f5113808d2de42f13bb4fe8</a><br>
        </div>
        <div><br>
        </div>
        <div>Let us know if that gives you the same near-real-time
          updates that removing calls to glNewList does.</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Cory</div>
        <br>
      </div>
    </blockquote>
    <div class="moz-signature">-- <br>
      <table cellpadding="2" cellspacing="2" width="218" border="0"
        height="96">
        <tbody>
          <tr>
            <td valign="middle"> <a href="http://imeka.ca/"> <img
                  alt="Logo Imeka"
                  src="cid:part2.06090509.01020004@imeka.ca" width="66"
                  height="67"> </a> </td>
            <td valign="top"> Nil Goyette, M.Sc.<br>
              Programmer<br>
              <a href="http://imeka.ca/">www.imeka.ca</a> </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>