Re: [osg-users] [ANN] OpenMW: Announcing switch to OSG

2015-03-01 Thread Jacob Moen
Looking forward to seeing your progress :)

OpenMW was the coolest project created with Ogre in my opinion, and could well 
be the coolest created with OSG as well.
It definitely sounds like it is a better match for your project than Ogre was, 
even the new version 2.

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





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


Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Trajce Nikolov NICK
Thanks Sergey. I found that too.

The problem was that the a core lib was keeping a ref_ptr of an Object
allocated by a plugin from a dll. Then on clean I got this problem. I
solved it by changing the ref_ptr to observer_ptr in the core lib. So I am
good now. But BIG thanks for helping me. Ulrich, thanks too.

Nick

p.s. I was Windows programmer for a decade and switched to Linux recently.
What a difference :-). Very good dev experience on Linux

On Sun, Mar 1, 2015 at 10:00 PM, Sergey Kurdakov sergey.fo...@gmail.com
wrote:

 Hi Nick,

 after looking  some more I found that newer versions of Mingw switch to
 dynamic linking of libstd++ by default. so libstdc++-6.dll is a right lib.

 but as you have the same problems then I have no answer.

 Regards
 Sergey

 On Sun, Mar 1, 2015 at 5:16 PM, Trajce Nikolov NICK 
 trajce.nikolov.n...@gmail.com wrote:

 Hi Sergey,

 on my system with the latest from the Qt bundle I don't have the
 libstdc++_s ... only libstdc++.a and libstdc++-6.dll . And I added
 -lstdc++ and still getting the same issues. Any further hints?

 Thanks a lot

 Nick

 On Sun, Mar 1, 2015 at 1:07 PM, Trajce Nikolov NICK 
 trajce.nikolov.n...@gmail.com wrote:

 Thanks Ulrich. That is what is going on

 Sergey, where this flags go in the .pro file, in* QMAKE_CXXFLAGS* or
 *LIBS* ?

 Thanks a bunch

 Nick

 On Sun, Mar 1, 2015 at 12:49 PM, Sergey Kurdakov sergey.fo...@gmail.com
  wrote:

 Hi

 To link   against shared libgcc, add -shared-libgcc
 to link  against shared libstdc++ add -lstdc++_s

 Regards
 Sergey


 On Sun, Mar 1, 2015 at 1:58 PM, Ulrich Hertlein u.hertl...@sandbox.de
 wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Hi Nick,

 On 28/02/2015 14:46, Trajce Nikolov NICK wrote:
  I am facing a problem with memory clean-up when mixing the place of
 allocation across
  dlls and the executable. Let say I have main executable that loads
 dlls (plugins) in
  which I allocate memory using referenced pointers. On exit, those
 pointers that were
  allocated in one of the dlls got stucked in ... If I clean these
 pointers from the
  originated dll, it works ok, otherwise not.
 
  Any clue?

 You end up with different instances of the runtime library, each with
 its own heap
 management.  You allocate the object on the heap of one DLL and free
 it onto the heap of
 the other - bang.

 Sorry, I don't know what the corresponding flag might be on mingw.

 Cheers,
 /ulrich
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQEcBAEBCAAGBQJU8vDIAAoJEP8WARS52jMYq6gH/Axcl3evhaF8tdjUePeHb707
 Et4rociiWaZdVu2Cq3x3TWr6MvOqqdcJMka1h7z0Nyy43FI0HI2s63NdPiXH5LcS
 BYC8j1w8BTzOisOUYyQJwGaqt4856ne2tHAjAU47Qp5bAsvbx7ZTZa0VU2ncLmJt
 A5P2TOtDRGBjtxoQc4Kmx33AWHFzX3iT+yaN5v6EUTVO3MReQTqWCXdJWr+/GC/0
 DMWmO/ZhGLis2NONoDGeNtZtgABPhg91Z+tZt0jYyzEkJ9eC4WN+F7x++0NPfRaf
 BBAzFN8Ch9YA4mcMjQF2TkqEdMcBHnmUb49ObUbU6fHd9Ce946dwfrB1gtlne4M=
 =Q7H0
 -END PGP SIGNATURE-
 ___
 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




 --
 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] writeNodeFile question

