Sun, Oct 20 2002
10:24:43
|
|
Request created by jidanni@dman.ddts.net
|
|
Return-Path |
<jidanni@dman.ddts.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
To |
grass-bugs@intevation.de
|
Subject |
d.3d interactive more flexible than command line
|
From |
Dan Jacobson <jidanni@dman.ddts.net>
|
User-Agent |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
|
Date |
13 Oct 2002 19:04:59 +0800
|
Message-ID |
<87adlik3ac.fsf@jidanni.org>
|
Lines |
27
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
X-Spam-Status |
No, hits=4.0 required=5.0 tests=DATE_IN_PAST_96_XX,RCVD_IN_ORBS,RCVD_IN_RFCI, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01,USER_AGENT version=2.41
|
X-Spam-Level |
**** |
I notice that one can manipulate a lot more of d.3d in interactive
mode than from the command line. Bummer. [GRASS 5.0.0pre1 (May 2001)]
By the way, too bad one must specify the coordinates of the to=, and
can't optionally give an angle instead.
OK, I suppose one writes scripts like 3d.view.sh.
BTW, I hope that earth's curvature is applied, as I am doing 1 degree
wide blowups of 50 km away mountains looking horizontally directly
across, in order to identify which mountains they were in family
snapshots.
And I sure wish the cursor would stay put, each time one does a run in
interactive mode, and not jump back to the first item.
BTW, interactive mode should allow one to continue after saving a
3d.view setting.
Also Grass interactive programs should use the readline library so one
can use C-p to recall earlier entries, etc.
In conclusion, I would like to click on a certain mountain in the
image created by d.3d to find more about it, e.g. coordinates, but
can't.
--
http://jidanni.org/ Taiwan(04)25854780
|
|
Wed, Oct 23 2002
11:29:48
|
|
Mail sent by paul-grass@stjohnspoint.co.uk
|
|
Return-Path |
<paul-grass@stjohnspoint.co.uk>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Wed, 23 Oct 2002 10:29:41 +0100 (BST)
|
From |
Paul Kelly <paul-grass@stjohnspoint.co.uk>
|
X-X-Sender |
paulk@agrippa.ukshells.co.uk
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
"grass5@grass.itc.it" <grass5@grass.itc.it>, <jidanni@dman.ddts.net>
|
Subject |
Re: [GRASS5] [bug #1358] (grass) d.3d interactive more flexible than command line
|
In-Reply-To |
<20021020082443.49E1613AC0@lists.intevation.de>
|
Message-ID |
<Pine.LNX.4.44.0210231004480.32384-100000@agrippa.ukshells.co.uk>
|
MIME-Version |
1.0
|
Content-Type |
TEXT/PLAIN; charset=US-ASCII
|
X-Spam-Status |
No, hits=-8.1 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, SPAM_PHRASE_00_01,USER_AGENT_PINE version=2.41
|
X-Spam-Level |
|
On Sun, 20 Oct 2002, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=1358
> -------------------------------------------------------------------------
>
> I notice that one can manipulate a lot more of d.3d in interactive
> mode than from the command line. Bummer. [GRASS 5.0.0pre1 (May 2001)]
>
You can do most things by manually editing a 3dview file and then loading
it from the command line. That is quite easy to do and can be automated.
> By the way, too bad one must specify the coordinates of the to=, and
> can't optionally give an angle instead.
That is a bit awkward. But it is easy enough to calculate a suitable
centre of view value if you know the camera location and yaw, pitch and
roll angles. Here is a MATLAB script I wrote to do it:
yl, xl, zl are the easting, northing and elevation of the camera location
yc, xc, zc are the easting, northing and elevation of the COV
(This is a left-handed co-ordinate system and the pitch angle is positive
looking downwards from the horizontal (0 when looking straight ahead))
xc=xl+10*cos(pitch)*cos(yaw);
yc=yl+10*cos(pitch)*sin(yaw);
% Pitch angle +ve downwards?
zc=zl-10*tan(pitch);
if roll < 0
roll=(2*pi)+roll;
end
roll=roll.*(180/pi);
sprintf('TO_EASTING: %6.2f\nTO_NORTHING: %6.2f\nTO_HEIGHT: %4.2f\n', yc, xc,
zc)
sprintf('FROM_EASTING: %6.2f\nFROM_NORTHING: %6.2f\nFROM_HEIGHT: %4.2f', yl,
xl, zl)
sprintf('TWIST: %4.2f', roll.*10)
By experimentation I found the twist / roll angle is given in decidegrees
(!) and can be between 0 and 360 inclusive.
A quick definition in case these are given different names in geography:
yaw, pitch and roll are robotics terms; yaw is the sideways horizontal
angle from north; pitch is the vertical up/down angle from the
horizontal, and roll is the rotation of the camera along the axis that
passes through its location and the centre of view (positive clockwise).
>
> OK, I suppose one writes scripts like 3d.view.sh.
>
> BTW, I hope that earth's curvature is applied, as I am doing 1 degree
> wide blowups of 50 km away mountains looking horizontally directly
> across, in order to identify which mountains they were in family
> snapshots.
At a guess I would say it probably isn't but I'm not sure. This is a very
interesting application; have you calibrated your camera for field of view
etc. or made a good estimate?
>
> And I sure wish the cursor would stay put, each time one does a run in
> interactive mode, and not jump back to the first item.
>
> BTW, interactive mode should allow one to continue after saving a
> 3d.view setting.
>
> Also Grass interactive programs should use the readline library so one
> can use C-p to recall earlier entries, etc.
I think d.3d has been set in stone for 10 years; no one is going to change
it now. But it is still useful when you need to set exact observer
position co-ordinates and field of view.
>
> In conclusion, I would like to click on a certain mountain in the
> image created by d.3d to find more about it, e.g. coordinates, but
> can't.
You can do this with SG3d, which runs on Silicon Graphics IRIX
workstations and is included in the GRASS IRIX pre-compiled binaries. You
can also do it in nviz (available on all OSs) but exact positioning is
harder there as it can't read 3dview files. (It can save them though, and
these can even be loaded in d.3d). I think with the latest improvements in
nviz it may be possible to set the exact viewer position but I'm not sure
how to do it yet, nor about setting the exact field of view.
> --
> http://jidanni.org/ Taiwan(04)25854780
>
>
|
|
Wed, Oct 30 2002
22:35:54
|
|
Mail sent by jidanni@dman.ddts.net
|
|
Return-Path |
<jidanni@dman.ddts.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
To |
Paul Kelly <paul-grass@stjohnspoint.co.uk>
|
Cc |
Request Tracker <grass-bugs@intevation.de>, "grass5@grass.itc.it" <grass5@grass.itc.it>
|
Subject |
Re: [GRASS5] [bug #1358] (grass) d.3d interactive more flexible than command line
|
References |
<Pine.LNX.4.44.0210231004480.32384-100000@agrippa.ukshells.co.uk>
|
In-Reply-To |
<Pine.LNX.4.44.0210231004480.32384-100000@agrippa.ukshells.co.uk>
|
From |
Dan Jacobson <jidanni@dman.ddts.net>
|
Date |
31 Oct 2002 05:15:58 +0800
|
Message-ID |
<87ela7mxv5.fsf@jidanni.org>
|
Lines |
41
|
User-Agent |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
X-Spam-Status |
No, hits=-12.7 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01,USER_AGENT version=2.41
|
X-Spam-Level |
|
>>>>> "Paul" == Paul Kelly <paul-grass@stjohnspoint.co.uk> writes:
Paul> On Sun, 20 Oct 2002, Request Tracker wrote:
>> this bug's URL: http://intevation.de/rt/webrt?serial_num=1358
>> -------------------------------------------------------------------------
>>
>> I notice that one can manipulate a lot more of d.3d in interactive
>> mode than from the command line. Bummer. [GRASS 5.0.0pre1 (May 2001)]
>>
Paul> You can do most things by manually editing a 3dview file and then loading
Paul> it from the command line. That is quite easy to do and can be automated.
OK, I am doing that... and now I see that there is no
$ d.3d viewfile=name ...
provided, so, if I want to use a Makefile, I must do some complex
echo -e xxx\\nxxx\\n etc stuff to fool it into thinking I'm entering
it from the keyboard or something.
And the fields in the 3dview seem undocumented for the beginner.
Anyway, e.g. "resolution" cannot be controlled from the 3dview file,
only the interactive command. Hmm, run g.region from Makefile... ok.
"Line Frequency" should be called infrequency...
Anyway, if I wanted to make a presentation, controlled by a makefile,
I would still have to walk over to the keyboard to especially interact
with d.3d .
Also, let's say I am editing the 3dview file as you suggest, and now I
hit emacs' M-x compile command ... well, how will I get it displayed
after each minor change? I suppose the echo stuff above is the only
way to get d.3d to reread the file as it only reads once per session.
Anyway, this points to a bill of rights for grass programs: everything
you intend to ask for with "parser", you better have a way of
specifying on the command line, or else == bug!
--
http://jidanni.org/ Taiwan(04)25854780
|
|
Sat, Nov 9 2002
06:39:00
|
|
Mail sent by jidanni@dman.ddts.net
|
|
Return-Path |
<jidanni@dman.ddts.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
To |
Paul Kelly <paul-grass@stjohnspoint.co.uk>
|
Cc |
Request Tracker <grass-bugs@intevation.de>, "grass5@grass.itc.it" <grass5@grass.itc.it>
|
Subject |
Re: [GRASS5] [bug #1358] (grass) d.3d interactive more flexible than command line
|
References |
<Pine.LNX.4.44.0210231004480.32384-100000@agrippa.ukshells.co.uk>
|
In-Reply-To |
<Pine.LNX.4.44.0210231004480.32384-100000@agrippa.ukshells.co.uk>
|
From |
Dan Jacobson <jidanni@dman.ddts.net>
|
Date |
09 Nov 2002 13:36:09 +0800
|
Message-ID |
<87heerl2ye.fsf@jidanni.org>
|
Lines |
16
|
User-Agent |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
X-Spam-Status |
No, hits=-8.4 required=5.0 tests=IN_REP_TO,REFERENCES,SIGNATURE_SHORT_DENSE, SPAM_PHRASE_00_01,USER_AGENT version=2.41
|
X-Spam-Level |
|
>>>>> "P" == Paul Kelly <paul-grass@stjohnspoint.co.uk> writes:
P> You can do most things by manually editing a 3dview file and then loading
P> it from the command line. That is quite easy to do and can be automated.
I assume we are talking about e.g. PERMANENT/3d.view/xiugu . OK, I
edited it, but I am convinced that your proposal of loading it from
the command line is not documented, at least not on man d.3d.
The best one can do is start d.3d interactively then give the filename
on the third question.
If one could load it from the command line, then rapid prototyping
could be possible, etc.
--
http://jidanni.org/ Taiwan(04)25854780
|
|
Mon, Nov 18 2002
23:55:52
|
|
Mail sent by jidanni@dman.ddts.net
|
|
Return-Path |
<jidanni@dman.ddts.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Subject |
Re: [bug #1358] (grass) d.3d interactive more flexible than command line
|
References |
<Pine.LNX.4.44.0210231004480.32384-100000@agrippa.ukshells.co.uk>
|
In-Reply-To |
<Pine.LNX.4.44.0210231004480.32384-100000@agrippa.ukshells.co.uk>
|
From |
Dan Jacobson <jidanni@dman.ddts.net>
|
Date |
19 Nov 2002 06:28:44 +0800
|
Message-ID |
<871y5ildgj.fsf@jidanni.org>
|
Lines |
34
|
User-Agent |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
X-Spam-Status |
No, hits=-11.9 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01,USER_AGENT version=2.41
|
X-Spam-Level |
|
please add to d.3d wishlist:
allow optional to_azimuth=, optional to_elev_angle=, to both the command
line and the 'form' interface. one could pick which or both should
override the to_coordinate= parameters.
On the 'form' interface allow one to switch the map=name
elevation=name if one pleases during interaction.
P> roll angles. Here is a MATLAB script I wrote to do it:
well, ok, but d.3d should add my features still.
BTW, interactive mode should allow one to continue after saving a
3d.view setting.
It makes no sense to arbitrarily not allow one to continue the session
at that point if one wants, or not to save the current view at several
points during the session if one wants.
>> In conclusion, I would like to click on a certain mountain in the
>> image created by d.3d to find more about it, e.g. coordinates, but
>> can't.
P> You can do this with SG3d, which runs on Silicon Graphics IRIX
I will ask mom for one of these at Christmas
P> workstations and is included in the GRASS IRIX pre-compiled binaries. You
P> can also do it in nviz (available on all OSs) but exact positioning is
I hope one day the debian .deb will have this ready to go.
--
http://jidanni.org/ Taiwan(04)25854780
|
|
Tue, Sep 20 2005
09:28:24
|
|
Area changed to grass5.4 by msieczka
|
|
Tue, Jun 19 2007
08:49:18
|
|
Comments added by hbowman
|
|
d.3d is not ported to GRASS 6 and there are no plans for that.
Interesting thread, but closing as "won't fix".
Hamish
|
|
Tue, Jun 19 2007
08:49:23
|
|
Status changed to resolved by hbowman
|
|