Printing 3D maps

duncan_a at wrcplc.co.uk duncan_a at wrcplc.co.uk
Sat Oct 4 05:51:17 EDT 1997


From:	NAME: Alistair Duncan
	FUNC: GIS Group <DUNCAN_A at SATURNA1@TITAN>
To:	SMTP%"grassu at cecer.army.mil"@SATURN at MRGATE@TITAN,
	DUNCAN_A at SATURNA1

Hello,

The best way I've found to printout 3D maps from d.3d is to use the CELL
driver.

Get the best view for your scene in d.3d interactive, and save the parameters
to a 3D view file (in the GRASS database directories). Open up that file and
substitute the parameters into the d.3d command line. (You may have to adjust a
few of the parameters here - just make sure it looks allright on the X monitor.

Once you've got the d.3d command line you want, start the CELL driver :-
 d.mon start=CELL select=CELL
 setenv GRASS_HEIGHT 2000
 setenv GRASS_WIDTH 2000
 d.erase
 d.3d <your d.3d command line parameters>
 d.mon stop=CELL
 d.mon select=x0
 <wait a few seconds - the CELL driver is now writing it's raster layer which
is called D_cell>
 g.region rast=D_cell
 d.rast D_cell

The raster D_cell should now have your 3D view as a normal GRASS raster - you
can now export this into any file format you want (eg r.out.tga, r.out.ppm,
r.out.gif, r.out.tif etc, etc) and import this into a graphics package for
printing.

Hope this helps,

Alastair Duncan



More information about the grass-user mailing list