[GRASS-dev] NVIZ X11 Interface

Greetings,

I just built 6.4.0 RC4 here on Mac OS X without a single error - nice! The new interface is very snappy, stable and responsive compared to 6.3.0 - I am nothing but impressed. Nice work everyone!

I just spoke with an Apple representative who was interested in showing GRASS GIS on stage for at this years WWDC (World Wide Developers Conference) in June to show a real time data 3D visualization.

When I informed him that the 3D visualization still required X11 he quickly lost interest. This would have been huge opportunity for world wide exposure to GRASS GIS.

Are there any plans to make a Python or Cocoa interface for NVIZ going forward? Is it possibly part of the GRASS 7 roadmap?

I have been doing a lot of OpenGL programming for Mac OS X lately, so it might be something I could help with. Seems like the OpenGL code works fine, I would just have to port the interface. Any comments?

Best,

Jeshua Lacock, Owner
<http://OpenOSX.com>
phone: 877.240.1364

NVIZ is built into the Python GUI in GRASS 6.4, just select the 3D view from the popup in the display.

On Apr 28, 2009, at 7:29 PM, Jeshua Lacock wrote:

Greetings,

I just built 6.4.0 RC4 here on Mac OS X without a single error - nice! The new interface is very snappy, stable and responsive compared to 6.3.0 - I am nothing but impressed. Nice work everyone!

I just spoke with an Apple representative who was interested in showing GRASS GIS on stage for at this years WWDC (World Wide Developers Conference) in June to show a real time data 3D visualization.

When I informed him that the 3D visualization still required X11 he quickly lost interest. This would have been huge opportunity for world wide exposure to GRASS GIS.

Are there any plans to make a Python or Cocoa interface for NVIZ going forward? Is it possibly part of the GRASS 7 roadmap?

I have been doing a lot of OpenGL programming for Mac OS X lately, so it might be something I could help with. Seems like the OpenGL code works fine, I would just have to port the interface. Any comments?

Best,

Jeshua Lacock, Owner
<http://OpenOSX.com>
phone: 877.240.1364

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.

On Apr 28, 2009, at 6:49 PM, William Kyngesburye wrote:

NVIZ is built into the Python GUI in GRASS 6.4, just select the 3D view from the popup in the display.

Hi William,

Very interesting, thanks for the tip.

When I choose the "3D view" popup I get the following message:

  Error

  Unable to start Nviz. Python extension for Nviz was not found or loaded properly. Switching back to 2S display mode.

  Details: No module named grass6_wxnviz.

I looked in the installation path and I see a:

grass-6.4.0RC4/etc/wxpython/gui_modules/nviz.py

But I cannot locate any files in the source or in the installation directory called grass6_wxnviz. I don't see any configure options for it either.

Is there an environment variable or something that might need to be set? The python interface is working.

Thanks again,

Jeshua Lacock, Owner
<http://OpenOSX.com>
phone: 877.240.1364

