[vtkusers] Texture not displayed (NVIDIA problem?)

Fischer, Timothy A. FischerT at kpgraphics.com
Wed Aug 14 15:30:20 EDT 2002


Hi,

I've run into a similar problem to this on my IBM T23 laptop, which has an
S3 graphics chip.  I have checked and do have the latest available driver
loaded on my system.

In my case, I can render the object to the screen (set up using
SetScalarModeToDefault() in the mapper) and it will come up in color, but as
soon as I click the mouse in the window to rotate it, it turns white.  If I
re-call SetScalarModeToDefault(), the object color will be back (until I
click in the window again).  If I map the color differently (using
SetScalarModeToUsePointFieldData() and ColorByArrayComponent() in the
mapper), it maintains it's color as I rotate.  

If I set the Hardware Acceleration for the display down to the next to the
bottom setting, this problem goes away -- the object will rotate in color
without changing to white.

In checking this out further, I've come up with a simple example that
exhibits the problem.  I built the "SampleMFC" project from
Examples\GUI\Win32, and made a sample data file.  Opening the data file with
the "Win32SampleMFC.exe" that is generated from this project gives the same
behavior -- the object (a simple cube in the test file) opens as color, but
changes to white as soon as I click to rotate.  If I close the window and
re-open the file, it again comes up initially in color.  This was tried with
both the vtk 4.0 Release and vtk 4.x Nightly distributions.

The data file is the following:

# vtk DataFile Version 2.0
Test Cube
ASCII
DATASET POLYDATA
POINTS 8 float
0.0 0.0 0.0
1.0 0.0 0.0
1.0 1.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
1.0 0.0 1.0
1.0 1.0 1.0
0.0 1.0 1.0
POLYGONS 6 30
4 0 1 2 3
4 4 5 6 7
4 0 1 5 4
4 2 3 7 6
4 0 4 7 3
4 1 2 6 5
POINT_DATA 8
COLOR_SCALARS vertexColors 3
0.0 0.0 0.0
1.0 0.0 0.0
1.0 1.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
1.0 0.0 1.0
1.0 1.0 1.0
0.0 1.0 1.0

So, it seems that something is being set differently when the window is
first rendered than when the window is updated as the object is being
rotated.  Any ideas or suggestions are welcome.

Tim Fischer
fischert at kpgraphics.com



More information about the vtkusers mailing list