comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Displaying three images simultaneously (using Object Graphics)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Displaying three images simultaneously (using Object Graphics) [message #46225 is a reply to message #46222] Tue, 08 November 2005 11:05 Go to previous messageGo to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Tue, 08 Nov 2005 18:16:12 +0000, Dick Jackson wrote:

> Now, this gives the images rendered nicely at first but has the odd
> behaviour of IDLgrImages if you rotate the view. They don't rotate, they
> stretch and squish. If you really want images that can rotate, you'll need
> to make a polygon that contains each, something like this:
>
> im1=Obj_New('IDLgrImage', BytScl(BIndGen(3, 10, 10)))
> im2=Obj_New('IDLgrImage', BytScl(RandomU(seed, 3, 10, 10)))
> im3=Obj_New('IDLgrImage', 255B-BytScl(BIndGen(3, 10, 10)))
> poly1=Obj_New('IDLgrPolygon', [[-10,10],[0,10],[0,20],[-10,20]], $
> Color=[255,255,255], Texture_Map=im1, $
> Texture_Coord=[[0,0],[1,0],[1,1],[0,1]])
> poly2=Obj_New('IDLgrPolygon', [[0,0],[10,0],[10,10],[0,10]], $
> Color=[255,255,255], Texture_Map=im2, $
> Texture_Coord=[[0,0],[1,0],[1,1],[0,1]])
> poly3=Obj_New('IDLgrPolygon', [[10,10],[20,10],[20,20],[10,20]], $
> Color=[255,255,255], Texture_Map=im3, $
> Texture_Coord=[[0,0],[1,0],[1,1],[0,1]])
> myModel = Obj_New('IDLgrModel')
> myModel->Add, [poly1, poly2, poly3]
> XObjView, myModel

I should point out that starting with IDL 6.2, IDL renders images using
texture-mapped polygons, doing some of the steps above for you. Further,
there is a new TRANSFORM_MODE property that will treat the image as a
polygon during transforms, instead of just transforming the opposite
corners and making a new 2D box from the new corner locations.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Overlay multiple filled contour plots?
Next Topic: the strange case of readcol.pro in idl 5.6

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:59:54 PDT 2025

Total time taken to generate the page: 0.56005 seconds