2015-03-01 Thread Clement.Chu
Hi,

   I have a question about using writeNodeFile to write volume image into file. 
 Currently, my volume image is reading from external file.  I would like to 
write whole osg scene data into file.  Then I can use osgviewer or other viewer 
to load the file.  My question is the output file does not contain any image 
data.  Anyone know how to do?  Thanks.


Regards,
Clement



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


Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Ulrich Hertlein
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi Nick,

On 28/02/2015 14:46, Trajce Nikolov NICK wrote:
 I am facing a problem with memory clean-up when mixing the place of 
 allocation across
 dlls and the executable. Let say I have main executable that loads dlls 
 (plugins) in
 which I allocate memory using referenced pointers. On exit, those pointers 
 that were
 allocated in one of the dlls got stucked in ... If I clean these pointers 
 from the
 originated dll, it works ok, otherwise not.
 
 Any clue?

You end up with different instances of the runtime library, each with its own 
heap
management.  You allocate the object on the heap of one DLL and free it onto 
the heap of
the other - bang.

Sorry, I don't know what the corresponding flag might be on mingw.

Cheers,
/ulrich
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBCAAGBQJU8vDIAAoJEP8WARS52jMYq6gH/Axcl3evhaF8tdjUePeHb707
Et4rociiWaZdVu2Cq3x3TWr6MvOqqdcJMka1h7z0Nyy43FI0HI2s63NdPiXH5LcS
BYC8j1w8BTzOisOUYyQJwGaqt4856ne2tHAjAU47Qp5bAsvbx7ZTZa0VU2ncLmJt
A5P2TOtDRGBjtxoQc4Kmx33AWHFzX3iT+yaN5v6EUTVO3MReQTqWCXdJWr+/GC/0
DMWmO/ZhGLis2NONoDGeNtZtgABPhg91Z+tZt0jYyzEkJ9eC4WN+F7x++0NPfRaf
BBAzFN8Ch9YA4mcMjQF2TkqEdMcBHnmUb49ObUbU6fHd9Ce946dwfrB1gtlne4M=
=Q7H0
-END PGP SIGNATURE-
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Trajce Nikolov NICK
Thanks Ulrich. That is what is going on

Sergey, where this flags go in the .pro file, in* QMAKE_CXXFLAGS* or *LIBS*
?

Thanks a bunch

Nick

On Sun, Mar 1, 2015 at 12:49 PM, Sergey Kurdakov sergey.fo...@gmail.com
wrote:

 Hi

 To link   against shared libgcc, add -shared-libgcc
 to link  against shared libstdc++ add -lstdc++_s

 Regards
 Sergey


 On Sun, Mar 1, 2015 at 1:58 PM, Ulrich Hertlein u.hertl...@sandbox.de
 wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Hi Nick,

 On 28/02/2015 14:46, Trajce Nikolov NICK wrote:
  I am facing a problem with memory clean-up when mixing the place of
 allocation across
  dlls and the executable. Let say I have main executable that loads dlls
 (plugins) in
  which I allocate memory using referenced pointers. On exit, those
 pointers that were
  allocated in one of the dlls got stucked in ... If I clean these
 pointers from the
  originated dll, it works ok, otherwise not.
 
  Any clue?

 You end up with different instances of the runtime library, each with its
 own heap
 management.  You allocate the object on the heap of one DLL and free it
 onto the heap of
 the other - bang.

 Sorry, I don't know what the corresponding flag might be on mingw.

 Cheers,
 /ulrich
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQEcBAEBCAAGBQJU8vDIAAoJEP8WARS52jMYq6gH/Axcl3evhaF8tdjUePeHb707
 Et4rociiWaZdVu2Cq3x3TWr6MvOqqdcJMka1h7z0Nyy43FI0HI2s63NdPiXH5LcS
 BYC8j1w8BTzOisOUYyQJwGaqt4856ne2tHAjAU47Qp5bAsvbx7ZTZa0VU2ncLmJt
 A5P2TOtDRGBjtxoQc4Kmx33AWHFzX3iT+yaN5v6EUTVO3MReQTqWCXdJWr+/GC/0
 DMWmO/ZhGLis2NONoDGeNtZtgABPhg91Z+tZt0jYyzEkJ9eC4WN+F7x++0NPfRaf
 BBAzFN8Ch9YA4mcMjQF2TkqEdMcBHnmUb49ObUbU6fHd9Ce946dwfrB1gtlne4M=
 =Q7H0
 -END PGP SIGNATURE-
 ___
 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


