Hi Robert,
As I described you that I want to create surface with 640x640 high grids. I 
created this surface with
the osg::Geometry class with triangles. 
It looks like that all triangles can not be showed, only a fixed number showed 
in osg and the last triangles are not showed.
Is there any other way as to share this object into two smaller objects?

Thanks
Sascha 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Robert Osfield
Sent: Thursday, January 04, 2007 1:16 PM
To: osg users
Subject: Re: [osg-users] How get grid data from osg::Shape


Hi Sascha,

I fear you are misusing osg::HeightField, its not really intended for
rendering, but rather collision detected.  You should use
osg::Geometry instead.

Robert.

On 1/4/07, Sascha Kuhn <[EMAIL PROTECTED]> wrote:
> Hi Robert,
> I have created a world of tiles (high field of a surface), each tile is a 
> grid which is added into osg.
> I copied from the example osgshape:
>  geode->addDrawable(new osg::ShapeDrawable(grid));
>
> Each grid in the tree includes the array.
> I want to create a little method which gives a array back which is already in 
> the osg world.
> Now the method find the geode on the tree and I also can get the Shape which 
> is included in geode:
> osg::Shape* test= geode->getDrawable(0)->getShape();
>
> But I can not attach to the array.
> Thanks
> Sascha
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Robert Osfield
> Sent: Thursday, January 04, 2007 11:14 AM
> To: osg users
> Subject: Re: [osg-users] How get grid data from osg::Shape
>
>
> Hi Sascha,
>
> Could you roll back a bit  and explain what you are trying to do, as
> most drawables don't have shapes associated with them, and even when
> they do they only a HeightField if you've assigned them that way.
>
> Robert.
>
> On 1/4/07, Sascha Kuhn <[EMAIL PROTECTED]> wrote:
> > Hy,
> > can any help me to attach to a array from a grid object.
> > I tried it on this way:
> > osg::Shape* test= geode->getDrawable(0)->getShape();
> >
> > but the high method in that object is private.
> > Is there any way to attach to that high array?
> >
> > Thanks.
> > Sascha
> > _______________________________________________
> > osg-users mailing list
> > osg-users@openscenegraph.net
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to