vtkImageActor does not display right colors
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
vtkImageActor seems to be displaying the wrong colors (at least on ATI radeon 9700).
Here is what a part of the image should look like: www.mark-w.com/real.gif
Here is how vtkImageActor displays it: http://www.mark-w.com/textured.gif
I am passing a vtkImageData instance to actor with 3 unsigned byte components, RGB. I reproduced the same error error in a straight opengl implementation through glTexImage2D() (which vtkImageActor may also use to load the texture up). I was passing '3' as the internal representation for the texture which produces that error. If the internal representation is changed to '4', it is displayed properly in my opengl implementation.
Not sure if this problem is present on other video cards.