<div dir="ltr">It is weird, your code is useful. Let me know have a look at it. <div><br></div><div>Thanks,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 6:01 AM, Lorenzo <span dir="ltr"><<a href="mailto:oneiros.valente@gmail.com" target="_blank">oneiros.valente@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Aashish Chaudhary <aashish.chaudhary <at> <a href="http://kitware.com" rel="noreferrer" target="_blank">kitware.com</a>> writes:<br>
<br>
</span>Ok, so I upgraded to OpenGL2 (still VTK 6.3). I had to add:<br>
<br>
#include <vtkAutoInit.h><br>
VTK_MODULE_INIT(vtkRenderingOpenGL2);<br>
VTK_MODULE_INIT(vtkRenderingContextOpenGL2);<br>
VTK_MODULE_INIT(vtkRenderingVolumeOpenGL2)<br>
VTK_MODULE_INIT(vtkRenderingFreeType);<br>
VTK_MODULE_INIT(vtkInteractionStyle);<br>
<br>
Before any other includes (the rest of the code is the same as before).<br>
<br>
Now my output is... this: <a href="http://i.imgur.com/ccGVjoM.png" rel="noreferrer" target="_blank">http://i.imgur.com/ccGVjoM.png</a><br>
<br>
As you can see, the cube is not purple anymore, the blue cube is visible in<br>
the bottom left corner of it... even more weird.<br>
Do you have any explanation?<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a 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 href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div>