[GRASS5] nviz development

What's the current status with development in nviz?

I would really like the keyframe animation save and load buttons to work
and am thinking of trying to hack the code to enable them.

However, I've never done any Tcl programming so I'm afraid it might be a
big ask.

Is there any current development in nviz?

Can anyone give me any pointers to information on the nviz internals
(other than the source code)?

Has anyone done/doing some of the work already?

Regards
Gordon

--

Gordon Keith
Programmer/Data Analyst
Marine Acoustics
CSIRO Marine Research
http://www.marine.csiro.au

"There is no reason anyone would want a computer in their home."
- Ken Olson, President & Founder, Digital Equipment Corporation

Gordon,

Bob Covill has just done ton of new improvements to nviz including key
frame animations,
e.g.
1. Update for the keyframe animation panel that correctly saves and

loads an animation to file. Currently the keyframe positons are not
saved. This change will allow users to save and reload animations.

2. Update keyframe library to allow center of view to change and be
saved in DIR[XYZ] portion of the keyframe mask. This allows animations
to move through a terrain as opposed to around a fixed point.

3. Added a new routine Nprintkey that will print out the keyframe mask
in a format compatible for editing in the keyframe animation panel.

and a lot more.........

Gordon, would you be interested to test it? If yes, Bob, Markus, should
I put the
updates on our web site or even better, should it go on grass web site
(maybe into outgoing
as a code that needs testing)? We have it installed but I could not get
around
to it as we are also trying to test the v.surf.rst in grass51 (Jaro got
it running finally).
Keith wrote:

What's the current status with development in nviz?

I would really like the keyframe animation save and load buttons to work
and am thinking of trying to hack the code to enable them.

However, I've never done any Tcl programming so I'm afraid it might be a
big ask.

Is there any current development in nviz?

Can anyone give me any pointers to information on the nviz internals
(other than the source code)?

Has anyone done/doing some of the work already?

Regards
Gordon

--

Gordon Keith
Programmer/Data Analyst
Marine Acoustics
CSIRO Marine Research
http://www.marine.csiro.au

"There is no reason anyone would want a computer in their home."
- Ken Olson, President & Founder, Digital Equipment Corporation

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

Gordon,

Yes, there is a version currently being tested that saves and reads key
frame files. I passed it over to Markus, and Helena last week for
testing and comments. If interested I could forward a version to you to
try.

There are a number of other changes I have made. Below is the original
list ...

1. Update for the keyframe animation panel that correctly saves and
loads an animation to file. Currently the keyframe positons are not
saved. This change will allow users to save and reload animations.

2. Update keyframe library to allow center of view to change and be
saved in DIR[XYZ] portion of the keyframe mask. This allows
animations to move through a terrain as opposed to around a fixed point.

3. Added a new routine Nprintkey that will print out the keyframe
mask in a format compatible for editing in the keyframe animation panel.

4. I have added accelerated surface drawing routine to draw only the
data in the current viewport (screen). All data is currently drawn
whether on the screen or not. I have only added this for float type
maps so far.

5. I have changed the near and far clip defaults to 0.5 -> 100000.
This range was smaller which clipped views outside.

6. Fixed the routine for setting the camera (eye) position. The
function Nmoveto_real takes real coordinates as arguments. The
Nset_focus
command set the center of view.

7. I have finally got off-screen rendering working using pbuffers.
This past week I was able to get an off-screen rendering context working
that was undisturbed by other screens, etc. The context uses pbuffers
which are hardware accelerated (supposedly). This is one of the features
that will probably have bugs but has great potential. For example the
max. size image which is currently drawn in pieces could be drawn off
screen as a single image. The down side of this is that pbuffers will
not be supported in older versions of opengl.

8. Finally I have written a program (based on r.profile) that
constructs a TCL script that can be run in NVIZ. The script is
constructed outside of nviz where the user selects a route, set the
camera height and layback and generates the script. I added an option
this week that will generate a key mask file (see item 3) that can then
be opened (and editted) in keyframe animation panel.

--
Bob Covill

Tekmap Consulting
P.O. Box 2016
Fall River, N.S.
B2T 1K6
Canada

E-Mail: bcovill@tekmap.ns.ca
Phone: 902-860-1496
Fax: 902-860-1498

Gordon Keith wrote:

What's the current status with development in nviz?

I would really like the keyframe animation save and load buttons to work
and am thinking of trying to hack the code to enable them.

However, I've never done any Tcl programming so I'm afraid it might be a
big ask.

Is there any current development in nviz?

Can anyone give me any pointers to information on the nviz internals
(other than the source code)?

Has anyone done/doing some of the work already?

It isn't really under active development, although any reported bugs
will get fixed if someone can figure out what the problem is.

I started looked into your report, and got as far as line 1063 of
keyanimAddKey in src.contrib/GMSL/NVIZ2.2/scripts/panel_kanimator.tcl:

  set an_element [list [lindex $i 0] values]

This is where the "values" is coming from. Initially I thought that it
should be "$values", but there isn't any such variable, or even
anything similar. There isn't anything relevant in the CVS history
either.

However, the "save" option simply dumps $keyanimFrameRate and
$keyanimKeyList to a file. The literal "values" would be present in
the value of $keyanimKeyList which is used throughout that file, so
that doesn't actually appear to be part of the problem.

If loading doesn't work, the most likely reason would be that the save
option is omitting important data. I have absolutely no idea what that
might be, though.

--
Glynn Clements <glynn.clements@virgin.net>

Glynn Clements wrote:

> What's the current status with development in nviz?
>
> I would really like the keyframe animation save and load buttons to work
> and am thinking of trying to hack the code to enable them.
>
> However, I've never done any Tcl programming so I'm afraid it might be a
> big ask.
>
> Is there any current development in nviz?
>
> Can anyone give me any pointers to information on the nviz internals
> (other than the source code)?
>
> Has anyone done/doing some of the work already?

It isn't really under active development, although any reported bugs
will get fixed if someone can figure out what the problem is.

In light of Bob's reply, I guess that should be re-phrased to "the
version in CVS hasn't seen much development lately".

--
Glynn Clements <glynn.clements@virgin.net>