Re: [Opensg-users] OpenSG2: New HDR stage

2016-05-09 Thread Carsten Neumann
Hello Johannes,

On 05/03/2016 10:26 AM, Johannes Brunen wrote:
> I have implemented a new HDR stage and I would like to ask for some
> help with it. I have written a test and an example for this new stage.
> Essentially it is working but I get some strange behavior on startup of
> the examples. I.e. if I start the example/test the mipmap generated
> texture that I use in the stage is not working correctly. After resizing
> the window about some amount suddenly it starts working. The problem
> does not show up if I do not use the cube mapped sphere in the
> example/test. I have tried a lot but can't locate the problem. The
> problem shows up on my ATI and on my NVidia platform with recent
> drivers. So I could really use some help for this.

hmm, after fixing some small build issues (the gcc of Fedora 22 still 
defaults to C++98 and was barfing on some C++11'isms) it seems the 
example is working for me. At least I can see the colors adjust based on 
the brightness of the image content - I'm running without the 
AntTweakBar stuff, so only using initial settings for everything.
Can you perhaps send a screenshot of the problem or describe what is 
going wrong?

> Additionally, I have written a special foreground in order to allow
> AntTweakBar integration. The example does make use of it. In the example
> is a flag that allows to enable or disable the GUI. However, in order to
> use AntTweakBar the OpenSG example (tonemapping.cpp) does have to
> include and link against the library. Currently, I do setup this by hand
> in my VC++ project. It would be nice if OpenSG would provide CMake
> support for AntTweakBar. For complex stuff like the tonemapping example
> it does really help for testing and experimenting.

The CallbackAlgorithmForeground is indeed a nice addition, thanks! What 
exactly do you mean by "... provide CMake support for AntTweakBar", i.e. 
what is missing to make it work or work better?

Cheers,
Carsten

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users


Re: [Opensg-users] appCSM Crash on Mac OS X

2016-05-09 Thread Venkat B
Good day Carsten,

That was it - checked out the latest from git and I do not see the crash
anymore.
Thank you for your assistance.

Regards,
Venkat


On Tue, May 10, 2016 at 12:37 AM, Carsten Neumann <
carsten.p.neum...@gmail.com> wrote:

> Hello Venkat,
>
> I don't have access to an OS X system, but I suspect the problem is
> really this: Unknow container type DrawManager
> The data files read by appCSM contained references to a type DrawManager
> which does not exist, there is only CSMDrawManager. I've adjusted (and
> committed) the files to use CSMDrawManager instead, which for me allows
> the application to start.
>
> Cheers,
> Carsten
>
> On 05/09/2016 12:22 PM, Venkat B wrote:
> > Good day,
> >
> > Mac OS X El Capitan, OpenSG git latest, Xcode 7.2
> >
> > I am trying to run the CSM sample app and I get a crash on startup with
> > the following backtrace:
> > (lldb) bt
> > * thread #1: tid = 0x1bc2361, 0x000111ea6e3c
> > libOSGBase.2.0.0.dylib`OSG::PThreadBase::getCurrentChangeList() + 28 at
> > OSGThread.cpp:291, queue = 'com.apple.main-thread', stop reason =
> > EXC_BAD_ACCESS (code=1, address=0x0)
> >* frame #0: 0x000111ea6e3c
> > libOSGBase.2.0.0.dylib`OSG::PThreadBase::getCurrentChangeList() + 28 at
> > OSGThread.cpp:291
> >  frame #1: 0x000111da0969
> > libOSGBase.2.0.0.dylib`OSG::Thread::getCurrentChangeList() + 9 at
> > OSGThread.inl:303
> >  frame #2: 0x000111e42929
> >
> libOSGBase.2.0.0.dylib`OSG::FieldContainer::registerChangedContainer(this=0x000113b20760)
> > + 313 at OSGFieldContainer.cpp:292
> >  frame #3: 0x0001014db13f libOSGContribCSM.2.0.0.dylib`void
> > OSG::FieldContainer::editMField > OSG::RecordedRefCountPolicy, 0> >(this=0x000113b20760, whichField=4,
> > oField=0x000113b207b8) + 63 at OSGFieldContainer.inl:391
> >  frame #4: 0x0001014d94f0
> >
> libOSGContribCSM.2.0.0.dylib`OSG::ComplexSceneManagerBase::clearGlobals(this=0x000113b20760)
> > + 48 at OSGComplexSceneManagerBase.cpp:704
> >  frame #5: 0x0001014daebb
> >
> libOSGContribCSM.2.0.0.dylib`OSG::ComplexSceneManagerBase::resolveLinks(this=0x000113b20760)
> > + 43 at OSGComplexSceneManagerBase.cpp:1403
> >  frame #6: 0x000111e4307a
> >
> libOSGBase.2.0.0.dylib`OSG::FieldContainer::subReferenceUnrecorded(this=0x000113b20760)
> > + 74 at OSGFieldContainer.cpp:470
> >  frame #7: 0x0001011878f3
> >
> libOSGContribCSM.2.0.0.dylib`OSG::UnrecordedRefCountPolicy::subRef(pObject=0x000113b20760)
> > + 35 at OSGContainerRefCountPolicies.inl:112
> >  frame #8: 0x0001014ce2b4
> > libOSGContribCSM.2.0.0.dylib`OSG::RefCountPtr > OSG::UnrecordedRefCountPolicy>::~RefCountPtr(this=0x00010174d340) +
> > 20 at OSGRefCountPtr.inl:110
> >  frame #9: 0x0001014ca755
> > libOSGContribCSM.2.0.0.dylib`OSG::RefCountPtr > OSG::UnrecordedRefCountPolicy>::~RefCountPtr(this=0x00010174d340) +
> > 21 at OSGRefCountPtr.inl:109
> >  frame #10: 0x7fff89d330ff
> > libsystem_c.dylib`__cxa_finalize_ranges + 345
> >  frame #11: 0x7fff89d33403 libsystem_c.dylib`exit + 55
> >  frame #12: 0x7fff85a605b4 libdyld.dylib`start + 8
> >  frame #13: 0x7fff85a605ad libdyld.dylib`start + 1
> >
> > The following is printed on the screen as the application starts up:
> >
> > ColorBuffer : 0x0001
> > DepthBuffer : 0x0002
> > GBuffer : 0x0004
> > ShadowFactor: 0x0008
> > Unknow container type DrawManager
> > WARNING: -> syntax error in Line 71, read '['
> > Got 0x11633c080
> > loading osg file
> > Source/Contrib/ComplexSceneManager/data/system-native.osg ...
> > WARNING ADDING SECOND COMPLEX SCENE MANAGER, WILL SELF DESTRUCT IN 45
> > SECONDSUnknow container type DrawManager
> > WARNING: -> syntax error in Line 71, read '['
> > loading data Examples/CSM/Models/tie.wrl ...
> > WARNING: ComplexSceneManager: no mainloop exiting
> > FieldConnectorFactoryBase::terminate
> > WARNING: FieldContainerFactoryBase::terminate: Entry [752] is not NULL
> > ([0x116560fb0]).
> > WARNING:   [0] [0x116560ed0] [FileContextAttachment] [1 0]
> > WARNING: FieldContainerFactoryBase::terminate: Entry [751] is not NULL
> > ([0x116560e80]).
> > WARNING:   [0] [0x116560dd0] [State] [1 0]
> > [snip]
> > WARNING:   [0] [0x113c2c760] [Node] [1 0]
> > WARNING: FieldContainerFactoryBase::terminate: Entry [422] is not NULL
> > ([0x113b208a0]).
> > WARNING:   [0] [0x113b20760] [ComplexSceneManager] [1 0]
> > WARNING: FieldContainerFactoryBase::terminate: Entry [331] is not NULL
> > ([0x116553a60]).
> > WARNING:   [0] [0x116553850] [VRMLGenericAtt] [37 0]
> > ComplexSceneManager: no mainloop exiting
> >
> > Any ideas what is happening and what I can do to fix the crash?
> > Thanks in advance.
> >
> > Regards,
> > Venkat
> >
> >
> >
> >
> --
> > Find and fix application performance issues faster wit

