OH, you aren't supposed to instantiate the vtkMesa classes directly..<br><br>Instead, you should tell the Factories to use Mesa Objects, and that will be done for you automagically. Put something like this at the top:<br>
<br><pre> // Indicate that we want to use Mesa Offscreen<br> vtkGraphicsFactory *factGraphics = vtkGraphicsFactory::New();<br> factGraphics->SetUseMesaClasses(1);<br> factGraphics->Delete();<br><br> vtkImagingFactory *factImage = vtkImagingFactory::New();
<br> factImage->SetUseMesaClasses(1);<br> factImage->Delete();<br><br><br></pre><br>Fyi, this has been dealt with before: <a href="http://public.kitware.com/pipermail/vtkusers/2005-March/078880.html">http://public.kitware.com/pipermail/vtkusers/2005-March/078880.html
</a><br><br>Kitware guys, is there anything that can be done to make this a bit more "explicit"? Like put something in the mesa-object construtors to see if the factories are configured for Mesa Classes & spit out a warning or an error?
<br><div><span class="gmail_quote">On 5/10/06, <b class="gmail_sendername">Kevin H. Hobbs</b> <<a href="mailto:kevin.hobbs.1@ohiou.edu">kevin.hobbs.1@ohiou.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 2006-05-09 at 14:02 -0400, Kevin H. Hobbs wrote:<br>> I've slowly been isolating my problem with making a volume rendered<br>> movie offscreen on our MPI cluster.<br>><br>> I'm using VTK from CVS.<br>>
<br>> The mangled Mesa I've been using most is version 6.4.2.<br>><br>> The example VTK/Examples/MangledMesa/Tcl/OffScreenCone.tcl works but the<br>> attached code, based off of it and<br>> VTK/Examples/VolumeRendering/Tcl/IntermixedUnstructuredGrid.tcl, does
<br>> not work. I just get a black image.<br>><br>> An added annoyance is that when I build VTK with mangled mesa regular<br>> rendering segfaults.<br><br>It seems I was using the wrong threshold. So The GL version was
<br>correctly rendering a black and transparent volume on a black<br>background. After fixing that, I think I have the problem isolated to<br>Offscreen Volume Rendering alone.<br><br>The attached OSVolumeRender.cxx can easily be switched between
<br>off-screen and on-screen rendering with a few comments.<br><br>When vtkRenderer and vtkRenderWindow are used, the SetOffScreenRendering<br>line is commented out, and I use my VTK without mangled mesa the program<br>works.
<br><br>When vtkMesaRenderer and vtkXMesaRenderWindow are used, the<br>SetOffScreenRendering line is included, and my VTK with mangled mesa is<br>used, the program segfaults at render().<br><br>Again, onscreen rendering works, offscreen rendering works, onscreen
<br>volume rendering works, offscreen volume rendering does not work.<br><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.3 (GNU/Linux)<br><br>iD8DBQBEYhwuqBtEuW+gRPERAoljAJ9cJPgT46X7INg4r4WN9zo1xO+aGQCffmhZ<br>
uTqv3Yg9ggaNHnj1V5TVTCM=<br>=X7NS<br>-----END PGP SIGNATURE-----<br><br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br><br></blockquote></div>
<br>