[GRASS-dev] [GRASS GIS] #31: NVIZ in GRASS6.2.3 (some problems)

#31: NVIZ in GRASS6.2.3 (some problems)
---------------------+------------------------------------------------------
Reporter: clerici | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: 6.2.3
Keywords: |
---------------------+------------------------------------------------------
1) In the control panel the LOOK cancel button does not work (it works on
6.0)

2) In the control panel the LOOK RESET button does not reset twist (bug?)

3) In the Surface panel the masking doesn't have any effect on 'fine'
surfaces but only on 'wire' surfaces and vectors maps.

4) In the Surface panel the emission parameter (in Surface Attribute)
seems ineffective.

5) In the Surface panel the Transparency function has a strange behaviour
with the 'constant' elevation surfaces. When a transparency value is
assigned to the surface and the DRAW button is pressed, the surface is
hidden by the other surfaces. Only by pressing the Draw Current button in
the Surface panel the transparency is effective, but reduces progressively
each time the button is pressed. If the DRAW button is pressed again the
surface return to be hidden. For a check the elevation.dem and a surface
at an elevation of 5,000 m can be used.

6) In the panel Vectors Lines/3D Polygons the Display Flat function seems
ineffective.

7) The Vector points are not displayed on the surface, but seem suspended
in the air above the surface, reproducing the surface morphology (the
elevation difference seems to be a constant). Only if the surface is a
plane at constant elevation the points are located on the surface (checked
with archsites and bugsites on elevation.dem and on a surface at 5000 m).
The problem doesn't exist in grass6.0.

Greetings

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/31&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#31: NVIZ in GRASS6.2.3 (some problems)
----------------------+-----------------------------------------------------
  Reporter: clerici | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: 6.2.3
Resolution: | Keywords: nviz
----------------------+-----------------------------------------------------
Changes (by marisn):

  * keywords: => nviz

Comment:

Replying to [ticket:31 clerici]:
> 1) In the control panel the LOOK cancel button does not work (it works
on 6.0)
Doesn't exist in svn-trunk anymore;
> 2) In the control panel the LOOK RESET button does not reset twist
(bug?)
Fixed by r30082;
> 3) In the Surface panel the masking doesn't have any effect on 'fine'
surfaces but only on 'wire' surfaces and vectors maps.
Can You, please, give a example?
> 4) In the Surface panel the emission parameter (in Surface Attribute)
seems ineffective.
Confirming. I saw no difference in output while changing emission
constant. Can somebody give an example how to test how emission works?
> 5) In the Surface panel the Transparency function has a strange
behaviour with the 'constant' elevation surfaces. When a transparency
value is assigned to the surface and the DRAW button is pressed, the
surface is hidden by the other surfaces. Only by pressing the Draw Current
button in the Surface panel the transparency is effective, but reduces
progressively each time the button is pressed. If the DRAW button is
pressed again the surface return to be hidden. For a check the
elevation.dem and a surface at an elevation of 5,000 m can be used.
Please give an step-by-step instruction how to reproduce this.
> 6) In the panel Vectors Lines/3D Polygons the Display Flat function
seems ineffective.
Confirming. 3D and 2D maps both don't react on "display flat" function.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/31#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#31: NVIZ in GRASS6.2.3 (some problems)
----------------------+-----------------------------------------------------
  Reporter: clerici | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: 6.2.3
Resolution: | Keywords: nviz
----------------------+-----------------------------------------------------
Comment (by clerici):

3) In the Surface panel the masking doesn't have any effect on 'fine'
surfaces but only on 'wire' surfaces and vectors maps.

Example 1.
Enter nviz and load 'elevation.dem' and 'streams'
In the Surface panel press Draw mode and select Both (to display Wire and
Fine surface); press Coarse Style and select Wire.
Press Surface Attribute and select mask: mask not set. In the Change
attribute panel press New Map and load the map 'fields'. Pressing Accept
the wire and streams are deleted in the area were 'fields' has values
different from null, but the Fine surface is not.

Example 2.
Construction of a DEM with zero elevations:
r.mapcalc "elev1000.dem=if(elevation.dem <= 1200,0,elevation.dem-1200)"
Enter nviz and load 'elevation1000.dem' and 'streams'
In the Surface panel press Draw mode and select Both (to display Wire and
Fine surface); press Coarse Style and select Wire.
In the Surface panel select Mask Zeros by: Elevation.
Pressing Draw the wire and streams are deleted in the area were
elev1000.dem has zero values, but the Fine surface is not.

5) In the Surface panel the Transparency function has a strange behaviour
with the 'constant' elevation surfaces. When a transparency.........