Re: [osg-users] Custom CompositeViewer Events

2015-03-01 Thread Robert Osfield
Hi John,

To add custom event handling there isn't normally a need to subclass from
CompositeViewer and Geode.

In snv/trunk and the OSG-3.3.x dev series there is now an osgGA::Event base
class that you can subclass from.  You can add your own events then inject
them in the the View's EventQueue, these events will then be passed on to
the EventHandlers attached to the View(er) and Event callbacks placed in
the scene graph.  In the EventHandler/Calback you get the pointer to the
Event base class and then cast it to your custom type.

In OSG-3.2 and before you can subclass from osgGA::GUIEventAdapter.  It's
not quite as clean as the new osgGA::Event but should work just fine.

Robert.

On 28 February 2015 at 17:09, John Farrier john.farr...@gmail.com wrote:

 Hi,

 I have a program which is using a custom viewer derived from
 osgViewer::View.  In this custom view's scene may be some custom types
 derived from osg::Geode.  I'll call these MyView and MyGeode for the sake
 of the post.  MyView's are put inside a osgViewer::CompositeViewer.  All
 this works great.  Now, I want to send custom events to MyView and MyGeode.

 My original hope was that I could just register a handler on MyView and
 MyGeode and do something like compositeViewer-accept(new MyEvent), but
 it doesn't seem that easy.

 I ended up creating a MyCompositeViewer that has an accept function on
 it that takes MyOsgGaEventVisitor and then create a MyGUIEventHandler which
 attempts to dynamic_cast osgGA::GUIEventAdapter to MyEventAdapter.
 MyGUIEventHandler is created with a pointer to its owning MyView and then
 can make calls into MyView based on the event.  I haven't started working
 on getting the event into MyView's scene and onto MyGeode's yet because
 this design is challenging my sanity.

 This approach works, but seems like a mess.  Before I get too far down
 this rabbit hole, what is the RIGHT way to get a custom event sent from a
 top-level CompositeViewer to its subordinate views and then onto the view's
 scene nodes?  The examples in OSG seem to address parts of this problem,
 but I can't see a solution to the entire scope of the problem.  Another way
 to phrase the question might be:

 How do I create a custom OSG-wide event that can be responded to by all
 osgViewer::View's and osg::Geode's alike?

 Thank you!

 Cheers,
 John

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





 ___
 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] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Sergey Kurdakov
Hi

To link   against shared libgcc, add -shared-libgcc
to link  against shared libstdc++ add -lstdc++_s

Regards
Sergey


On Sun, Mar 1, 2015 at 1:58 PM, Ulrich Hertlein u.hertl...@sandbox.de
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Hi Nick,

 On 28/02/2015 14:46, Trajce Nikolov NICK wrote:
  I am facing a problem with memory clean-up when mixing the place of
 allocation across
  dlls and the executable. Let say I have main executable that loads dlls
 (plugins) in
  which I allocate memory using referenced pointers. On exit, those
 pointers that were
  allocated in one of the dlls got stucked in ... If I clean these
 pointers from the
  originated dll, it works ok, otherwise not.
 
  Any clue?

 You end up with different instances of the runtime library, each with its
 own heap
 management.  You allocate the object on the heap of one DLL and free it
 onto the heap of
 the other - bang.

 Sorry, I don't know what the corresponding flag might be on mingw.

 Cheers,
 /ulrich
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQEcBAEBCAAGBQJU8vDIAAoJEP8WARS52jMYq6gH/Axcl3evhaF8tdjUePeHb707
 Et4rociiWaZdVu2Cq3x3TWr6MvOqqdcJMka1h7z0Nyy43FI0HI2s63NdPiXH5LcS
 BYC8j1w8BTzOisOUYyQJwGaqt4856ne2tHAjAU47Qp5bAsvbx7ZTZa0VU2ncLmJt
 A5P2TOtDRGBjtxoQc4Kmx33AWHFzX3iT+yaN5v6EUTVO3MReQTqWCXdJWr+/GC/0
 DMWmO/ZhGLis2NONoDGeNtZtgABPhg91Z+tZt0jYyzEkJ9eC4WN+F7x++0NPfRaf
 BBAzFN8Ch9YA4mcMjQF2TkqEdMcBHnmUb49ObUbU6fHd9Ce946dwfrB1gtlne4M=
 =Q7H0
 -END PGP SIGNATURE-
 ___
 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] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Trajce Nikolov NICK
