hi again, well, the osg is running now, i can compile osg priyects, but i still
have probles with FBX. this is my code:
// Inclusi'on de cabeceras de OSG necesarias
#include <osg/Node>
#include <osg/Group>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include <osgViewer/Viewer>
//#include <osgWidget/Widget>
#include <iostream>
using namespace std;
int main()
{
// osgViewer "pruba.fbx";
// Carga/creaci'on y configuraci'on de la escena
//osg::Group* node = new osg::Group();
//osg::Node* node=new osg::Node();
cout<<"letrero 1"<<endl;
osg::ref_ptr<osg::Node> escena= osgDB::readNodeFile("Lerpz.fbx");
//osg::Node* escena = osgDB::readNodeFile("create.fbx");
if (!escena){
cout<<"No estoy leyendo"<<endl;
exit(0);}
//osgDB::writeNodeFile(*escena.get(), "copfbx.osg");
//osg::Node* escena = osgDB::readNodeFile("cow.osg");
cout<<"letrero 1"<<endl;
cout<<"letrero 1"<<endl;
cout<<"letrero 1"<<endl;
cout<<"letrero 1"<<endl;
cout<<"letrero 1"<<endl;
cout<<"letrero 1"<<endl;
//osgWidget::point_type w = view->getCamera()->getViewport()->width();
// Creaci'on y configuraci'on del visor
osgViewer::Viewer visor;
//visor.setSceneData(node);
visor.setSceneData(escena);
// Corrida del ciclo para el recorrido (actualizaci'on y dibujo) de la escena
return visor.run();
}
how you can see, it's not reading the fbx files. how is the problem now?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37471#37471
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org