Re: [Opensg-users] appCSM Crash on Mac OS X

2016-05-09 Thread Carsten Neumann
Hello Venkat,

I don't have access to an OS X system, but I suspect the problem is 
really this: Unknow container type DrawManager
The data files read by appCSM contained references to a type DrawManager 
which does not exist, there is only CSMDrawManager. I've adjusted (and 
committed) the files to use CSMDrawManager instead, which for me allows 
the application to start.

Cheers,
Carsten

On 05/09/2016 12:22 PM, Venkat B wrote:
> Good day,
>
> Mac OS X El Capitan, OpenSG git latest, Xcode 7.2
>
> I am trying to run the CSM sample app and I get a crash on startup with
> the following backtrace:
> (lldb) bt
> * thread #1: tid = 0x1bc2361, 0x000111ea6e3c
> libOSGBase.2.0.0.dylib`OSG::PThreadBase::getCurrentChangeList() + 28 at
> OSGThread.cpp:291, queue = 'com.apple.main-thread', stop reason =
> EXC_BAD_ACCESS (code=1, address=0x0)
>* frame #0: 0x000111ea6e3c
> libOSGBase.2.0.0.dylib`OSG::PThreadBase::getCurrentChangeList() + 28 at
> OSGThread.cpp:291
>  frame #1: 0x000111da0969
> libOSGBase.2.0.0.dylib`OSG::Thread::getCurrentChangeList() + 9 at
> OSGThread.inl:303
>  frame #2: 0x000111e42929
> libOSGBase.2.0.0.dylib`OSG::FieldContainer::registerChangedContainer(this=0x000113b20760)
> + 313 at OSGFieldContainer.cpp:292
>  frame #3: 0x0001014db13f libOSGContribCSM.2.0.0.dylib`void
> OSG::FieldContainer::editMField OSG::RecordedRefCountPolicy, 0> >(this=0x000113b20760, whichField=4,
> oField=0x000113b207b8) + 63 at OSGFieldContainer.inl:391
>  frame #4: 0x0001014d94f0
> libOSGContribCSM.2.0.0.dylib`OSG::ComplexSceneManagerBase::clearGlobals(this=0x000113b20760)
> + 48 at OSGComplexSceneManagerBase.cpp:704
>  frame #5: 0x0001014daebb
> libOSGContribCSM.2.0.0.dylib`OSG::ComplexSceneManagerBase::resolveLinks(this=0x000113b20760)
> + 43 at OSGComplexSceneManagerBase.cpp:1403
>  frame #6: 0x000111e4307a
> libOSGBase.2.0.0.dylib`OSG::FieldContainer::subReferenceUnrecorded(this=0x000113b20760)
> + 74 at OSGFieldContainer.cpp:470
>  frame #7: 0x0001011878f3
> libOSGContribCSM.2.0.0.dylib`OSG::UnrecordedRefCountPolicy::subRef(pObject=0x000113b20760)
> + 35 at OSGContainerRefCountPolicies.inl:112
>  frame #8: 0x0001014ce2b4
> libOSGContribCSM.2.0.0.dylib`OSG::RefCountPtr OSG::UnrecordedRefCountPolicy>::~RefCountPtr(this=0x00010174d340) +
> 20 at OSGRefCountPtr.inl:110
>  frame #9: 0x0001014ca755
> libOSGContribCSM.2.0.0.dylib`OSG::RefCountPtr OSG::UnrecordedRefCountPolicy>::~RefCountPtr(this=0x00010174d340) +
> 21 at OSGRefCountPtr.inl:109
>  frame #10: 0x7fff89d330ff
> libsystem_c.dylib`__cxa_finalize_ranges + 345
>  frame #11: 0x7fff89d33403 libsystem_c.dylib`exit + 55
>  frame #12: 0x7fff85a605b4 libdyld.dylib`start + 8
>  frame #13: 0x7fff85a605ad libdyld.dylib`start + 1
>
> The following is printed on the screen as the application starts up:
>
> ColorBuffer : 0x0001
> DepthBuffer : 0x0002
> GBuffer : 0x0004
> ShadowFactor: 0x0008
> Unknow container type DrawManager
> WARNING: -> syntax error in Line 71, read '['
> Got 0x11633c080
> loading osg file
> Source/Contrib/ComplexSceneManager/data/system-native.osg ...
> WARNING ADDING SECOND COMPLEX SCENE MANAGER, WILL SELF DESTRUCT IN 45
> SECONDSUnknow container type DrawManager
> WARNING: -> syntax error in Line 71, read '['
> loading data Examples/CSM/Models/tie.wrl ...
> WARNING: ComplexSceneManager: no mainloop exiting
> FieldConnectorFactoryBase::terminate
> WARNING: FieldContainerFactoryBase::terminate: Entry [752] is not NULL
> ([0x116560fb0]).
> WARNING:   [0] [0x116560ed0] [FileContextAttachment] [1 0]
> WARNING: FieldContainerFactoryBase::terminate: Entry [751] is not NULL
> ([0x116560e80]).
> WARNING:   [0] [0x116560dd0] [State] [1 0]
> [snip]
> WARNING:   [0] [0x113c2c760] [Node] [1 0]
> WARNING: FieldContainerFactoryBase::terminate: Entry [422] is not NULL
> ([0x113b208a0]).
> WARNING:   [0] [0x113b20760] [ComplexSceneManager] [1 0]
> WARNING: FieldContainerFactoryBase::terminate: Entry [331] is not NULL
> ([0x116553a60]).
> WARNING:   [0] [0x116553850] [VRMLGenericAtt] [37 0]
> ComplexSceneManager: no mainloop exiting
>
> Any ideas what is happening and what I can do to fix the crash?
> Thanks in advance.
>
> Regards,
> Venkat
>
>
>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>
>
>
> ___
> Opensg-users mailing list
> Opensg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opensg-us

