TV and T3D? [message #28049] |
Thu, 15 November 2001 17:17 |
rettmannd
Messages: 2 Registered: November 2001
|
Junior Member |
|
|
Hi Everyone!
This group has been very helpful when I've gotten stuck in the past
but I really haven't seen anything on this.
I was trying to figure out how to make the T3D keyword work for TV.
The IDL help seems to suggest that I should be able to use it in a
similar manner to using it with PLOT (which I can get to work). Does
anyone know why the following code snippet won't work for the TV
command? What am I forgetting?
Thanks!
Dan Rettmann
PRO testt3drot
xs = 256
ys = 256
im = INDGEN(xs,ys) MOD xs
olddev = !d.name
FOR i=0, 360, 10 DO BEGIN
SET_PLOT, 'Z'
ERASE
T3D, /RESET
T3D, TRANS=[-.5,-.5,0]
T3D, ROT=[0,0,i]
T3D, TRANS=[.5,.5,0]
;; Doesn't work...
TV, im, /T3D
;; But this does work...
;PLOT, INDGEN(100), /T3D
;; read off z-buffer
b = TVRD()
SET_PLOT, olddev
;; display rotated image
TV, b
print, 'Displayed Rotation by:', i
END
END
|
|
|