[vtkusers] Moving 2D image in 3D space

Raphael Sebbe raphael.sebbe at tcts.fpms.ac.be
Mon Feb 17 08:52:17 EST 2003


Thanks, that works. But it is slow. I don't understand why, as it 
should come down to the same set of GL commands in the end (when 
compared to image actor).

Raphael


On Sunday, February 16, 2003, at 10:29 PM, 
David.Pont at ForestResearch.co.nz wrote:

>
> Hi Raphael,
>    I have used the plane + texture technique successfully to allow 
> images
> to be placed and moved in 3D.
> I had vtkTIFFReader and used GetDataExtent to get the image dimensions.
> Input the image to a vtkTexture. Use vtkPlaneSource to create a plane 
> and
> SetPoint0, 1 and 2 to size the plane to the image dimensions.
> vtkTransformPolyDataFilter and vtkTransform to apply scaling and
> positioning to the plane, then to a mapper and actor. On the actor use
> SetTexture to apply the image to the plane. By modifying (and updating)
> vtkTransform I was able to allow the user to move the image with the 
> mouse.
> I did have some problems with the image (texture) not displayng (on 
> Windows
> 2000) which required me to disable most hardware acceleration on the
> graphics card :-(  but otherwise it worked very well.
>
>   hope this helps,
>       Dave Pont
>
>
> Hi all,
>
> I am currently using vtkImageActor to render images in 3D space. Now
> I'd like to move and rotate that image around. As vtkImageActor does
> not derive from vtkProp3D, it is not straightforward... What's the
> easiest route from here ? Using plane source/texture ?
>
> Thanks !
>
> Raphael Sebbe




More information about the vtkusers mailing list