Hello, Yes, the comment is valid: the nVidia driver has a bug on Snow Leopard that prevents to run the GPU volume mapper.
I don't have Leopard. You can try to remove the lines you are pointing at on your leopard installation and see what kind of result you have. If it works then I will put a statement specific to just snow leopard and not leopard. Regards. On Mon, Feb 8, 2010 at 8:41 AM, Fauze Polpeta <[email protected]> wrote: > Dear Team; > Via debug I found the following strange piece of code in > vtkKWEOpenGLGPUVolumeRayCastMapper.cxx: > // It does not work on Apple OS X Snow Leopard with nVidia. > // There is a bug in the OpenGL driver with an error in the > // Cg compiler about an infinite loop. > #ifdef __APPLE__ > this->LoadExtensionsSucceeded=0; > return; > #endif > This belongs to the function void > """vtkKWEOpenGLGPUVolumeRayCastMapper::LoadExtensions(vtkRenderWindow > *window)""", which, in turn is called by """void > vtkKWEOpenGLGPUVolumeRayCastMapper::PreRender(...). > What I conclude is: by setting """this->LoadExtensionsSucceeded=0""" will > always lead """LoadExtensions""" to fail on Mac OS X apps that rely on > vtkKWEOpenGLGPUVolumeRayCastMapper. Such fail will not only occurs on Snow > Leopard but also in Leopard. > Please, can someone point me out if my findings makes sense? > Best Regards > Fauze > > On Sat, Feb 6, 2010 at 2:03 AM, Fauze Polpeta <[email protected]> > wrote: >> >> Dear Edge Team; >> >> I'm trying to build a simple volume rendering application on top of Cocoa >> in order to evaluate the GPU Ray Casting support, but when I run the >> application I've got the following error: >> >> --- >> >> ERROR: In >> /Users/fauze/Development/toolkits/vtkedge/source/VolumeRendering/vtkKWEOpenGLGPUVolumeRayCastMapper.cxx, >> line 4139 >> vtkKWEOpenGLGPUVolumeRayCastMapper (0x768d600): Rendering failed because >> the following OpenGL extensions are required but not supported: >> >> Program received signal: “EXC_BAD_ACCESS”. >> >> --- >> >> I'm sure the program is ok since it works with the ordinary mappers of VTK >> and also if I let VTKEdge to load itself the mapper (vtkKWEVolumeMapper). >> The error occurs when I opt by vtkKWEGPUVolumeRayCastMapper which leads to >> the deployment of the vtkKWEOpenGLGPUVolumeRayCastMapper. The point is that >> the "following OpenGL extensions" are not listed and thus I can't figure out >> what is happening. >> >> Please, can someone give me so help? Some framework I'm missing? I'm >> running on top of Mac Pro Core i7 - NVidia GTX 285 - Snow Leopard / Leopard. >> >> Thanks in advance >> >> Fauze >> >> >> Ps.: The VTKEdgeVolumeRenderingCxxTests have printed out: Required >> extensions not supported. >> >> >> >> >> > > > _______________________________________________ > VtkEdge mailing list > [email protected] > http://public.kitware.com/cgi-bin/mailman/listinfo/vtkedge > > -- François Bertel, PhD | Kitware Inc. Suite 204 1 (518) 371 3971 x113 | 28 Corporate Drive | Clifton Park NY 12065, USA _______________________________________________ VtkEdge mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/vtkedge
