[vtkusers] Mesa 5.0.2 not drawing
straw dog
straw_dog at hotmail.com
Mon Dec 8 14:44:55 EST 2003
Thanks, this works like a charm!
--rupert b.
>From: Berk Geveci <berklist at nycap.rr.com>
>To: straw dog <straw_dog at hotmail.com>
>CC: vtkusers at vtk.org
>Subject: Re: [vtkusers] Mesa 5.0.2 not drawing
>Date: 08 Dec 2003 11:08:26 -0500
>
>Unfortunately, it is not enough to replace renderers and render windows.
>You also have to replace all mappers and actors (cameras, lights,
>properties and textures too, if you are creating them yourself) with
>mesa equivalents. This essentially requires duplicating your whole
>rendering pipeline (if you want to have both hardware accelerated
>rendering and mangled mesa rendering). If you want to use mesa classes
>only, make the following calls in the beginning of your program:
> vtkGraphicsFactory::SetUseMesaClasses(1);
> vtkImagingFactory::SetUseMesaClasses(1);
>
>Then, you can create all rendering objects as usual and the factories
>will handle creating the mesa classes.
>
>-Berk
>
>On Mon, 2003-12-08 at 10:49, straw dog wrote:
> > Hello,
> > I've been trying to get vtk4.2.2 to work with Mesa in order to enable
> > off-screen rendering. I've found that code that will work just fine
>with
> > OpenGL draws an empty screen under Mesa. Has anyone experienced this
> > problem. To test the issue, i used the cylinder example from the
> > examples/rendering directory and simply replaced the renderwindow and
> > renderer with Mesa objects, see below.
> >
> > The original Cylinder code compiles and works perfectly. With Mesa, all
>i
> > get is an empty RenderWindow.
> >
> > Has anyone seen this before? Am i botching something in my simple test
>code
> > below? If not, can anyone suggest how to go about diagnosing the
>problem -
> > i really can't see even how to identify what the problem is.
> >
> > Some other details
> > Mesa version is 5.0.2, compiled as mangled-mesa. The Mesa examples work
> > just fine, and i have
> > tried both statically and dynamically linked configurations with the
>above
> > problem.
> >
> > System is linux, redhat8. Kernel 2.4.20.
> > Nvidia Video card, so system Open GL libs are replaced with NVidias -
>but
> > should not be the source of the problem (i don't think) as the examples
>that
> > come with Mesa work fine.
> > vtk version is 4.2.2
> >
> > Thanks much
> > Rupert Brooks
> > McGill Centre for Intelligent Machines
> >
> > Simple code example with Cylinder.cxx from vtk distribution
> >
> > diff vtk/Examples/Rendering/Cxx/Cylinder.cxx
> > /home/rain/igns/tools/VTK/src/Examples/Rendering/Cxx/Cylinder.cxx
> > 27,28d26
> > < #include "vtkMesaRenderer.h"
> > < #include "vtkXMesaRenderWindow.h"
> > 61,62c59,60
> > < vtkMesaRenderer *ren1 = vtkMesaRenderer::New();
> > < vtkMesaRenderWindow *renWin = vtkXMesaRenderWindow::New();
> > ---
> > > vtkRenderer *ren1 = vtkRenderer::New();
> > > vtkRenderWindow *renWin = vtkRenderWindow::New();
> >
> > _________________________________________________________________
> > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> >
>http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
>--
>Berk Geveci <berklist at nycap.rr.com>
>
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
More information about the vtkusers
mailing list