Re: screen capture of xplot3d [message #74064] |
Fri, 31 December 2010 13:25  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Dec 31, 7:18 pm, kedmond <kedm...@gmail.com> wrote:
> Thanks for the tip. Yeah, when I say from the command line I mean
> I want to be able to configure and control things without a mouse so
> that I can just copy-paste commands from a notes file into the CL.
> For example, to turn off the axes in xplot3d, you have to go to the
> View menu and select an Axes type from the sub-menu. Ideally, xplot3d
> would be like plot in that you could just define the axes type as a
> parameter.
Those things can be done with iTools, but it will probably be easier
with the new graphics (in this particular case, plot3d()). As I
mentioned above, they have the rotate method, and the window contents
can be either directly saved to files (save method) or copied to
arrays (copywindow method). Or the graphics hierarchy could be
retrieved and used to make a VRML file with IDLgrVRML, I suppose.
|
|
|
Re: screen capture of xplot3d [message #74065 is a reply to message #74064] |
Fri, 31 December 2010 13:18   |
kedmond
Messages: 8 Registered: July 2008
|
Junior Member |
|
|
Ken,
Thanks for the tip. Yeah, when I say from the command line I mean
I want to be able to configure and control things without a mouse so
that I can just copy-paste commands from a notes file into the CL.
For example, to turn off the axes in xplot3d, you have to go to the
View menu and select an Axes type from the sub-menu. Ideally, xplot3d
would be like plot in that you could just define the axes type as a
parameter.
-Kazem
On Dec 30, 3:09 pm, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article
> < c3ed5337-2ec7-49d1-ae6f-02ad0d87b...@39g2000yqa.googlegroups .com >,
>
> kedmond <kedm...@gmail.com> wrote:
>> I have limited experience with iTools. But if iTools can be run
>> from a command-line, to be automated, then I'd be happy to use iTools.
>
> Like all IDL commands, iTools can be run from the command line,
>
> IDL> isurface, dist(50)
>
> You can control them programmatically (if that is what you mean by
> 'from the command line'), but that is more difficult.
>
> Next week, when our IT staff come back to work and get my web server
> (http://idl.tamu.edu) back on line, you can download bowman_lib, which
> has some examples of how to use the iTools.
>
> Ken Bowman
|
|
|
Re: screen capture of xplot3d [message #74069 is a reply to message #74065] |
Thu, 30 December 2010 12:09   |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article
<c3ed5337-2ec7-49d1-ae6f-02ad0d87bbc5@39g2000yqa.googlegroups.com>,
kedmond <kedmond@gmail.com> wrote:
> I have limited experience with iTools. But if iTools can be run
> from a command-line, to be automated, then I'd be happy to use iTools.
Like all IDL commands, iTools can be run from the command line,
IDL> isurface, dist(50)
You can control them programmatically (if that is what you mean by
'from the command line'), but that is more difficult.
Next week, when our IT staff come back to work and get my web server
(http://idl.tamu.edu) back on line, you can download bowman_lib, which
has some examples of how to use the iTools.
Ken Bowman
|
|
|
Re: screen capture of xplot3d [message #74073 is a reply to message #74069] |
Tue, 28 December 2010 08:34   |
kedmond
Messages: 8 Registered: July 2008
|
Junior Member |
|
|
On Dec 24, 9:47 am, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article
> < 386e0532-6b16-437a-96c8-360e26ec9...@29g2000yqq.googlegroups .com >,
>
> kedmond <kedm...@gmail.com> wrote:
>> Is there a function like tvrd() for xplot3d?
>
>> My goal is to automatically produce an animation of a rotating object,
>> saving each frame as an image or into a TIFF stack, so that I can make
>> a movie to show others.
>
>> I'm also interested in exporting the 3D data as a VRML file so that
>> people can interact with it on the web.
>
>> Thanks.
>
> If you can use the iTools for your 3-D plotting, I have some simple
> routines to rotate views and capture a sequence of images.
>
> You can also save an iTools graphic. Anyone with IDL can open it,
> but it doesn't really solve the web sharing problem.
>
> Ken Bowman
iTools:
I have limited experience with iTools. But if iTools can be run
from a command-line, to be automated, then I'd be happy to use iTools.
Using Plot instead:
The reason I'm not using the plot_3dbox function is because I like
the 3D lighting/shading that you get with the 'orb' object type. I'd
be happy to use plot_3dbox, or whatever other function, if I could
recreate the cool shading and alpha-channel effects you can get with
xplot3d. I really just want to make animations of xplot3d plots being
rotated.
VRML:
Yeah, VRML is super old, but xplot3d can export to it. Maybe I
shouldn't use it, and that's fine too. Ideally I'd create a 3D object
in xplot3d that I could use in PowerPoint, or the web, or somewhere
else, to share with my collaborators. It's not a big deal.
Thanks for the replies!
-Kazem
|
|
|
|
Re: screen capture of xplot3d [message #74083 is a reply to message #74082] |
Thu, 23 December 2010 21:24   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
kedmond writes:
> Is there a function like tvrd() for xplot3d?
>
> My goal is to automatically produce an animation of a rotating object,
> saving each frame as an image or into a TIFF stack, so that I can make
> a movie to show others.
How familiar are you with object graphics? To do this
automatically will take some modifications to the code.
Basically, the TVRD() functionality is to use the IMAGE_DATA
keyword to the object graphics window that the scene is
rendered in. It might be a 10 minute job, if you understand
object graphics at all. Otherwise, 10 days, probably. :-)
> I'm also interested in exporting the 3D data as a VRML file so that
> people can interact with it on the web.
VRML!? Wasn't that popular in the 1980s? There used
to be a way to do that in IDL. I'd have to look it up.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
Re: screen capture of xplot3d [message #74208 is a reply to message #74064] |
Sat, 01 January 2011 18:36  |
kedmond
Messages: 8 Registered: July 2008
|
Junior Member |
|
|
I agree, it's easier to do what I want in plot3d.pro, but the surface
procedure that it uses to draw the plot symbols doesn't support IDL's
graphical objects...unless I'm mistaken. For example, for the really
nice image I can make in xplot3d, I do something like the following
oSphere1 = obj_new('orb', COLOR=coltet[*, 0], alpha_channel=alphaval)
...
oSymbol1 = obj_new('IDLgrSymbol', oSphere1)
...
xplot3d, x, y, z, symbol=[oSymbol1, oSymbol2 ... ]
and I get the following: http://picasaweb.google.com/kedmond/IDLImages?feat=directlin k
So, for example, it'd be nice if that group of spheres, the 'orb'
object, could rotate in an animation. That's what I'm trying to do.
And I guess Ken Bowman is saying that I need to learn how to use
iTools in order to be able to do this programmaticly.
By the way, I really appreciate everyone's responses! Thanks.
-Kazem
On Dec 31 2010, 4:25 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Dec 31, 7:18 pm, kedmond <kedm...@gmail.com> wrote:
>
>> Thanks for the tip. Yeah, when I say from the command line I mean
>> I want to be able to configure and control things without a mouse so
>> that I can just copy-paste commands from a notes file into the CL.
>> For example, to turn off the axes in xplot3d, you have to go to the
>> View menu and select an Axes type from the sub-menu. Ideally, xplot3d
>> would be like plot in that you could just define the axes type as a
>> parameter.
>
> Those things can be done with iTools, but it will probably be easier
> with the new graphics (in this particular case, plot3d()). As I
> mentioned above, they have the rotate method, and the window contents
> can be either directly saved to files (save method) or copied to
> arrays (copywindow method). Or the graphics hierarchy could be
> retrieved and used to make a VRML file with IDLgrVRML, I suppose.
|
|
|