[GRASS5] 3D flyover from DEM?

Aside from simply setting a point of reference and drawing a static map based on a DEM, is there a way to generate a 3D map which I can use as some sort of fly-over? In other words, with a DEM and a 2D image overlaid on top, I'd like to generate a file that I can use in a 3D viewer (perhaps Quicktime or something similar) which enables me to zoom in and out and change my point of reference without going back to GRASS to redraw.

Thanks,
David

This can be done in NVIZ--including the animated flyover.

Michael

On 1/5/05 11:16 AM, "David Piasecki" <piasecda@nv.doe.gov> wrote:

Aside from simply setting a point of reference and drawing a static map
based on a DEM, is there a way to generate a 3D map which I can use as
some sort of fly-over? In other words, with a DEM and a 2D image
overlaid on top, I'd like to generate a file that I can use in a 3D
viewer (perhaps Quicktime or something similar) which enables me to
zoom in and out and change my point of reference without going back to
GRASS to redraw.

Thanks,
David

______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Do I have to use the NVIZ viewer separate from my own application, or is there a way to view the data with OpenGL?

David

On Jan 6, 2005, at 9:21 AM, Michael Barton wrote:

This can be done in NVIZ--including the animated flyover.

Michael

On 1/5/05 11:16 AM, "David Piasecki" <piasecda@nv.doe.gov> wrote:

Aside from simply setting a point of reference and drawing a static map
based on a DEM, is there a way to generate a 3D map which I can use as
some sort of fly-over? In other words, with a DEM and a 2D image
overlaid on top, I'd like to generate a file that I can use in a 3D
viewer (perhaps Quicktime or something similar) which enables me to
zoom in and out and change my point of reference without going back to
GRASS to redraw.

Thanks,
David

______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

I think that you can save the animation files from NVIZ in a format you can
use in another app.

Michael

On 1/6/05 10:45 AM, "David Piasecki" <piasecda@nv.doe.gov> wrote:

Do I have to use the NVIZ viewer separate from my own application, or
is there a way to view the data with OpenGL?

David

On Jan 6, 2005, at 9:21 AM, Michael Barton wrote:

This can be done in NVIZ--including the animated flyover.

Michael

On 1/5/05 11:16 AM, "David Piasecki" <piasecda@nv.doe.gov> wrote:

Aside from simply setting a point of reference and drawing a static
map
based on a DEM, is there a way to generate a 3D map which I can use as
some sort of fly-over? In other words, with a DEM and a 2D image
overlaid on top, I'd like to generate a file that I can use in a 3D
viewer (perhaps Quicktime or something similar) which enables me to
zoom in and out and change my point of reference without going back to
GRASS to redraw.

Thanks,
David

______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Thanks. I'll give that a try.

David

On Jan 6, 2005, at 9:48 AM, Michael Barton wrote:

I think that you can save the animation files from NVIZ in a format you can
use in another app.

Michael

On 1/6/05 10:45 AM, "David Piasecki" <piasecda@nv.doe.gov> wrote:

Do I have to use the NVIZ viewer separate from my own application, or
is there a way to view the data with OpenGL?

David

On Jan 6, 2005, at 9:21 AM, Michael Barton wrote:

This can be done in NVIZ--including the animated flyover.

Michael

On 1/5/05 11:16 AM, "David Piasecki" <piasecda@nv.doe.gov> wrote:

Aside from simply setting a point of reference and drawing a static
map
based on a DEM, is there a way to generate a 3D map which I can use as
some sort of fly-over? In other words, with a DEM and a 2D image
overlaid on top, I'd like to generate a file that I can use in a 3D
viewer (perhaps Quicktime or something similar) which enables me to
zoom in and out and change my point of reference without going back to
GRASS to redraw.

Thanks,
David

______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

David Piasecki wrote:

