[vtkusers] Multiple actors with same image
David Gobbi
dgobbi at atamai.com
Wed Aug 24 02:30:56 EDT 2005
Hi Roger,
To do this efficiently, you'll have to use the same
texture for all of the actors. So forget about
using vtkImageActor or vtkImageMapper, you need to
go one level deeper.
Create a vtkTexture and set its input to your image.
Then use vtkPlaneSource to make a rectangular polydata
that the texture will stick to.
Use the texture and the polydata to create as many
actors as you need.
You should also take a look at vtkGlyph3D. If you
use glyphs to make the entire collection of little
planes into a single actor, then performance will
skyrocket as compared to having a separate actor
for each little plane.
- David
--- Roger Blum <roger_blum at swissonline.ch> wrote:
> Hello,
>
> I would like to display hundreds of image actors
> (bitmaps / symbols) in a 3D
> scene with Tcl/Tk.
> Every actor has it's own position, but all have the
> same symbol. It should
> be possible to select/interact with each actor.
>
> What kind of data source do I choose (vtkPoints,
> vtkPointsSource,
> vtkBMPReader, ..)?
> Which filters do I have to apply ?
> Do I have to create a vtkImageMapper, and what kind
> of actor do I use then?
> Or can I simply use the vtkImageActor?
>
> I 'm experimenting with vtkGUI 1.0 which is great
> for this purpose.
>
> Thanks in advance for your help!
>
> Roger
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list