[Opensg-users] appCSM Crash on Mac OS X

2016-05-09 Thread Venkat B
Good day,

Mac OS X El Capitan, OpenSG git latest, Xcode 7.2

I am trying to run the CSM sample app and I get a crash on startup with the
following backtrace:
(lldb) bt
* thread #1: tid = 0x1bc2361, 0x000111ea6e3c
libOSGBase.2.0.0.dylib`OSG::PThreadBase::getCurrentChangeList() + 28 at
OSGThread.cpp:291, queue = 'com.apple.main-thread', stop reason =
EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x000111ea6e3c
libOSGBase.2.0.0.dylib`OSG::PThreadBase::getCurrentChangeList() + 28 at
OSGThread.cpp:291
frame #1: 0x000111da0969
libOSGBase.2.0.0.dylib`OSG::Thread::getCurrentChangeList() + 9 at
OSGThread.inl:303
frame #2: 0x000111e42929
libOSGBase.2.0.0.dylib`OSG::FieldContainer::registerChangedContainer(this=0x000113b20760)
+ 313 at OSGFieldContainer.cpp:292
frame #3: 0x0001014db13f libOSGContribCSM.2.0.0.dylib`void
OSG::FieldContainer::editMField >(this=0x000113b20760, whichField=4,
oField=0x000113b207b8) + 63 at OSGFieldContainer.inl:391
frame #4: 0x0001014d94f0
libOSGContribCSM.2.0.0.dylib`OSG::ComplexSceneManagerBase::clearGlobals(this=0x000113b20760)
+ 48 at OSGComplexSceneManagerBase.cpp:704
frame #5: 0x0001014daebb
libOSGContribCSM.2.0.0.dylib`OSG::ComplexSceneManagerBase::resolveLinks(this=0x000113b20760)
+ 43 at OSGComplexSceneManagerBase.cpp:1403
frame #6: 0x000111e4307a
libOSGBase.2.0.0.dylib`OSG::FieldContainer::subReferenceUnrecorded(this=0x000113b20760)
+ 74 at OSGFieldContainer.cpp:470
frame #7: 0x0001011878f3
libOSGContribCSM.2.0.0.dylib`OSG::UnrecordedRefCountPolicy::subRef(pObject=0x000113b20760)
+ 35 at OSGContainerRefCountPolicies.inl:112
frame #8: 0x0001014ce2b4
libOSGContribCSM.2.0.0.dylib`OSG::RefCountPtr::~RefCountPtr(this=0x00010174d340) + 20
at OSGRefCountPtr.inl:110
frame #9: 0x0001014ca755
libOSGContribCSM.2.0.0.dylib`OSG::RefCountPtr::~RefCountPtr(this=0x00010174d340) + 21
at OSGRefCountPtr.inl:109
frame #10: 0x7fff89d330ff libsystem_c.dylib`__cxa_finalize_ranges +
345
frame #11: 0x7fff89d33403 libsystem_c.dylib`exit + 55
frame #12: 0x7fff85a605b4 libdyld.dylib`start + 8
frame #13: 0x7fff85a605ad libdyld.dylib`start + 1

