[vtkusers] Prob with Win2000 display?

Keator, David dbkeator at uci.edu
Mon Jul 8 18:39:24 EDT 2002


 
Hi,
 
I have a simple TCL script to load a 16-bit volume, set extents, and display
axial slices in 
a window.  I've done this before using vtk3.2 and it should be straight
forward.  Now I'm using vtk4.0 and
running this on Win2000 box and I'm getting a strange result.  The axial
slice displays in the window
correctly for about 2 seconds then is replaced by a completely white plane??
Is this an OpenGL
problem possibly?  Here's the code snip below.....
 
Thanks,
 
David Keator
Brain Imaging Center
Psychiatry and Human Behavior
University of California, Irvine
 
 
vtkVolume16Reader brainv16
  brainv16 SetDataDimensions $xdim $ydim
  brainv16 SetDataByteOrderToBigEndian
  brainv16 SetFilePrefix $fileprefix
  brainv16 SetImageRange 0 [expr ($zdim-1)]
  brainv16 SetDataSpacing 1 1 6;
  
 vtkLookupTable bwLUT
  bwLUT SetTableRange 0 2000
  bwLUT SetSaturationRange 0 0
  bwLUT SetHueRange 0 0
  bwLUT SetValueRange 0 0.75
  bwLUT Build
 
 vtkImageDataGeometryFilter filterAxl
  filterAxl SetInput [brainv16 GetOutput]
  filterAxl SetExtent 0 [expr $xdim-1] 0 [expr $ydim-1] [expr $zdim/2] [expr
$zdim/2]
    
 vtkPolyDataMapper mapperAxl
  mapperAxl SetInput [filterAxl GetOutput]
  mapperAxl ScalarVisibilityOn
  mapperAxl SetScalarRange 0 2000
  mapperAxl SetLookupTable bwLUT

 vtkActor actorAxl
  actorAxl SetMapper mapperAxl
 
 vtkRenderer rendAxl
  rendAxl AddActor actorAxl
   
 vtkRenderWindow rendAxlWin
  rendAxlWin AddRenderer rendAxl
   
 rendAxlWin Render
 wm withdraw .
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020708/2942e47b/attachment.htm>


More information about the vtkusers mailing list