Hi,

I dived into the code and discovered, that the problem is cause by 
vpbmaster.cpp:

Code:

if (!taskManager->hasTasks())
                {
                    std::string sourceFileName = taskManager->getBuildName() + 
std::string("_master.source");
                    tasksOutputFileName = taskManager->getBuildName() + 
std::string("_master.tasks");

                    taskManager->setSourceFileName(sourceFileName);
                    if (!taskManager->generateTasksFromSource())
                    {
                        // nothing to do.
                        return 1;
                    }

                    taskManager->writeSource(sourceFileName);

...




 
The function   taskManager->writeSource(sourceFileName) itself 
calls

Code:

osgDB::writeNodeFile(*_terrainTile, _sourceFileName);





This last function call returns true ( for success) but it does not seem to be 
successful. 

If I'm right, the appropriate reader/writer is determinded by the extension.

But I can't discover which plugin is used to store a .source file.
Because this file is empty, the osgdem tasks fail and the program exit.

Can anyone give me an hint wich modul / class or filename handles writing 
.source files?

my suggested solution:
Step 1: modify TaskManager to throw an exception if writing build_master.source 
failes.
Step 2: determin the correct writer, fix him and ensure that he returns false 
on failure.

Best regards,

Torben

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





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

Reply via email to