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

Home » Public Forums » archive » TV and T3D?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
TV and T3D? [message #28049] Thu, 15 November 2001 17:17
rettmannd is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: array chicanery
Next Topic: Re: array chicanery

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

Current Time: Wed Oct 08 16:52:16 PDT 2025

Total time taken to generate the page: 0.00480 seconds