Hi Sergey,

on my system with the latest from the Qt bundle I don't have the
libstdc++_s ... only libstdc++.a and libstdc++-6.dll . And I added
-lstdc++ and still getting the same issues. Any further hints?

Thanks a lot

Nick

On Sun, Mar 1, 2015 at 1:07 PM, Trajce Nikolov NICK 
trajce.nikolov.n...@gmail.com wrote:

 Thanks Ulrich. That is what is going on

 Sergey, where this flags go in the .pro file, in* QMAKE_CXXFLAGS* or
 *LIBS* ?

 Thanks a bunch

 Nick

 On Sun, Mar 1, 2015 at 12:49 PM, Sergey Kurdakov sergey.fo...@gmail.com
 wrote:

 Hi

 To link   against shared libgcc, add -shared-libgcc
 to link  against shared libstdc++ add -lstdc++_s

 Regards
 Sergey


 On Sun, Mar 1, 2015 at 1:58 PM, Ulrich Hertlein u.hertl...@sandbox.de
 wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Hi Nick,

 On 28/02/2015 14:46, Trajce Nikolov NICK wrote:
  I am facing a problem with memory clean-up when mixing the place of
 allocation across
  dlls and the executable. Let say I have main executable that loads
 dlls (plugins) in
  which I allocate memory using referenced pointers. On exit, those
 pointers that were
  allocated in one of the dlls got stucked in ... If I clean these
 pointers from the
  originated dll, it works ok, otherwise not.
 
  Any clue?

 You end up with different instances of the runtime library, each with
 its own heap
 management.  You allocate the object on the heap of one DLL and free it
 onto the heap of
 the other - bang.

 Sorry, I don't know what the corresponding flag might be on mingw.

 Cheers,
 /ulrich
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQEcBAEBCAAGBQJU8vDIAAoJEP8WARS52jMYq6gH/Axcl3evhaF8tdjUePeHb707
 Et4rociiWaZdVu2Cq3x3TWr6MvOqqdcJMka1h7z0Nyy43FI0HI2s63NdPiXH5LcS
 BYC8j1w8BTzOisOUYyQJwGaqt4856ne2tHAjAU47Qp5bAsvbx7ZTZa0VU2ncLmJt
 A5P2TOtDRGBjtxoQc4Kmx33AWHFzX3iT+yaN5v6EUTVO3MReQTqWCXdJWr+/GC/0
 DMWmO/ZhGLis2NONoDGeNtZtgABPhg91Z+tZt0jYyzEkJ9eC4WN+F7x++0NPfRaf
 BBAzFN8Ch9YA4mcMjQF2TkqEdMcBHnmUb49ObUbU6fHd9Ce946dwfrB1gtlne4M=
 =Q7H0
 -END PGP SIGNATURE-
 ___
 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




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


[osg-users] Find out if a node is dirty

2015-03-01 Thread Stefan Zellmann
Hi,

I wonder if there is a way to find out if a scene graph node was updated 
recently. Specifically, what I'd like to know is if geometry was updated, or if 
a transform node has changed.

I am using the scene graph from within an application plugin, i.e. I cannot set 
things like callbacks or attach user data, because I may in general not assume 
that the creator of the scene graph hasn't already done so. My plugin is merely 
a consumer of the scene graph.

I've seen the dirtyDisplayList functionality, which however seems not to store 
any information useful to me.

Any help is appreciated!

Thank you!

Cheers,
Stefan

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





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


Re: [osg-users] Custom CompositeViewer Events

2015-03-01 Thread John Farrier

robertosfield wrote:
 Hi John,
 To add custom event handling there isn't normally a need to subclass from 
 CompositeViewer and Geode.   
 


