<html><div style='background-color:'><DIV class=RTE>
<P>well i solved my problem by inserting : imageData->Modified() //imageData is of type vtkImageData</P>
<P>but the rendering seems to be going ridiculously slow compared to when I had used imageviewer?</P>
<P>Is there another way to update the pipeline which will make it render faster??? I would use imageviewer, but i need to render multiple actors so i need to use datasetmapper.. (unless there's yet another way to map the data..?)</P>
<P>thanks in advance,</P>
<P>JG</P>
<P> </P>
<P>---------------------------------------------------------------------------------------------------------------------------</P>
<P>---------------------------------------------------------------------------------------------------------------------------</P>
<P>nevermind - the problem is not to do with the way I setup my lookup table..</P>
<P>i realize now that it has to do with the updating of the DataSetMapper,</P>
<P>basically I have an infinite loop, in which the scalar data is modified, fltarray->SetVoidArray() is called, and renWin->Render() is called.</P>
<P>I also added datasetmapper->Update() within the loop</P>
<P>But it doesnt seem to update the data unless I actually initialize teh datasetmapper by doing</P>
<P> vtkDataSetMapper datasetmapper = vtkDataSetMapper::New()</P>
<P>within the loop.. but this really slows down teh rendering process</P>
<P>Why doesn't just calling datasetmapper->Update() work?? Why do i have to reinitialize? Is there another way I can get it to work without reinitializing (so it goes faster)? </P>
<P>Thank you vtkusers<BR><BR></P></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMBENUS/2728??PS=">Get dial-up Internet access now with our best offer: 6 months @$9.95/month! </a> </html>