<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Max,<br>
    <br>
    I don't know about Android. I was replying about the OpenGL2 render
    backend and QML as asked by Att. If the option
    Module_vtkRenderingExternal is not available for Android maybe
    someone at Kitware can explain why and suggest workarounds. In the
    header of vtkExternalOpenGLRenderWindow we have the following:<br>
    <br>
    <span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue',
      Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color
      Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 22.4px; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; display: inline !important; float:
      none; background-color: rgb(255, 255, 255);">"This class extends
      vtkGenericOpenGLRenderWindow to allow sharing the same OpenGL
      context by various visualization applications. Basically, this
      class prevents VTK from creating a new OpenGL context. Thus, it
      requires that an OpenGL context be initialized before Render is
      called."</span><br>
    <br>
    <div class="moz-cite-prefix">It clearly states that it prevents VTK
      from creating a new OpenGL context. Which is probably not the case
      with the other classes and it makes things more complicated with
      Qt. There is probably a way to make things work but I don't know
      how.<br>
      <br>
      Good luck.<br>
      <br>
      O.<br>
      <br>
      <br>
      Le 03/02/2016 10:22, Max-Heinrich Laves a écrit :<br>
    </div>
    <blockquote
cite="mid:CAH7_P4-TfcJX=oNQFxyYf78ikWk8o3Fpx6QOniJO4U++ZNAUgQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi Oliver,<br>
                <br>
              </div>
              just after pressing 'send', I realised you are comaso on
              GitHub ;-)<br>
              <br>
            </div>
            When building VTK for x86, you can enable the external
            rendering module with 'Module_vtkRenderingExternal=ON' which
            gives access to vtkExternalOpenGLRenderWindow class.
            Unfortunately, this option is not available when building
            for Android, so subclassing vtkGenericOpenGLRenderWindow
            seems to be necessary. Or am I wrong?<br>
            <br>
          </div>
          Thanks,<br>
        </div>
        Max<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-02-03 10:07 GMT+01:00 Olivier
          COMAS <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:ocomas@apelem.com" target="_blank">ocomas@apelem.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi Max,<br>
              <br>
              I'm comaso on GitHub ;-)<br>
              <br>
              There's probably nothing wrong with your own fork, I just
              meant that the original repository had comments discussing
              the OpenGL2 render backend. Let me know if you had
              troubles understanding how I made it work. I was reporting
              my progress while I was working on it so you have to put
              the pieces together by reading all comments. <br>
              <br>
              Cheers,<br>
              <br>
              Olivier
              <div>
                <div class="h5"><br>
                  <br>
                  <div>Le 03/02/2016 09:39, Max-Heinrich Laves a écrit :<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>Hi Oliver,<br>
                            <br>
                          </div>
                          sorry, that was my own fork on Github. I'll
                          have a look at the comments by comaso. He/she
                          seems to have it running with OpenGL2 render
                          backend.<br>
                          <br>
                        </div>
                        Thanks!<br>
                      </div>
                      Max<br>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2016-02-03 9:34 GMT+01:00
                        Olivier COMAS <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:ocomas@apelem.com"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ocomas@apelem.com">ocomas@apelem.com</a></a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> Hi
                            guys,<br>
                            <br>
                            Look at this page instead: <a
                              moz-do-not-send="true"
                              href="https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6"
                              target="_blank"><a class="moz-txt-link-freetext" href="https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6">https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6</a></a>.
                            The one Max gave was forked from it. Not
                            sure what are the differences but look at
                            the comments below the link I just provided.
                            There is some discussion about the OpenGL2
                            render backend. I managed to make it work
                            and I put in the comments how I did it
                            (comaso). <br>
                            <br>
                            Hope this helps.<span><font color="#888888"><br>
                                <br>
                                Olivier</font></span>
                            <div>
                              <div><br>
                                <br>
                                <div>Le 03/02/2016 08:38, Max-Heinrich
                                  Laves a écrit :<br>
                                </div>
                                <blockquote type="cite">
                                  <div dir="ltr">
                                    <div>
                                      <div>Hi Att,<br>
                                        I was and am still looking for
                                        the same, especially VTK+QML on
                                        Android. The only thing I found
                                        was <a moz-do-not-send="true"
                                          href="https://gist.github.com/the-max0r/35fb43ac43c6e18666c5"
                                          target="_blank">https://gist.github.com/the-max0r/35fb43ac43c6e18666c5</a><br>
                                      </div>
                                      Unfortunately, when compiled with
                                      v7.0.0 (release) and OpenGL2 as
                                      render backend, the code segfaults
                                      at <span>glBlendFuncSeparate</span>
                                      in <span>vtkOpenGLRenderWindow.cxx
                                        at line 373. With VTK 6.3.0 or
                                        7.0 with OpenGL as render
                                        backend, the code runs as
                                        expected. But OpenGL2 is needed
                                        when compiled for Android.<br>
                                        <br>
                                      </span></div>
                                    <span>Max</span></div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">2016-02-03
                                      2:01 GMT+01:00 Lays Rodrigues <span
                                        dir="ltr"><<a
                                          moz-do-not-send="true"
                                          href="mailto:laysrodriguessilva@gmail.com"
                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:laysrodriguessilva@gmail.com">laysrodriguessilva@gmail.com</a></a>></span>:<br>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div dir="ltr">
                                          <div class="gmail_default"
                                            style="font-size:small">Hi
                                            guys,</div>
                                          <div class="gmail_default"
                                            style="font-size:small">There's
                                            a way to bind VTK and QML?</div>
                                          <div class="gmail_default"
                                            style="font-size:small">I
                                            really would like to use VTK
                                            on an app that I'm working
                                            for, but don't find any
                                            information about this kind
                                            of bind.</div>
                                          <div class="gmail_default"
                                            style="font-size:small">Any
                                            tips about it?</div>
                                          <div class="gmail_default"
                                            style="font-size:small"><br>
                                          </div>
                                          <div class="gmail_default"
                                            style="font-size:small">Att</div>
                                          <span><font color="#888888">
                                              <div><br>
                                              </div>
                                              -- <br>
                                              <div>
                                                <div dir="ltr">
                                                  <div>
                                                    <div dir="ltr">
                                                      <div>
                                                        <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div>
                                                          <div dir="ltr">
                                                          <div><img
                                                          moz-do-not-send="true"