Step-by-step procedure.
Enter nviz and load 'elevation.dem'.
In the Surface panel press New.
In the Change Attribute panel press New Constant and enter a value of
3000.
The new plane at constant elevation partially overly 'elevation.dem'.
Press Surface attribute and select transparency: transparency not set. In
the Change Attribute panel press New Constant and define the transparency
value (130 for example), then Accept.
a) Press DRAW: the surface is hidden under elevation.dem (and remain
hidden even if you change the surfaces' orientation).
b) Press Draw Current in the Surface panel: transparency is effective, but
if you press DRAW or change the surfaces' orientation, the plane is hidden
again by elevation.dem.
c) Press Draw Current many times: the transparency reduces progressively,
but the previously selected value of transparency (130) doesn't change.
May be this is due to the redrawing of the same surface many times?

This seems to happen only with surfaces at constant elevation (I tried
also with two planes, and the problem is the same). With 'elevation.dem'
or 'elevation.dtet' transparency works fine.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/31#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#31: NVIZ in GRASS6.2.3 (some problems)
----------------------+-----------------------------------------------------
  Reporter: clerici | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Tcl | Version: 6.2.3
Resolution: | Keywords: nviz
----------------------+-----------------------------------------------------
Changes (by martinl):

  * component: default => Tcl

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/31#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#31: NVIZ in GRASS6.2.3 (some problems)
----------------------+-----------------------------------------------------
  Reporter: clerici | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: NVIZ | Version: 6.2.3
Resolution: | Keywords: nviz
----------------------+-----------------------------------------------------
Changes (by neteler):

  * component: Tcl => NVIZ

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/31#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#31: NVIZ issues in GRASS6.x
--------------------------+-------------------------------------------------
  Reporter: clerici | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: NVIZ | Version: 6.2.3
Resolution: | Keywords: nviz
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by marisn):

  * platform: => Unspecified
  * cpu: => Unspecified
  * summary: NVIZ in GRASS6.2.3 (some problems) => NVIZ issues in
              GRASS6.x

Comment:

Status update:[[BR]]
3) Surface mask value still doesn't work with "fine" surface;[[BR]]
4) As I understood from ogsf code, constant will not work with emission.
Changed GUI to reflect that (r34297);[[BR]]
5) Transparency is still a issue;[[BR]]
6) Vector point/line drawing with new panel layout is a mess. It should
support following modes:[[BR]]
a) 3D vector (use Z from vector);[[BR]]
b) Flat (display on plane, Z is user defined);[[BR]]
c) Display on surface (Z is taken from surface);[[BR]]
d) Offset slider (Z in a;b;c is adjusted by offset value).[[BR]]

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/31#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#31: NVIZ issues in GRASS6.x
--------------------------+-------------------------------------------------
  Reporter: clerici | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: NVIZ | Version: 6.2.3
Resolution: | Keywords: nviz
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by cmbarton):

1) In the control panel the LOOK cancel button does not work (it works on
6.0)

no longer applicable

2) In the control panel the LOOK RESET button does not reset twist (bug?)

fixed

3) In the Surface panel the masking doesn't have any effect on 'fine'
surfaces but only on 'wire' surfaces and vectors maps.

AFAICT, this is an issue with the C or C++ code. I can't see how it can be
fixed via TclTk

4) In the Surface panel the emission parameter (in Surface Attribute)
seems ineffective.

Setting emissions from a map works fine. I can't find a way to clear it.
It looks like it ought to be unset_att emi and/or set_att emi constant 0.
But neither seems to have any effect. A bug in the C/C++ code?

5) In the Surface panel the Transparency function has a strange behaviour
with the 'constant' elevation surfaces. When a transparency value is
assigned to the surface and the DRAW button is pressed, the surface is
hidden by the other surfaces. Only by pressing the Draw Current button in
the Surface panel the transparency is effective, but reduces progressively
each time the button is pressed. If the DRAW button is pressed again the
surface return to be hidden. For a check the elevation.dem and a surface
at an elevation of 5,000 m can be used.

I can't confirm this or say that it is fixed

6) In the panel Vectors Lines/3D Polygons the Display Flat function seems
ineffective.

Seems like a C/C++ code problem. The calls in TclTk seem to be correct
AFAICT

7) The Vector points are not displayed on the surface, but seem suspended
in the air above the surface, reproducing the surface morphology (the
elevation difference seems to be a constant). Only if the surface is a
plane at constant elevation the points are located on the surface (checked
with archsites and bugsites on elevation.dem and on a surface at 5000 m).
The problem doesn't exist in grass6.0.

This seems fixed. Points are setting on the surface or slightly embedded
in the surface.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/31#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#31: NVIZ issues in GRASS6.x
--------------------------+-------------------------------------------------
  Reporter: clerici | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: NVIZ | Version: svn-develbranch6