Aside from simply setting a point of reference and drawing a static map
based on a DEM, is there a way to generate a 3D map which I can use as
some sort of fly-over? In other words, with a DEM and a 2D image
overlaid on top, I'd like to generate a file that I can use in a 3D
viewer (perhaps Quicktime or something similar) which enables me to
zoom in and out and change my point of reference without going back to
GRASS to redraw.

I'm not sure what you're asking for.

You can use p.vrml (if it still works) to export a DEM pair to a VRML
1.0 ElevationGrid node, which you can then view from any position and
direction.

Or you can use any of the r.out.* programs to dump the DEM to a raster
format which can be understood by a rendering package such as POVray,
and use that to render a fly-over animation.

Also, you can use NVIZ to render a fly-over as a series of images,
which can be converted to e.g. MPEG using a separate encoder.

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

I'm new to anything 3D (Grass or non-Grass), so I'm open to advice. Sounds like the VRML is what I was originally envisioning. I'll give that a shot.

Thanks,
David

On Jan 6, 2005, at 2:57 PM, Glynn Clements wrote:

David Piasecki wrote:

Aside from simply setting a point of reference and drawing a static map
based on a DEM, is there a way to generate a 3D map which I can use as
some sort of fly-over? In other words, with a DEM and a 2D image
overlaid on top, I'd like to generate a file that I can use in a 3D
viewer (perhaps Quicktime or something similar) which enables me to
zoom in and out and change my point of reference without going back to
GRASS to redraw.

I'm not sure what you're asking for.

You can use p.vrml (if it still works) to export a DEM pair to a VRML
1.0 ElevationGrid node, which you can then view from any position and
direction.

Or you can use any of the r.out.* programs to dump the DEM to a raster
format which can be understood by a rendering package such as POVray,
and use that to render a fly-over animation.

Also, you can use NVIZ to render a fly-over as a series of images,
which can be converted to e.g. MPEG using a separate encoder.

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

Aside from simply setting a point of reference and drawing a
static map based on a DEM, is there a way to generate a 3D map
which I can use as some sort of fly-over? In other words, with a
DEM and a 2D image overlaid on top, I'd like to generate a file
that I can use in a 3D viewer (perhaps Quicktime or something
similar) which enables me to zoom in and out and change my point
of reference without going back to GRASS to redraw.

[VRML solution]
  (wasn't there a r.out.vrml once as well as r.out.pov? could of sworn)

> Also, you can use NVIZ to render a fly-over as a series of images,
> which can be converted to e.g. MPEG using a separate encoder.

see d.nviz for an easy solution for creating these. I think Bob
Covill's website had some examples. Tips for creating animations for
the web-wiki are on my todo list once I get back to home turf.

Also, for a while I've thought it would be not too hard to get GRASS
raster maps into TerraGear, the scenery generating end of the open
source FlightGear flight simulator. Currently it takes USGS DEMs, SRTM
DEMs, and shape files amongst other file formats for input.
http://terragear.org
http://flightgear.org

.. but I haven't spent any time trying this yet. I'd really like to
bring these two projects together. I think that is the most promising
long term solution for what you want.

I've also got a Matlab hack which runs a little flight sim through your
3d surface in a Matlab display window. A bit weird but it works. Export
your DEM into Matlab with r.out.mat.

luck,
Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Hamish wrote:

>>> Aside from simply setting a point of reference and drawing a
>>> static map based on a DEM, is there a way to generate a 3D map
>>> which I can use as some sort of fly-over? In other words, with a
>>> DEM and a 2D image overlaid on top, I'd like to generate a file
>>> that I can use in a 3D viewer (perhaps Quicktime or something
>>> similar) which enables me to zoom in and out and change my point
>>> of reference without going back to GRASS to redraw.

[VRML solution]
  (wasn't there a r.out.vrml once as well as r.out.pov? could of sworn)

I suspect that you're thinking of p.vrml. I have no idea why it isn't
called r.out.vrml.

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