NVIZ python also requires PyOpenGL and numpy (it's mentioned in the wxpython gui readme but not the main GRASS requirements document). It also sounds like the grass6_wxnviz python module didn't get built.

See the macosx readme for a configure example. You also need to use the --with-opengl=aqua option (which means that if you also want the TclTk NVIZ, you need to configure with an Aqua TclTk, since there's only one opengl setting in GRASS).

On Apr 28, 2009, at 8:46 PM, Jeshua Lacock wrote:

On Apr 28, 2009, at 6:49 PM, William Kyngesburye wrote:

NVIZ is built into the Python GUI in GRASS 6.4, just select the 3D view from the popup in the display.

Hi William,

Very interesting, thanks for the tip.

When I choose the "3D view" popup I get the following message:

  Error

  Unable to start Nviz. Python extension for Nviz was not found or loaded properly. Switching back to 2S display mode.

  Details: No module named grass6_wxnviz.

I looked in the installation path and I see a:

grass-6.4.0RC4/etc/wxpython/gui_modules/nviz.py

But I cannot locate any files in the source or in the installation directory called grass6_wxnviz. I don't see any configure options for it either.

Is there an environment variable or something that might need to be set? The python interface is working.

Thanks again,

Jeshua Lacock, Owner
<http://OpenOSX.com>
phone: 877.240.1364

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"I ache, therefore I am. Or in my case - I am, therefore I ache."

- Marvin

Jeshua Lacock wrote:

I just built 6.4.0 RC4 here on Mac OS X without a single error - nice!
The new interface is very snappy, stable and responsive compared to
6.3.0 - I am nothing but impressed. Nice work everyone!

I just spoke with an Apple representative who was interested in
showing GRASS GIS on stage for at this years WWDC (World Wide
Developers Conference) in June to show a real time data 3D
visualization.

When I informed him that the 3D visualization still required X11 he
quickly lost interest. This would have been huge opportunity for world
wide exposure to GRASS GIS.

Are there any plans to make a Python or Cocoa interface for NVIZ going
forward? Is it possibly part of the GRASS 7 roadmap?

I have been doing a lot of OpenGL programming for Mac OS X lately, so
it might be something I could help with. Seems like the OpenGL code
works fine, I would just have to port the interface. Any comments?

Note that the Tcl/Tk version of NVIZ has all of the code needed to run
natively on MacOSX. You need to build with --with-opengl=osx, and also
ensure that the Tk version which it finds is a native version.

I'm fairly sure that it has worked (to an extent) in the past, but
none of the GRASS developers with a Mac seem particularly interested
in maintaining it.

I think that you may need to use Tk 8.4, as the MacOSX version of Togl
seems to have problems with 8.5 (this is second-hand and from memory).

Search the grass-dev archives for NVIZ, Togl, Mac, OSX for more
details.

--
Glynn Clements <glynn@gclements.plus.com>

William Kyngesburye wrote:

NVIZ python also requires PyOpenGL

Does it? If so, why?

--
Glynn Clements <glynn@gclements.plus.com>

On Apr 29, 2009, at 3:06 AM, Glynn Clements wrote:

Note that the Tcl/Tk version of NVIZ has all of the code needed to run
natively on MacOSX. You need to build with --with-opengl=osx, and also
ensure that the Tk version which it finds is a native version.

I'm fairly sure that it has worked (to an extent) in the past, but
none of the GRASS developers with a Mac seem particularly interested
in maintaining it.

I think that you may need to use Tk 8.4, as the MacOSX version of Togl
seems to have problems with 8.5 (this is second-hand and from memory).

Search the grass-dev archives for NVIZ, Togl, Mac, OSX for more
details.

Ah, yes, TclTk Aqua would be not-X11 also. Actually, TclTk Aqua NVIZ works best with 8.5, I thought. Or even only with 8.5?

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy

Hi,

2009/4/29 Glynn Clements <glynn@gclements.plus.com>:

NVIZ python also requires PyOpenGL

Does it? If so, why?

AFAIK, wxGUI extension doesn't require PyOpenGL...

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

On May 2, 2009, at 2:28 PM, Martin Landa wrote:

Hi,

2009/4/29 Glynn Clements <glynn@gclements.plus.com>:

NVIZ python also requires PyOpenGL

Does it? If so, why?

AFAIK, wxGUI extension doesn't require PyOpenGL...

Martin

wx nviz does. The wx gui readme says so, and wx nviz wouldn't run without it when I tried on a Mac without PyOpenGL.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects."

- the wisdom of Tarzan

Hi,

2009/5/2 William Kyngesburye <kyngchaos@kyngchaos.com>:

wx nviz does. The wx gui readme says so, and wx nviz wouldn't run without
it when I tried on a Mac without PyOpenGL.

why? not needed on Linux box AFAIK.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

Martin Landa wrote:

> wx nviz does. The wx gui readme says so, and wx nviz wouldn't run without
> it when I tried on a Mac without PyOpenGL.

why? not needed on Linux box AFAIK.

Ah; develbranch_6's gui_modules/nviz.py still imports it. It refuses
to run unless PyOpenGL is present, but it doesn't actually use it.

I suggest backporting:

  http://trac.osgeo.org/grass/changeset/33474

Except for the grass6->grass7 bits (i.e. just the first two
deletions).

--
Glynn Clements <glynn@gclements.plus.com>

Hi,

2009/5/3 Glynn Clements <glynn@gclements.plus.com>:

Ah; develbranch_6's gui_modules/nviz.py still imports it. It refuses
to run unless PyOpenGL is present, but it doesn't actually use it.

I suggest backporting:

   http://trac.osgeo.org/grass/changeset/33474

Except for the grass6->grass7 bits (i.e. just the first two
deletions).

ops, my bad, done in r36967 (devbr6) and r36968 (relbr64).

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa