[osg-users] osgAnimation depth of Skeleton update

2019-04-08 Thread Sam Brkopac
Hi All, I'm currently trying to parse in a custom file format and I'm running into issues generating a proper skeleton hierarchy for it. It doesn't look like the osgAnimation::Skeleton traverses all the way down the bone hierarchy. I've created a minimal example here:

Re: [osg-users] [osgPlugins] Problems with dae plugin

2019-04-08 Thread Chris Hanson
That's where my expertise ends. That COLLADA library is the anti-Christ. If it doesn't work, consider building Rui Wang's OSG ASSIMP reader/writer ( https://github.com/xarray/osgRecipes/wiki ) which uses a different and probably better-supported COLLADA/dae library. On Mon, Apr 8, 2019 at 7:14

Re: [osg-users] [osgPlugins] Problems with dae plugin

2019-04-08 Thread Nikita Petrov
Thanks for suggestion, I've checked for DLLs and strangely some were not loaded from PATH variable paths. I copied the needed ones to OSG bin and now it launches. But still dae is not loading. It throws an exception on the second "if" of

Re: [osg-users] [osgPlugins] Problems with dae plugin

2019-04-08 Thread Chris Hanson
This usually means the plugin was not found or failed to load. Can you trace with something like SysInternals tools and see if the DLL file is found and what other dependency files it might have tried to load? On Mon, Apr 8, 2019 at 5:50 PM Nikita Petrov wrote: > Hi, > > I am trying to build

[osg-users] [osgPlugins] Problems with dae plugin

2019-04-08 Thread Nikita Petrov
Hi, I am trying to build dae plugin to open dae files with osgviewer. Everything builds great, but when I try to open dae file (I tried several) I get the following error: Code: Error reading file .\test.dae: read error (Could not find plugin to read objects from file ".\test.dae".) I use

Re: [osg-users] Getting LigtModel from viewer

2019-04-08 Thread Robert Osfield
Hi Claudio, On Mon, 8 Apr 2019 at 10:57, Claudio Benghi wrote: > Your solution works very well, the code I'm using to get the LightModel is > > > Code: > > osg::LightModel *lightModel = dynamic_cast > (viewer->getCamera()->getStateSet()->getAttribute(osg::StateAttribute::LIGHTMODEL)); > > > > >

Re: [osg-users] Getting LigtModel from viewer

2019-04-08 Thread Claudio Benghi
Hello Robert, Your solution works very well, the code I'm using to get the LightModel is Code: osg::LightModel *lightModel = dynamic_cast (viewer->getCamera()->getStateSet()->getAttribute(osg::StateAttribute::LIGHTMODEL)); I've already tested that changing its state does affect the

Re: [osg-users] Getting LigtModel from viewer

2019-04-08 Thread Robert Osfield
Hi Claudio, On Mon, 8 Apr 2019 at 00:16, Claudio Benghi wrote: > I'd like to be able to toggle the setTwoSided() value of the LightModel that > gets instantiated with the default osg::viewer class. > > I've looked at the code a while but I can't find a way to get the instance of > LightModel