[comp.sys.sgi] Help needed transforming images.

culhane@vis.toronto.edu (Sean Culhane) (05/02/91)

[Disclaimer: Please forgive me if this has been talked about before, but I 
just started reading this group recently, and our site only keeps news around 
for 10 days or so ...]

Hello.

I am trying transform am image on the screen (ie: rotate it), and am slightly
baffled.  I am using both a Personal Iris and a 4D/340VGX.  

At the beginning of chapter 10 (Pixels) in the IRIS-4D Series Graphics Library
Programming Guide, it says that

   "Pixels, like raster fonts, are not nearly as easy to transform (rotate,
    scale, etc.) as geometric figures."

(To me, this implies that it *is* possible, but just not easy.)

So far, I have tried using the "lrectwrite" function to display an image
(and this works nicely), but this image seems to be unaffected by any
transformations that I perform.  To be sure, I display the image repeatedly
in a loop, and do a

   move( 0, 0, 0 ); 
   draw( 0, 10, 0 );
   rotate( 200, 'x' );
   rotate( 200, 'y' );

within the loop just before the lrectwite. The lines ARE transformed on each 
iteration of the loop, but the image doesn't move.

Obviously, I am missing something here.  Could some kind soul PLEASE point
out the error of my ways, or at least point me in the right direction.

ADVthanksANCE,
Sean.
--
Sean Culhane, Computer Vision Lab,  |"I know not with what weapons World War
Dept. of Computer Science,          | III will be fought, but World War IV
University of Toronto               | will be fought with sticks and stones."
culhane@{vis|ai|cs}.toronto.edu     |          -- Albert Einstein