Thanks very much, Robert. Do you happen to know how I would specify the range 
of verts that an osg::Geometry object is responsible for drawing?

Thanks again,
Frank


robertosfield wrote:
> Hi Frank,
> 
> You can share a single osg::Vec3Array between multiple osg::Geometry,
> in the lastest OSG in svn/trunk and the 2.9.x dev series the buffer
> object support should also be flexible enough for you to manually
> specify the VBO for that particular Vec3Array.
> 
> Robert.
> 
> On Wed, Sep 8, 2010 at 7:01 PM, Frank Sullivan <> wrote:
> 
> > Hello there,
> > 
> > IIRC, OpenGL allows you to stuff several meshes into a single VBO, and then 
> > when it comes time to draw a mesh, you can specify an offset into this VBO 
> > along with the number of primitives to draw, in essence drawing only a 
> > subset of this VBO at a time.
> > 
> > I was wondering if this same functionality is exposed in OpenSceneGraph? 
> > What I'd like to do is something like this: stuff the vertex positions into 
> > a single Vec3Array, and hand this array over to a single Geometry object. 
> > Then, instantiate one or more Geodes that each share this Geometry object, 
> > but each draws only a subset of the Geometry (each possibly drawing a 
> > different subset). Is this possible?
> > 
> > Thank you!
> > 
> > Cheers,
> > Frank
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=31431#31431
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> > 
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31436#31436





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to