<html>
<body>
Hello JG,<br><br>
You should use vtkImageActor - you can have multiple images in a 3D
scene. Keep in mind that it is 3D so you will need to use a restricted
interactor if you want to keep viewing in 2D.<br><br>
Lisa<br><br>
<br>
At 11:31 PM 12/20/2003, Jean-Guy LaRoche wrote:<br><br>
<blockquote type=cite class=cite cite>well i solved my problem by
inserting : imageData->Modified() //imageData is of type
vtkImageData<br><br>
but the rendering seems to be going ridiculously slow compared to when I
had used imageviewer?<br><br>
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..?)<br><br>
thanks in advance,<br><br>
JG<br><br>
<br><br>
---------------------------------------------------------------------------------------------------------------------------<br><br>
---------------------------------------------------------------------------------------------------------------------------<br><br>
nevermind - the problem is not to do with the way I setup my lookup
table..<br><br>
i realize now that it has to do with the updating of the
DataSetMapper,<br><br>
basically I have an infinite loop, in which the scalar data is modified,
fltarray->SetVoidArray() is called, and renWin->Render() is
called.<br><br>
I also added datasetmapper->Update() within the loop<br><br>
But it doesnt seem to update the data unless I actually initialize teh
datasetmapper by doing<br><br>
vtkDataSetMapper datasetmapper
= vtkDataSetMapper::New()<br><br>
within the loop.. but this really slows down teh rendering
process<br><br>
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)? <br><br>
Thank you vtkusers<br><br>
<br>
<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>_______________________________________________ This is the private
VTK discussion list. Please keep messages on-topic. Check the FAQ at:
Follow this link to subscribe/unsubscribe:
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" eudora="autourl">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</blockquote></body>
</html>