Robert, thanks for the tips.  I've changed my solution as you have you 
suggested.  However, the reason to subclass from Composite Viewer is because I 
see no other way to send an event to all views contained within the composite 
viewer otherwise.  (I could get a list externally and send events, but that is 
a chunk of code that would need repeated every place a custom event needs 
sent.)  Is there a way to pass an event into the composite viewer that I've 
overlooked?

Thanks.

- John

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





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


[osg-users] Flipping images of an GIF osg::ImageStream

2015-03-01 Thread Paul
Using the ReaderWriterGIF.cpp plugin, I'm able to load and play animated GIF 
images. However, I need to flip the images vertically. I can only flip the 
first frame.



Code:
osg::ref_ptrosg::Image img = osgDB::readImageFile(image.gif);
osg::ImageStream* imagestream = dynamic_castosg::ImageStream*(img.get());

imagestream-flipVertical(); //ONLY FLIPS THE FIRST FRAME
imagestream-play();



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





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


[osg-users] Keyboard Manipulator and TrackballManipulator not playing nicely with each other.

2015-03-01 Thread Aviral Goel
Hi,

I am trying to implement a KyeboardManipulator for translating, scaling and 
rotating 3D models via keyboard, similar to the TrackballManipulator. I am 
surprised that osg does not have this already. 

I wrote a keyboard manipulator class to at least zoom in and zoom out and 
translate the model. However I am having a hard time getting it to work with 
the Trackball Manipulator. Once I update the view matrix via keyboard, the 
TrackballManipulator does not resume from there. Obviously, unless told, it has 
no way of figuring this out by itself. So I tried to find some function which 
will cause the TrackballManipulator to update its state based upon the current 
view matrix. But I couldn't find any function which does this. setByMatrix does 
not seem to work the way I expected. The TrackballManipulator goes bonkers once 
I update model via keyboard and use setByMatrix. It does not allow the model to 
be rotated properly afterwards. Somehow the rotation axis changes and a small 
mouse movement causes it to pan the model rather than rotate it.

Once I manipulate model via keyboard, what steps are needed for me to update 
the TrackballManipulator to continue from there instead of resetting the model 
position.?
... 

Thank you!

Cheers,
Aviral Goel

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





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


[osg-users] Compiling osgVRPN

2015-03-01 Thread João
I understand that osgVRPN isn't an officially managed project, but I don't know 
where else to ask this.
I'm currently trying to compile osgVRPN without success. CMake runs 
successfully, but I cannot build the project due to some files missing (namely 
libvrpn.a.lib). Does anyone know where I can get that file? 
   ___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Compiling osgVRPN

2015-03-01 Thread Alberto Luaces
João writes:

 I thought so too, considering I had to get a vrpn_Configure.h file
 from VRPN, but I cannot find that library after compiling VRPN.

Could it be a static/shared issue? osgVRPN seems to look for a static
version of the VRPN library (.a.lib).  Or maybe you can rename your
libvrpn.a file to that name.

-- 
Alberto

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


Re: [osg-users] Compiling osgVRPN

2015-03-01 Thread Alberto Luaces
João writes:

 I understand that osgVRPN isn't an officially managed project, but I
 don't know where else to ask this.

 I'm currently trying to compile osgVRPN without success. CMake runs
 successfully, but I cannot build the project due to some files missing
 (namely libvrpn.a.lib). Does anyone know where I can get that file?

That seems to be the VRPN library.  You might have to build it before
osgVRPN.

-- 
Alberto

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


Re: [osg-users] Compiling osgVRPN

2015-03-01 Thread João
I thought so too, considering I had to get a vrpn_Configure.h file from VRPN, 
but I cannot find that library after compiling VRPN.

 To: osg-users@lists.openscenegraph.org
 From: alua...@udc.es
 Date: Sun, 1 Mar 2015 18:43:43 +0100
 Subject: Re: [osg-users] Compiling osgVRPN
 
 João writes:
 
  I understand that osgVRPN isn't an officially managed project, but I
  don't know where else to ask this.
 
  I'm currently trying to compile osgVRPN without success. CMake runs
  successfully, but I cannot build the project due to some files missing
  (namely libvrpn.a.lib). Does anyone know where I can get that file?
 
 That seems to be the VRPN library.  You might have to build it before
 osgVRPN.
 
 -- 
 Alberto
 
 ___
 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] Parameter incompatabilities

