<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial size=2>I have a simple TCL
script to load a 16-bit volume, set extents, and display axial slices in
</FONT></SPAN></DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial size=2>a window. I've
done this before using vtk3.2 and it should be straight forward. Now I'm
using vtk4.0 and</FONT></SPAN></DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial size=2>running this on
Win2000 box and I'm getting a strange result. The axial slice displays in
the window</FONT></SPAN></DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial size=2>correctly for about
2 seconds then is replaced by a completely white plane?? Is this an
OpenGL</FONT></SPAN></DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial size=2>problem
possibly? Here's the code snip below.....</FONT></SPAN></DIV>
<DIV><SPAN class=564503122-08072002></SPAN><SPAN class=564503122-08072002><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=564503122-08072002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=564503122-08072002>
<DIV><FONT face=Arial size=2>David Keator</FONT></DIV>
<DIV><FONT face=Arial size=2>Brain Imaging Center</FONT></DIV>
<DIV><FONT face=Arial size=2>Psychiatry and Human Behavior</FONT></DIV>
<DIV><FONT face=Arial size=2>University of California,
Irvine</FONT></DIV></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkVolume16Reader brainv16<BR> brainv16
SetDataDimensions $xdim $ydim<BR> brainv16
SetDataByteOrderToBigEndian<BR> brainv16 SetFilePrefix
$fileprefix<BR> brainv16 SetImageRange 0 [expr
($zdim-1)]<BR> brainv16 SetDataSpacing 1 1
6;<BR> <BR> vtkLookupTable bwLUT<BR> bwLUT
SetTableRange 0 2000<BR> bwLUT SetSaturationRange 0
0<BR> bwLUT SetHueRange 0 0<BR> bwLUT SetValueRange 0
0.75<BR> bwLUT Build</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> vtkImageDataGeometryFilter
filterAxl<BR> filterAxl SetInput [brainv16
GetOutput]<BR> filterAxl SetExtent 0 [expr $xdim-1] 0 [expr $ydim-1]
[expr $zdim/2] [expr
$zdim/2]<BR> <BR> vtkPolyDataMapper
mapperAxl<BR> mapperAxl SetInput [filterAxl
GetOutput]<BR> mapperAxl ScalarVisibilityOn<BR> mapperAxl
SetScalarRange 0 2000<BR> mapperAxl SetLookupTable
bwLUT<BR><BR> vtkActor actorAxl<BR> actorAxl SetMapper
mapperAxl<BR> <BR> vtkRenderer rendAxl<BR> rendAxl AddActor
actorAxl<BR> <BR> vtkRenderWindow
rendAxlWin<BR> rendAxlWin AddRenderer rendAxl</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT><FONT face=Arial
size=2> <BR> rendAxlWin Render<BR> wm withdraw
.<BR> </FONT></DIV></BODY></HTML>