[osg-users] to draw landscapes beginning from a matrix

aurora restivo aurora_re at tiscali.it
Mon Feb 4 07:14:04 PST 2008


thanks for the satisfactory answer.
I have tried to study his solution but it is difficult for the lack of 
complete documentation.
I can try to explain better the problem:
I have a matrix of altitudes 410 X 296, I would want to represent her 
first in 2 dimensions (to color of white the smaller altitude and of 
black the greatest altitude),
then to represent her in 3 dimensions.
the purpose is to draw a volcanic ground for the simulation of castings 
of it washes.
can you help me to understand as I must proceed?
do you have some example of use of osg::HeightField and osg::Terrain?
thanks in advance

Aurora Restivo

-----------------------------------------------------------------------------------------------------------------------------
From: Jean-Christophe Lombardo <jean-christophe.lombardo at ... 
<http://gmane.org/get-address.php?address=jean%2dchristophe.lombardo%2dAYb5Cdd1jaQ%40public.gmane.org>>
Subject: Re: to draw landscapes beginning from a matrix 
<http://news.gmane.org/find-root.php?message_id=%3c47A1E355.4000707%40cstb.fr%3e>
Newsgroups: gmane.comp.graphics.openscenegraph.user 
<http://news.gmane.org/gmane.comp.graphics.openscenegraph.user>
Date: 2008-01-31 15:03:49 GMT (4 days and 3 minutes ago)

You might either
*  build an osg::HeightField 
(http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01227.html) 
and draw it with an osgTerrain::TerrainNode node with an 
osgTerrain::HeightFieldLayer as an elevation layer
* or use VirtualPlanetBuilder 
(http://www.openscenegraph.org/projects/VirtualPlanetBuilder)

jcl

aurora restivo wrote:
> Hi!
>
> I have necessity to draw landscapes beginning from a matrix that 
> contains the data of the altitude.
>
> can you help me?
>
> Thanks.
> Aurora Restivo
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at ... <http://gmane.org/get-address.php?address=osg%2dusers%2dZwoEplunGu0hajLcUbyfC12AsgEQdTeF%40public.gmane.org>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080204/682c6f87/attachment.html 


More information about the osg-users mailing list