Hi All,
I implemented the wireframe feature as follows:
Code:
void addWireframe(osg::Group* root, osg::Node* scene)
{
osg::ref_ptr decorator = new osg::Group;
decorator->setNodeMask(0x1);
osg::StateSet* stateset = decorator->getOrCreateStateSet();
osg::PolygonOffset* polyoffset =
Hi Werner,
As I explained in my previous post, the method should find the
wrappers if the plugin has been already loaded, so it shouldn't be
trying to reload a plugin as there would be no beneft - the code will
have already checked all the possible wrappers.
You haven't provided any guidance on
Hi Robert,
the problem is here:
if
(osgDB::Registry::instance()->loadLibrary(pluginLib)==osgDB::Registry::LOADED)
return findWrapper(name);
return NULL;
The loadLibrary() returns PREVIOUSLY_LOADED and not LOADED.
So NULL gets returned instead of a wrapper pointer and thus the node
Hi Werner,
I can't work out what might be wrong form the description.
In general the ObjectWrapperManager::findWrapper() checks wrappers
that have been registered with it first, then if it fails to find one
then attempts to load plugins that may be able to provide that
wrapper. If the code is
Hi Robert,
I think I catched another problem in version 3.4.0.
I try exporting my scene as .osgx file.
But except the xml header nothing is written.
I debuged it and found the following sequence of calls:
osg::ref_ptrrw=osgDB::Registry::instance()->getReaderWriterForExtension(
Hi,
I got highway tag from the QGIS(OpenStreetMap) for roads and integrated with
DEM file using VPB with following command.
osgdemd -t texture/image.tif -d elevation/dem.tif --forest highway/roads.shp
--height 10 --TERRAIN -o output/output.osg
After that i am getting the vertices of roads from
6 matches
Mail list logo