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

Home » Public Forums » archive » Re: strange behaviour with z-buffer
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: strange behaviour with z-buffer [message #11949 is a reply to message #11939] Mon, 08 June 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Damiano Zilio (damiano.zilio@jrc.it) writes:

> am I creazy or... the plots produced on the momitor by this stupid program
> are different????
> Why????

The problem here is when I say "go left" I mean "go right",
sometimes. :-)

To make the Z-buffer exactly like the window, you have to
set the resolution and colors *outside* the Z device. Otherwise,
you just set the resolution and colors to the defaults of
the Z device! You need something like this:

ncolors = !D.N_Colors - 1
xsize = !D.X_Size
ysize = !D.Y_Size

Set_Plot, 'Z'
Device, Set_Resolution=[xsize, ysize], Set_Colors=ncolors
Help, /Device

Cheers,

David



-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL and COM
Next Topic: Upgrade from 3.6

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

Current Time: Sun Oct 12 03:56:39 PDT 2025

Total time taken to generate the page: 0.96307 seconds