[GRASS-user] Trento3D screenshots redone

Hamish hamish_nospam at yahoo.com
Thu May 18 21:04:03 EDT 2006


> > > How would you go about adding 3D objects like trees?  Or are you
> > > only dreaming?
> >
> > http://les-ejk.cz/?cat=grass
> >
> > Not dreaming... :D
> 
> Neat module Jachym !
> 
> g.region res=4
> r.mapcalc "trees= if(ndvi >= 0.5, 1, null())"
> g.region res=8
> r.to.vect in=trees out=trees_pts feature=point
> g.region res=4
> v.trees3d in=trees_pts out=t3d elevation=elev_4m oak=50 pine=50 \
> spruce=0  nviz elev=elev_4m color=ikonos.rgb vect=t3d
> 
> output:
> http://169.237.35.250/~dylan/temp/pinn_trees.jpg

I see your trees are in geometric lines. For a more natural looking
picture I would suggest perturbing your vector points (v.perturb) by 
a random amount up to about 1/2 of the initial raster resolution.


Hamish




More information about the grass-user mailing list