Hello Everyone,

im pretty new to OSG. Well i tried inheriting Geode and MatrixTransform into a 
class(RotatePyramid) as follows:


Code:
class RotatePyramid : public osg::Geode, public osg::MatrixTransform {
        
};

osg::ref_ptr<RotatePyramid> pyramidGeode = new RotatePyramid;

int main()
{
      osg::ref_ptr<osg::Group> root = new osg::Group;
        
      ... // code here
      root->addChild(pyramidGeode); // error here
}



Error: 'argument' : ambiguous conversions from 'RotatePyramid *' to 'osg::Node 
*'
Can anyone please suggest how i can rectify this?

Thanks,
Mukund

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





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

Reply via email to