The following is printed on the screen as the application starts up:

ColorBuffer : 0x0001
DepthBuffer : 0x0002
GBuffer : 0x0004
ShadowFactor: 0x0008
Unknow container type DrawManager
WARNING: -> syntax error in Line 71, read '['
Got 0x11633c080
loading osg file Source/Contrib/ComplexSceneManager/data/system-native.osg
...
WARNING ADDING SECOND COMPLEX SCENE MANAGER, WILL SELF DESTRUCT IN 45
SECONDSUnknow container type DrawManager
WARNING: -> syntax error in Line 71, read '['
loading data Examples/CSM/Models/tie.wrl ...
WARNING: ComplexSceneManager: no mainloop exiting
FieldConnectorFactoryBase::terminate
WARNING: FieldContainerFactoryBase::terminate: Entry [752] is not NULL
([0x116560fb0]).
WARNING:   [0] [0x116560ed0] [FileContextAttachment] [1 0]
WARNING: FieldContainerFactoryBase::terminate: Entry [751] is not NULL
([0x116560e80]).
WARNING:   [0] [0x116560dd0] [State] [1 0]
[snip]
WARNING:   [0] [0x113c2c760] [Node] [1 0]
WARNING: FieldContainerFactoryBase::terminate: Entry [422] is not NULL
([0x113b208a0]).
WARNING:   [0] [0x113b20760] [ComplexSceneManager] [1 0]
WARNING: FieldContainerFactoryBase::terminate: Entry [331] is not NULL
([0x116553a60]).
WARNING:   [0] [0x116553850] [VRMLGenericAtt] [37 0]
ComplexSceneManager: no mainloop exiting

Any ideas what is happening and what I can do to fix the crash?
Thanks in advance.

Regards,
Venkat
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users