[vtkusers] very slow rendering of imageData using imageData->Modified()

Lisa Avila lisa.avila at kitware.com
Tue Dec 23 09:37:46 EST 2003


Hello JG,

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.

Lisa


At 11:31 PM 12/20/2003, Jean-Guy LaRoche wrote:

>well i solved my problem by inserting 
>:  imageData->Modified()  //imageData is of type vtkImageData
>
>but the rendering seems to be going ridiculously slow compared to when I 
>had used imageviewer?
>
>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..?)
>
>thanks in advance,
>
>JG
>
>
>
>---------------------------------------------------------------------------------------------------------------------------
>
>---------------------------------------------------------------------------------------------------------------------------
>
>nevermind - the problem is not to do with the way I setup my lookup table..
>
>i realize now that it has to do with the updating of the DataSetMapper,
>
>basically I have an infinite loop, in which the scalar data is modified, 
>fltarray->SetVoidArray() is called,  and renWin->Render() is called.
>
>I also added datasetmapper->Update() within the loop
>
>But it doesnt seem to update the data unless I actually initialize teh 
>datasetmapper by doing
>
>         vtkDataSetMapper datasetmapper = vtkDataSetMapper::New()
>
>within the loop.. but this really slows down teh rendering process
>
>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)?
>
>Thank you vtkusers
>
>
>
>----------
><http://g.msn.com/8HMBENUS/2728??PS=>Get dial-up Internet access now with 
>our best offer: 6 months @$9.95/month! 
>_______________________________________________ This is the private VTK 
>discussion list. Please keep messages on-topic. Check the FAQ at: Follow 
>this link to subscribe/unsubscribe: 
>http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031223/8905b534/attachment.htm>


More information about the vtkusers mailing list