Hi Julia, On Thu, Apr 9, 2009 at 2:17 AM, Julia Guo <[email protected]> wrote:
> > > Is your drawable a ShapeDrawable? Then you're pretty much out of luck, > > because these only set texture coordinates on unit 0 and don't give you > > access to their internals. > > > thanks Skylark! - that would explain the different results Im getting for > unit 0 and 1 with a ShapeDrawable. > Ive now changed to a model derived from osg::Geometry and the texture > animation is working fine. > > > Those ShapeDrawable classes seem limiting ... is there a goal to derive > them from osg::Geometry rather than the current raw OpenGL calls? > ShapeDrawable has turned out to be as much as hinderance as they have been a help. I added them just as convenience for quickly visualizing the shape primitives, without any intention of it being widely used. I would like to see ShapeDrawable deprecated and replaced by a facility that creates osg::Geometry given a shape primitive. Alas I have many things on my TODO list and replacing ShapeDrawable is towards the back of this list. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

