I've recently switch to Mountain Lion, and am getting weird behavior with the
general behavior of OSG, and wanted to see if anyone else had similar issues.
If I apply a MatrixTransform to a node with a translation matrix, the object I
have added to the node becomes a diagonal line. If I instead use a
PositionAndTranslation node, it works as expected. Finally, if I just add the
object to the root node, everything works as expected.
Here's the code I'm using:
Code:
int main(int argc, char **argv) {
osgViewer::Viewer *viewer = new osgViewer::Viewer;
osgDB::Registry::instance()->getDataFilePathList().push_back("../../resources/");
osg::Group *rootNode = new osg::Group;
osg::Node *node = osgDB::readNodeFile("cow.osgt");
osg::MatrixTransform *transformNode = new osg::MatrixTransform;
transformNode->setMatrix(osg::Matrix::translate(osg::Vec3(0, 0, 0)));
transformNode->addChild(node);
rootNode->addChild(transformNode);
viewer->setSceneData(node);
viewer->run();
}
One additional issue, I'm getting occasional crashes with:
Code:
Simulator(74311,0x7fff7c095180) malloc: *** error for object 0x102f1c6a8:
incorrect checksum for freed object - object was probably modified after being
freed.
*** set a breakpoint in malloc_error_break to debug
This occurs in random places, but one example is in 'void
DarwinWindowingSystemInterface::_init()'
Thanks,
Abe[/code]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49143#49143
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org