Re: [osg-users] Texture cache question

2015-03-13 Thread Konstantin
Hi, Nick!

*osgconv* with  *--enable-object-cache *option can help too.


KOS


2015-03-11 17:32 GMT+04:00 Trajce Nikolov NICK 
trajce.nikolov.n...@gmail.com:

 Thanks Robert. Sebastian, yes, that is the thing I am after. Thanks a lot!

 Nick

 On Wed, Mar 11, 2015 at 9:49 AM, Robert Osfield robert.osfi...@gmail.com
 wrote:

 Hi Nick,

 The osgDB::SharedStateManager might well be what you are looking for.
 It's not something I wrote or have used so can't provide lots of details on
 how best to use it, but I can say it's role is for sharing state between an
 already loaded scene graph and new loaded scene graph.

 Sebastian's suggestion about the using the Object Cache feature of
 osgDB::Registry is useful too for sharing osg::Image, which will help the
 SharedStateManager spot places where osg::Texture can be shared when they
 use the same osg::Image.

 Robert.

 On 10 March 2015 at 16:24, Trajce Nikolov NICK 
 trajce.nikolov.n...@gmail.com wrote:

 Hi Community,

 what was the way to have textures cached and reused on load? any hint?

 Thanks a bunch!

 Nick

 --
 trajce nikolov nick

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 trajce nikolov nick

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] MorphGeometry problem in the 3.3.6 devel release

2015-03-13 Thread Konstantin
Hi, Robert!

In dynamic OSG-3.3.6.119 everything is good, but in static build it fails
because of:

*W/(18049): InputStream::readObject(): Unsupported associated class
osg::Callback*

I'll send *osgWrappers/serializers/osg/LibraryWrapper.cpp* to submissions
right now.

Thank you for fixing osgAnimation!


Konstantin Matveyev



2015-03-12 21:16 GMT+04:00 Robert Osfield robert.osfi...@gmail.com:

 Hi KOS,

 I have resolved the bug in serialization of MorphGeometry and RigGeometry
 by moving the respective UpdateVertex callbacks out of the respective class
 scopes and into the osgAnimation namespace, renaming them to
 MorphGeometryCallback and RigGeometryCallback, and have implemented them in
 the serializers.  With these changes I am now able to convert files like
 the morphing.osg to .osgt and be able to load and run animations correctly.

 These changes can't fix pre-existing broken .osgt files though, as they
 have the bug effectively built into them.  These broken files will have to
 be amended by hand, to remove the problem callback reference, or recreated
 from original .osg or .ive files.

 The fixes are now checked into svn/trunk.

 Robert.

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Fwd: Last update in the osgAnimation::Animation ONCE mode bug fix

2015-03-13 Thread Konstantin
Hi!

After Animation's update method *return false*,
AnimationManager will remove this animation from the list of playing
animations
and will not call Animation's update method.


No cpu overhead, i think :)

KOS


2015-03-03 16:18 GMT+04:00 Robert Osfield robert.osfi...@gmail.com:

 Hi Konstantin,

 Thanks for the full name.

 I haven't decided how best to tackle this submission yet.  As is it would
 cause a performance hit as Pjotr explained.  I'm open to suggestions of how
 best to resolve this issue whilst addressing the bug your change sought to
 address.

 Cheers
 Robert.



 On 28 February 2015 at 23:34, Matveyev Konstantin lalakos...@gmail.com
 wrote:

 Konstantin Matveyev

 On Nov 20, 2014, at 12:46 PM, Robert Osfield wrote:

 Hi KOS,

 I have just got to reviewing your proposed change to Animation.cpp.  What
 name would you like me to use when attributing this fix when I check it in?

 Cheers,
 Robert.

 On 27 August 2014 13:03, Konstantin lalakos...@gmail.com wrote:



 -- Forwarded message --
 From: Konstantin lalakos...@gmail.com
 Date: 2014-08-26 18:27 GMT+04:00
 Subject: Last update in the osgAnimation::Animation ONCE mode bug fix
 To: OpenSceneGraph Users osg-users@lists.openscenegraph.org,
 osg-submissi...@lists.openscenegraph.org


 Hello everybody!




 *osgAnimation/Animation.cpp**bool Animation::update (double time, int
 priority)*


 *OpenSceneGraph 3.2.1*:

 case ONCE:
 if (t  _originalDuration)
 return false;


 *Should be:*

 case ONCE:
 if (t  _originalDuration)
 {


 *for (ChannelList::const_iterator chan = _channels.begin();
  chan != _channels.end(); ++chan)
 (*chan)-update(_originalDuration, _weight, priority);*

 return false;
 }

 *maybe :)*

 KOS

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Fwd: Last update in the osgAnimation::Animation ONCE mode bug fix

2015-03-13 Thread Robert Osfield
Hi Konstantin,

On 13 March 2015 at 13:32, Konstantin lalakos...@gmail.com wrote:

 After Animation's update method *return false*,
 AnimationManager will remove this animation from the list of playing
 animations
 and will not call Animation's update method.


 No cpu overhead, i think :)


I need to test this out to check what happens right now and with your
patch, and whether there is a CPU overhead.

What is the easiest way to recreate the problem you've seen?  Modifying an
OSG example would probably be the most direct way.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org