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

Home » Public Forums » archive » Re: object graphic / direct graphic
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: object graphic / direct graphic [message #26532] Sun, 09 September 2001 15:44 Go to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
From: "Reimar Bauer" <r.bauer@fz-juelich.de>
>
> At the moment I am most need fast batch jobs for graphics output.
>
> I am interested in Object graphic for visualisation of 3d or 4d
> datasets.
> Because I wish to use the mouse to control the views in case of rotation
> and may
> be some cuttings and so on. But if I know which kind of view I prefer
> for the output then I believe a batch job should do the print
> outs or animation of several same organized data sets.
>
> How much data could be handled quite good ?

Well the answer is (of course) that "it depends". But I routinely display
animations consisting of (say) 100 frames each displaying an IDLgrSurface
dimensioned 150 x 150.

> Do you have some experience in problems which may occur?

Yep.

Sorry that's not a very helpful answer. But where do I start? Still, it has
to be easier than dealing with colours in Direct Graphics, right?

> I know the object model by idl but in the past it
> frightens me by the output sizes and the speed of a simple direct
> graphics plot
> seen in object graphics. A simple colored XY plot of about 30KByte
> was about a few MegaBytes in Object Graphics.

You're talking about printed output? Originally printing from OG was
extremely inefficient because it involved sending a full resolution bitmap
to the printer. Even before vector output was implemented, RSI achieved a
large reduction in the size of printer-output files by (if I remember
correctly) omitting the white-space pixels.

> How did this change the /vector Keyword?

For most scenes vector output generates much smaller printer files.

> In the past there was direct graphics much faster than object graphics.
> Is this changed?

Well, Direct Graphics is not always faster than Object graphics. I pointed
out on the group some time ago that the Object Graphics could display a line
plot with 10^6 points *faster* than Direct Graphics.

But in general OG is slower than DG because the OG carries around all the
info needed to redraw a plot, whereas DG doesn't.

> I like to know how fast it is to plot
> 100, 1000, 10000 100000 or 1 million points with a dot or a line symbol
> by object graphics.

The complexity of the symbol has a major effect.

I just checked my MGH_EXAMPLE_SCATTER routine, which draws a cloud of
randomly-positioned points, each represented by an open hexagon (an
IDLgrPolyline with 6 line segments). Following are times to carry out
various tasks with on a plot with 100,000 points:

Construct graph & window: 6 s
Redraw: 3 s approx
Write to EPS (vector) file: > 19 minutes
Write to PNG file (454 x 454 pixels): 5 s

So, except for the EPS output, this is probably acceptable.

I gave up waiting for the EPS file after 19 minutes and terminated IDL. I
tried again with fewer points. Here are some results:

1,000 points: 0.5 s
2,500 points: 3 s
5,000 points: 15 s

So it looks like the time to write to vector files is quadratic or worse.
(I'd never noticed that before.)

As you can see, vector output is still not Object Graphics' strong point!


---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research




--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
Re: object graphic / direct graphic [message #26596 is a reply to message #26532] Wed, 12 September 2001 22:42 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
From: "Mark Hadfield" <m.hadfield@niwa.cri.nz>
> 1,000 points: 0.5 s
> 2,500 points: 3 s
> 5,000 points: 15 s
>
> So it looks like the time to write to vector files is quadratic or worse.

It has been pointed out to me that this is probably a consequence of trying
to get Z overlap right. For bitmap output a Z buffer is used (which is fast)
but for vector output the atoms are sorted before they are drawn (which is
slow when there are a lot of them).

For many types of plots, Z overlap isn't crucial, so perhaps there could be
an option to disable the sorting.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research



--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Convolution of Stick Spectra
Next Topic: transparent colours for filling contours?

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

Current Time: Wed Oct 08 14:52:22 PDT 2025

Total time taken to generate the page: 0.00708 seconds