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

Home » Public Forums » archive » Re: trajectory plot behind sphere
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: trajectory plot behind sphere [message #42622 is a reply to message #42616] Thu, 17 February 2005 07:44 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <37jpcoF4mbq4mU1@individual.net>,
Ralf Schaa <schaa@geo.uni-koeln.de> wrote:

> I am plotting a trajectory of a spacecraft orbit which is partially
> going behind a sphere (the planet). This part, which is actually behind
> the sphere is drawn right in front of the plot, but I like to have this
> part of the trajectory invisble.
> How can this be done?

The problem is that the X and WIN devices are 2-D devices and do not do
hidden line processing. SURFACE and similar built-in "3-D" functions do
their own hidden line removal, so they work with 2-D devices, but I
don't think that most Direct Graphic procedures do. (I'm certain I'll
be corrected if I'm wrong!)

I believe that you must either use the Z-buffer device or Object
Graphics, both of which will remove hidden lines.

With the Z-buffer device, you set the device to "Z", draw your 3-D
graphic, read the resulting bitmap with TVRD, then TV it to the screen
(or print it). The downside is that the result is a bitmap. On the
other hand, the downside of Object Graphics is the learning curve. ;-)

Ken Bowman
[Message index]
 
Read Message
Read Message
Previous Topic: IDLgrVolume, PickVoxel, HELP!!!
Next Topic: MAP_SET vs MAP_PROJ_*

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

Current Time: Mon Oct 20 19:13:34 PDT 2025

Total time taken to generate the page: 2.63705 seconds