Resolution: | Keywords: nviz
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by marisn):

  * version: 6.2.3 => svn-develbranch6

Comment:

Seems like minor issues are fixed. Left over issues are complex ones and
may be related to C bugs or improper C/TCL interaction. [[BR]]
Steps to reproduce 5:

nviz elevation=elevation.dem@PERMANENT [[BR]]
Add new raster surface as constant ("New constant"->enter value 3000),
uncheck "use as color"[[BR]]
Click "DRAW CURRENT" -> new gray surface is displayed on top of
elevation.dem surface (OK)[[BR]]
Change new constant surface transparency, set it to constant (i.e.
30)[[BR]]
Click "DRAW CURRENT" once -> new surface gets transparent (OK)[[BR]]
Click "DRAW CURRENT" for second time -> new surface is not transparent
anymore (BUG)[[BR]]
Click "CLEAR" and then "DRAW" -> new surface is displayed below
elevation.dem (BUG)[[BR]]
Click "CLEAR" and then "DRAW CURRENT" -> only new raster surface is
displayed. elevation.dem is missing (WTF?)[[BR]]
Change view and then click "DRAW CURRENT" -> new surface is transparent
and on top of elevation.dem(OK)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/31#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

On Dec 31, 2008, at 6:30 AM, GRASS GIS wrote:

#31: NVIZ issues in GRASS6.x
--------------------------+-------------------------------------------------
Reporter: clerici | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: NVIZ | Version: svn-develbranch6
Resolution: | Keywords: nviz
Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by marisn):

* version: 6.2.3 => svn-develbranch6

Comment:

Seems like minor issues are fixed. Left over issues are complex ones and
may be related to C bugs or improper C/TCL interaction. [[BR]]
Steps to reproduce 5:

nviz elevation=elevation.dem@PERMANENT [[BR]]
Add new raster surface as constant ("New constant"->enter value 3000),
uncheck "use as color"[[BR]]
Click "DRAW CURRENT" -> new gray surface is displayed on top of
elevation.dem surface (OK)[[BR]]
Change new constant surface transparency, set it to constant (i.e.
30)[[BR]]
Click "DRAW CURRENT" once -> new surface gets transparent (OK)[[BR]]
Click "DRAW CURRENT" for second time -> new surface is not transparent
anymore (BUG)[[BR]]
Click "CLEAR" and then "DRAW" -> new surface is displayed below
elevation.dem (BUG)[[BR]]
Click "CLEAR" and then "DRAW CURRENT" -> only new raster surface is
displayed. elevation.dem is missing (WTF?)[[BR]]
Change view and then click "DRAW CURRENT" -> new surface is transparent
and on top of elevation.dem(OK)

I see what you mean. I'll see if it's fixable (or at least whether I can fix it).

Michael

On Dec 31, 2008, at 6:30 AM, GRASS GIS wrote:

#31: NVIZ issues in GRASS6.x
--------------------------+-------------------------------------------------
Reporter: clerici | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: NVIZ | Version: svn-develbranch6
Resolution: | Keywords: nviz
Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by marisn):

* version: 6.2.3 => svn-develbranch6

Comment:

Seems like minor issues are fixed. Left over issues are complex ones and
may be related to C bugs or improper C/TCL interaction. [[BR]]
Steps to reproduce 5:

nviz elevation=elevation.dem@PERMANENT [[BR]]
Add new raster surface as constant ("New constant"->enter value 3000),
uncheck "use as color"[[BR]]
Click "DRAW CURRENT" -> new gray surface is displayed on top of
elevation.dem surface (OK)[[BR]]
Change new constant surface transparency, set it to constant (i.e.
30)[[BR]]
Click "DRAW CURRENT" once -> new surface gets transparent (OK)[[BR]]
Click "DRAW CURRENT" for second time -> new surface is not transparent
anymore (BUG)[[BR]]
Click "CLEAR" and then "DRAW" -> new surface is displayed below
elevation.dem (BUG)[[BR]]
Click "CLEAR" and then "DRAW CURRENT" -> only new raster surface is
displayed. elevation.dem is missing (WTF?)[[BR]]
Change view and then click "DRAW CURRENT" -> new surface is transparent
and on top of elevation.dem(OK)

--

The DRAW CURRENT button calls "Nsurf_draw_one". I think this is a call to the C part of NVIZ. I wish there was some kind of description of which commands are actually useable and what their syntax is.

Michael

#31: NVIZ issues in GRASS6.x
-------------------------+--------------------------------------------------
Reporter: clerici | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.1
Component: NVIZ | Version: svn-develbranch6
Keywords: nviz | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by marisn):

  * milestone: 6.4.0 => 6.4.1

Comment:

Doesn't seem to make to 6.4.0.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/31#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>