<div dir="ltr">If you were getting invalid pixel format but rendering was working then I think the real problem was there and somehow it was working. <div><br></div><div>Can you send us the output of glxinfo? Also, for testing, can you call Render() on Renderer before you call initialize()? </div>
<div><br></div><div>Thanks</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 30, 2014 at 3:40 PM, Boxer, Aaron <span dir="ltr"><<a href="mailto:Aaron.Boxer@uhn.ca" target="_blank">Aaron.Boxer@uhn.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">More details:<br>
<br>
The very first error I get is when I initialize my interactor:<br>
<br>
Here is the code:<br>
<br>
////////////////////////////////////////////////////////////////////////////////////<br>
<br>
if ( self = [super initWithFrame:frame])<br>
<br>
{<br>
<br>
_renderer = vtkOpenGLRenderer::New();<br>
<br>
_cocoaRenderWindow = vtkCocoaRenderWindow::New();<br>
<br>
_cocoaRenderWindow->SetWindowId( self);<br>
<br>
<br>
_cocoaRenderWindow->AddRenderer(_renderer);<br>
<br>
_interactor = vtkCocoaRenderWindowInteractor::New();<br>
<br>
<br>
<br>
_interactor->SetRenderWindow(_cocoaRenderWindow);<br>
<br>
<br>
[self setVTKRenderWindow:_cocoaRenderWindow];<br>
<br>
<br>
_interactor->Initialize();<br>
<br>
}<br>
<br>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br>
<br>
<br>
and here is the error:<br>
<br>
<br>
<br>
2014-01-30 15:37:15.430 OsiriX[65632:303] invalid pixel format<br>
<br>
2014-01-30 15:37:15.430 OsiriX[65632:303] invalid context<br>
<br>
ERROR: In /Users/aaron/src/VTK/Rendering/OpenGL/vtkOpenGLRenderer.cxx, line 1202<br>
<br>
vtkOpenGLRenderer (0x10e09ab00): failed after Clear 1 OpenGL errors detected<br>
<div class="im"><br>
0 : (1286) Invalid framebuffer operation<br>
<br>
<br>
<br>
<br>
</div>In the old code, I would get an "invalid pixel format" error, but it would still render.<br>
<br>
<br>
Cheers,<br>
Aaron<br>
<br>
________________________________<br>
From: vtkusers [<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] on behalf of Boxer, Aaron<br>
Sent: Thursday, January 30, 2014 3:34 PM<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<div class="im">Subject: Re: [vtkusers] another vtk error<br>
<br>
Perhaps this is similar to the following thread:<br>
<br>
<a href="http://vtk.1045678.n5.nabble.com/VTK-OpenGL-errors-td5724237.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-OpenGL-errors-td5724237.html</a><br>
<br>
OpenGL error checking<br>
<br>
From: vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf Of Boxer, Aaron<br>
Sent: Thursday, January 30, 2014 3:25 PM<br>
To: Aashish Chaudhary<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] another vtk error<br>
<br>
Thanks, Aashish. I am running OSX 10.8 Mountain Lion with the master version of VTK.<br>
OSX is running in a VM. I have a version of my software linked to 5.8 that runs fine on the VM.<br>
<br>
Aaron<br>
<br>
<br>
<br>
From: Aashish Chaudhary [mailto:<a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a>]<br>
Sent: Thursday, January 30, 2014 3:20 PM<br>
To: Boxer, Aaron<br>
</div>Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><mailto:<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
<div class="im">Subject: Re: [vtkusers] another vtk error<br>
<br>
Can you provide more information about the system? What OS? Version of VTK (assuming 6.1), Graphics Card etc? (May be you did already in some other email?)<br>
<br>
Also, it would be helpful if you can post some same code and data.<br>
<br>
Thanks,<br>
Aashish<br>
<br>
<br>
</div><div class="im">On Thu, Jan 30, 2014 at 3:02 PM, Boxer, Aaron <<a href="mailto:Aaron.Boxer@uhn.ca">Aaron.Boxer@uhn.ca</a><mailto:<a href="mailto:Aaron.Boxer@uhn.ca">Aaron.Boxer@uhn.ca</a>>> wrote:<br>
Let me add that this used to work with VTK 5.8<br>
<br>
-----Original Message-----<br>
</div><div class="im">From: vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a><mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>>] On Behalf Of Boxer, Aaron<br>
Sent: Thursday, January 30, 2014 3:02 PM<br>
</div><div class="im">To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><mailto:<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Subject: [vtkusers] another vtk error<br>
<br>
I am seeing another error when I try to render:<br>
<br>
<br>
<br>
ERROR: In /Users/aaron/src/VTK/Rendering/VolumeOpenGL/vtkOpenGLRayCastImageDisplayHelper.cxx, line 554<br>
<br>
vtkOpenGLRayCastImageDisplayHelper (0x10e3de0c0): failed after RenderTextureInternal 1 OpenGL errors detected<br>
<br>
0 : (1286) Invalid framebuffer operation<br>
<br>
<br>
Any clues as to what could cause this? I (not surprisingly) do not see any data displayed, just black pixels.<br>
<br>
<br>
Thanks,<br>
<br>
Aaron<br>
<br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
_______________________________________________<br>
</div>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<div class="im"><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
_______________________________________________<br>
</div>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<div class="im"><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
<br>
--<br>
| Aashish Chaudhary<br>
| R&D Engineer<br>
| Kitware Inc.<br>
</div>| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<div class="im HOEnZb"><br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
</div><div class="HOEnZb"><div class="h5">This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a>
</div>