Hello,

I just fixed VTKEdge/Common/vtkKWECoreGraphicsGPUInfoList.mm
(svn revision 1481).

I tried it on Tiger with an ATI 128MB and on Snow Leopard on a MacBook
Pro in both energy modes (9400M 256MB+9600M GT 512MB)

Please give it a try without forcing SetMaxMemoryInBytes anymore and
let more if it works for you.

For the second question, try to not use vtkKWEGPUVolumeRayCastMapper
directly but instead use vtkKWEVolumeMapper which is a volume mapper
chooser. Notably, it can switch automatically between a low res mapper
and high res GPUVolumeRayCastMapper to allow good interaction
experience.

Regards.


On Tue, Feb 9, 2010 at 7:52 AM, Fauze Polpeta <[email protected]> wrote:
> Hi Francois;
> On Leopard everything went fine, except two things:
> 1) I had to SetMaxMemoryInBytes since the amount of memory of my NVidia was
> not identified correctly. It's a minor issue I think if I consider that the
> video board will always be the same.
> 2) When using Shading it becomes almost impossible to interact with the
> volume. I know shading requires more memory and processing power but I'm on
> a GTX 285 with 1GB. Am I missing something or doing something wrong??
> Best Regards
> Fauze
> On Mon, Feb 8, 2010 at 1:56 PM, Francois Bertel
> <[email protected]> wrote:
>>
>> 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
>
>



-- 
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

Reply via email to