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

Home » Public Forums » archive » Re: Z-Buffer - partial solution
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
Re: Z-Buffer - partial solution [message #8192] Tue, 11 February 1997 00:00
nolf is currently offline  nolf
Messages: 4
Registered: March 1995
Junior Member
Regarding John-David Smith <jdsmith@astrosun.tn.cornell.edu> problem
with the Z-buffer device, I offer a partial solution. These modifications
to D. Fanning's example will line up the axes correctly (at least they
do on my X-terminal):

TVLCT, [255, 0], [255, 255], [0,0], 1
data = DIST(40,40)
thisDevice = !D.NAME
SET_PLOT, 'Z'
DEVICE, Set_Resolution=[300,300]
SURFACE, data, Color=1
picture = TVRD()

> add these 2 lines
> x = !x.window
> y = !y.window

SET_PLOT, thisDevice
WINDOW, XSize=300, YSize=300
TV, picture

> modify this line
SURFACE, data, /NoErase, /NoData, Color=2, position=[x(0),y(0),x(1),y(1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I say this is only a partial solution because the axes labels don't
line up exactly, but I've spent enough time on this.

Scott Nolf
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Z-Buffer
Next Topic: ps to deskjet 660Cse via ghostview/script on windows95

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

Current Time: Wed Oct 08 14:01:28 PDT 2025

Total time taken to generate the page: 0.00808 seconds