2015-03-01 Thread Robert Osfield
Hi Hartwig,

On 1 March 2015 at 16:57, Hartwig Wiesmann hartwig.wiesm...@skywind.eu
wrote:

 Therefore, it is possible to change the parameter types in these cases?


That work break the API and backwards compatibility for everyone just to
fix some benign warnings on one particular platform with one particular set
of warning options enabled.  Often the types used match up with other bits
of API such as OpenGL, so you might fix one warning one place but then
introduce others elsewhere.

By all means enable extra warnings - the OSG already enabled many by
default, but it if you end you up with lots of stupid warnings about things
that aren't an issue at all you really do need to question the value of
those warnings.  Some warnings are trivial to fix others cause harm
elsewhere in the code and any code modification has the chance to introduce
new bugs - I know first hand, previous warning purges ended up introducing
subtle OSG bugs that weren't spotted right away and wasted lots of time
later when they were traced and fixed.

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


Re: [osg-users] referenced memory management across dlls/exe (Windows only)

2015-03-01 Thread Sergey Kurdakov
Hi Nick,

after looking  some more I found that newer versions of Mingw switch to
dynamic linking of libstd++ by default. so libstdc++-6.dll is a right lib.

but as you have the same problems then I have no answer.

Regards
Sergey

On Sun, Mar 1, 2015 at 5:16 PM, Trajce Nikolov NICK 
trajce.nikolov.n...@gmail.com wrote:

 Hi Sergey,

 on my system with the latest from the Qt bundle I don't have the
 libstdc++_s ... only libstdc++.a and libstdc++-6.dll . And I added
 -lstdc++ and still getting the same issues. Any further hints?

 Thanks a lot

 Nick

 On Sun, Mar 1, 2015 at 1:07 PM, Trajce Nikolov NICK 
 trajce.nikolov.n...@gmail.com wrote:

 Thanks Ulrich. That is what is going on

 Sergey, where this flags go in the .pro file, in* QMAKE_CXXFLAGS* or
 *LIBS* ?

 Thanks a bunch

 Nick

 On Sun, Mar 1, 2015 at 12:49 PM, Sergey Kurdakov sergey.fo...@gmail.com
 wrote:

 Hi

 To link   against shared libgcc, add -shared-libgcc
 to link  against shared libstdc++ add -lstdc++_s

 Regards
 Sergey


 On Sun, Mar 1, 2015 at 1:58 PM, Ulrich Hertlein u.hertl...@sandbox.de
 wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Hi Nick,

 On 28/02/2015 14:46, Trajce Nikolov NICK wrote:
  I am facing a problem with memory clean-up when mixing the place of
 allocation across
  dlls and the executable. Let say I have main executable that loads
 dlls (plugins) in
  which I allocate memory using referenced pointers. On exit, those
 pointers that were
  allocated in one of the dlls got stucked in ... If I clean these
 pointers from the
  originated dll, it works ok, otherwise not.
 
  Any clue?

 You end up with different instances of the runtime library, each with
 its own heap
 management.  You allocate the object on the heap of one DLL and free it
 onto the heap of
 the other - bang.

 Sorry, I don't know what the corresponding flag might be on mingw.

 Cheers,
 /ulrich
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQEcBAEBCAAGBQJU8vDIAAoJEP8WARS52jMYq6gH/Axcl3evhaF8tdjUePeHb707
 Et4rociiWaZdVu2Cq3x3TWr6MvOqqdcJMka1h7z0Nyy43FI0HI2s63NdPiXH5LcS
 BYC8j1w8BTzOisOUYyQJwGaqt4856ne2tHAjAU47Qp5bAsvbx7ZTZa0VU2ncLmJt
 A5P2TOtDRGBjtxoQc4Kmx33AWHFzX3iT+yaN5v6EUTVO3MReQTqWCXdJWr+/GC/0
 DMWmO/ZhGLis2NONoDGeNtZtgABPhg91Z+tZt0jYyzEkJ9eC4WN+F7x++0NPfRaf
 BBAzFN8Ch9YA4mcMjQF2TkqEdMcBHnmUb49ObUbU6fHd9Ce946dwfrB1gtlne4M=
 =Q7H0
 -END PGP SIGNATURE-
 ___
 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




 --
 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