You will need to build the Collada 3rd party libraries and dependencies
www.collada.org
 
 

Gordon

__________________________________________________________
Gordon Tomlinson

Product Manager 3D
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________
(C): (+1) 571-265-2612
(W): (+1) 703-437-7651

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
- Master Tambo Tetsura

 
 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adonai Canêz
Sent: Thursday, October 30, 2008 2:49 PM
To: osg
Subject: [osg-users] read file Collada using osg


Hi,
 
I'm trying to read a file extension .dae (COLLADA) version 1.4.0, using 
openSceneGraph version 2.4, but I'm getting the information that has no plugin 
todo the reading.
How do I solve this?
 
int main()
{
osg::Group* cenario = new osg::Group();
osg::Geode* GeodeTerreno = new osg::Geode();
osgViewer::Viewer* viewer = new osgViewer::Viewer();
// Define a estrutura para o modelo 3D da nave espacial
osg::Node* sphere = osgDB::readNodeFile("BaseEsfera.dae");
osg::MatrixTransform* matrizTransformacoesSphere = new osg::MatrixTransform();
matrizTransformacoesSphere->addChild(sphere);
cenario->addChild(matrizTransformacoesSphere);
// run optimization over the scene graph
osgUtil::Optimizer optimzer;
optimzer.optimize(cenario);
viewer->setSceneData(cenario);
return viewer->run();
}



________________________________

Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live 
Search Maps! Experimente já! <http://www.livemaps.com.br/index.aspx?tr=true>  
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to