On Fri, Oct 23, 2009 at 10:51 AM, Miguel Lokida <[email protected]> wrote: > It means that Shapes (cylinder, sphere, cone,...) Cannot be added to a geode.
??D?SD? Are you not already adding ShapeDrawable's to Geode? As for adding a Shape directly to a Geode, yep you can't do this, osg::Shape are all geometric primitives, they don't have any rendering functionality of there own, and they aren't meant to. > And, it means that if we want to use these sorts of shapes and affected them > differents unit texture, we have to build them as a geometry ? Yes. > I want to use differents texture units because I have seen that during > rendering, osg spend a lot of time in osg::Texture::applyTexImage2D_load > and I suppose that for each texture it take the texture from cpu memory to > put it in gpu memory. > I would like to have the textures in the gpu memory since they won't be > modify. > > May be there is a other way to do this ? The OSG will only ever download imagery to textures when it needs to, your application should not spend much time at all in osg::Texture::applyTexImage2D_load, if it does there is something serious wrong with your drivers or the way you are using the OSG. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

