osg 三维模型加载与解析(fbx、3ds、ive、obj、osg)

 

void TeslaManage::OnlineTreeViewDoubleClick(const QModelIndex & index)
{
    int row = index.row();
    qDebug() << "row:" << row;
    QString objName = index.model()->index(0, 0).child(row, 0).data().toString();
    if (root != NULL)
    {
        osg::Node* findNode = findOsgNodeByName(objName);
        if (findNode != NULL)
        {
            cPickHandler->setNodeTexture(findNode);
        }
    }
}

 

 

 

 

 

posted @ 2019-07-15 18:13  西北逍遥  阅读(7240)  评论(0编辑  收藏  举报