src="https://docs.google.com/uc?export=download&id=0B9wuK5E9rkEFNGhtMGdPdUFBbjg&revid=0B9wuK5E9rkEFZngvckd3NHdaVDVTclpScmJ0TlJLclZXYjdVPQ"
                                                          height="113"
                                                          width="420">--</div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </font></span></div>
                                        <br>
_______________________________________________<br>
                                        Powered by <a
                                          moz-do-not-send="true"
                                          href="http://www.kitware.com"
                                          rel="noreferrer"
                                          target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a></a><br>
                                        <br>
                                        Visit other Kitware open-source
                                        projects at <a
                                          moz-do-not-send="true"
                                          href="http://www.kitware.com/opensource/opensource.html"
                                          target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>
                                        <br>
                                        Please keep messages on-topic
                                        and check the VTK FAQ at: <a
                                          moz-do-not-send="true"
                                          href="http://www.vtk.org/Wiki/VTK_FAQ"
                                          target="_blank"><a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></a><br>
                                        <br>
                                        Search the list archives at: <a
                                          moz-do-not-send="true"
                                          href="http://markmail.org/search/?q=vtkusers"
                                          target="_blank"><a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a></a><br>
                                        <br>
                                        Follow this link to
                                        subscribe/unsubscribe:<br>
                                        <a moz-do-not-send="true"
                                          href="http://public.kitware.com/mailman/listinfo/vtkusers"
                                          rel="noreferrer"
                                          target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
                                        <br>
                                      </blockquote>
                                    </div>
                                    <br>
                                  </div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                  <pre>_______________________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>

Search the list archives at: <a moz-do-not-send="true" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
                                </blockquote>
                                <br>
                              </div>
                            </div>
                          </div>
                          <br>
_______________________________________________<br>
                          Powered by <a moz-do-not-send="true"
                            href="http://www.kitware.com"
                            rel="noreferrer" target="_blank">www.kitware.com</a><br>
                          <br>
                          Visit other Kitware open-source projects at <a
                            moz-do-not-send="true"
                            href="http://www.kitware.com/opensource/opensource.html"
                            target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>
                          <br>
                          Please keep messages on-topic and check the
                          VTK FAQ at: <a moz-do-not-send="true"
                            href="http://www.vtk.org/Wiki/VTK_FAQ"
                            target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
                          <br>
                          Search the list archives at: <a
                            moz-do-not-send="true"
                            href="http://markmail.org/search/?q=vtkusers"
                            rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a></a><br>
                          <br>
                          Follow this link to subscribe/unsubscribe:<br>
                          <a moz-do-not-send="true"
                            href="http://public.kitware.com/mailman/listinfo/vtkusers"
                            rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>

Search the list archives at: <a moz-do-not-send="true" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Powered by <a moz-do-not-send="true"
              href="http://www.kitware.com" rel="noreferrer"
              target="_blank">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at <a
              moz-do-not-send="true"
              href="http://www.kitware.com/opensource/opensource.html"
              rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>
            <br>
            Please keep messages on-topic and check the VTK FAQ at: <a
              moz-do-not-send="true"
              href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer"
              target="_blank"><a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a></a><br>
            <br>
            Search the list archives at: <a moz-do-not-send="true"
              href="http://markmail.org/search/?q=vtkusers"
              rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
            <br>
            Follow this link to subscribe/unsubscribe:<br>
            <a moz-do-not-send="true"
              href="http://public.kitware.com/mailman/listinfo/vtkusers"
              rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>