[vtkusers] a problem when run TestAreaSelections.cxx

David E DeMarle dave.demarle at kitware.com
Mon Jun 6 12:48:24 EDT 2011


Your display is configured to use 16 bit color (65 thousand colors). Surface
selection assumes 24 bit color (16 million colors) where the code determines
what cell/point is under each pixel.

Google search for color depth for your OS to determine how to increase and
it will start working.

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


2011/6/6 455535440 <455535440 at qq.com>

> hello everybody~~
> today I try the example :TestAreaSelections.cxx
> here is a part of code in this file
> renWin->Render();
>   int rgba[4];
>   renWin->GetColorBufferSizes(rgba);
>   if (rgba[0] < 8 || rgba[1] < 8 || rgba[2] < 8)
>     {
>     cout <<"Color buffer depth must be atleast 8 bit. Currently: "
>       << rgba[0] << ", " << rgba[1] << ", " << rgba[2] << endl;
>     return 0;
>     }
>
> when my programe run at this  i got the rgba[0] ,rgba[1] , rgba[2] value
> 5,6,5,and it retrun wieh 0
> the message is "Color buffer depth must be atleast 8 bit. Currently,"what
> did this mean?
> i use the image data that suporrted in vtkdata, I don't know what the
> problem is,can any one give me help?  thx~~
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110606/fb8c3030/attachment.htm>


More information about the vtkusers mailing list