Re: [osg-users] Matrox M9188 OpenGL

2013-04-26 Thread Christian Schulte
Hi Chris, I agree with Sergey, I'm myself using for research helicopter flight simulation a ATI Eyefinity 6x with VSync activated in order to generate 6 views in a composite viewer each for one video projector without any problems. The card we are using is

[osg-users] singleton instane

2013-04-26 Thread Sajjadul Islam
Hello forum, I have a class declaration and i want to create a singleton instance to it. Is there any utility class inside OSG that enables something like this? Thank you! Cheers, Sajjadul -- Read this topic online here:

Re: [osg-users] singleton instane

2013-04-26 Thread Robert Osfield
Hi Sajjadul, There isn't any general signleton template or base class in the OSG, but it's doesn't take much code to implement so when we use singleton's they tend to get implemented locally in the code via a static access method. Getting singleton's to work cross platform with thread safety on

Re: [osg-users] singleton instane

2013-04-26 Thread David Callu
Hi Sajjadul, There are nothing in OSG to do this, but make a class a singleton is really straightforward. - make constructor protected or private, - add a static getInstance function MyClass getInstance() { static MyClass * myClass = new MyClass(); return *myClass; } then use it in

Re: [osg-users] singleton instane

2013-04-26 Thread David Callu
oups beter like this, or with any other smart pointer MyClass getInstance() { static osg::ref_ptrMyClass myClass( new MyClass() ); return *myClass; } 2013/4/26 David Callu led...@gmail.com Hi Sajjadul, There are nothing in OSG to do this, but make a class a singleton is really

Re: [osg-users] singleton instane

2013-04-26 Thread Jan Ciger
On Fri, Apr 26, 2013 at 11:18 AM, David Callu led...@gmail.com wrote: oups beter like this, or with any other smart pointer MyClass getInstance() { static osg::ref_ptrMyClass myClass( new MyClass() ); return *myClass; } Do not forget to make all constructors private, though,

[osg-users] OSG server down for maintenance

2013-04-26 Thread Jordi Torres
Hi all, We will try to complete the migration to the new joomla site today, so you may observe some disfunctions. Hopefully it won't take a long time. Sorry for the inconvenience. -- Jordi Torres ___ osg-users mailing list

[osg-users] Important: New SVN repository URL

2013-04-26 Thread Jordi Torres
Hi osg-ers Due to the changes done in order to set the new Joomla site as the main OpenSceneGraph web, we have had to change the URL of the svn server. OpenScenenGraph sources are now athttp://svn.openscenegraph.org/osg/. To download the sources: svn checkout

Re: [osg-users] Order Independent Transparancy with Per-Pixel-Linked-Lists

2013-04-26 Thread Chris Hanson
This guy implemented it in OSG: http://de.slideshare.net/acbess/order-independent-transparency-presentation I contacted him, but he says the source was lost in a hard drive crash. I have his email address if you want to ask him questions. ___ osg-users

[osg-users] Problems with 3.1.5

2013-04-26 Thread Anders Backman
Hi all. I wanted to start using the latest dev build (3.1.5) with VisualStudio 2012. 64Bit. However, I immediately got a few problems: #1.WARNING: The warning: fstream(41): warning C4250: 'osgDB::fstream' : inherits

Re: [osg-users] singleton instane

2013-04-26 Thread Jan Ciger
On 04/26/2013 11:18 AM, David Callu wrote: oups beter like this, or with any other smart pointer MyClass getInstance() { static osg::ref_ptrMyClass myClass( new MyClass() ); return *myClass; } I wonder, why would you want a reference counting smart pointer for a singleton? There

[osg-users] LIBRARY_EXPORT

2013-04-26 Thread Sajjadul Islam
Hi forum, I see the the declaration of LIBRARY_EXPORT along with function and class declaration as the following form. Some explanation will be appreciated. Code: bool LIBRARY_EXPORT setupDevice(int device = 0); and Code: class LIBRARY_EXPORT Resource : public osg::Object {

Re: [osg-users] LIBRARY_EXPORT

2013-04-26 Thread Robert Osfield
Hi Sajjadul, This is simply a solution to VisualStudio's silly library/dll symbol rules that you have to jump through. These macro compile to nothing on all platforms except Windows so you can safely ignore them, they are simple glue to make things work under Windows. This approach is pretty

[osg-users] OSG Collada

2013-04-26 Thread Randall Hand
I'm having trouble with the OSG Collada plugins on Visual Studio. I tried downloading the recommended version from the website, but that now leads to a dead-end. I dug the the same Collada 2.2 download I use on Mac Linux, but I am completely unable to get CMake to recognize boost on windows, as

Re: [osg-users] singleton instane

2013-04-26 Thread David Callu
Hi Jan, This is not for reference counting but to not forget to delete the instance when program end. Regards David 2013/4/26 Jan Ciger jan.ci...@gmail.com On 04/26/2013 11:18 AM, David Callu wrote: oups beter like this, or with any other smart pointer MyClass getInstance() {

[osg-users] META_OBJECT

2013-04-26 Thread Sajjadul Islam
Hi forum, Is that mandatory to declare the META_OBJECT() for every class declaration that derives from osg::Object ? What is its purpose? How to decide the parameters inside it ? Is the osg reference site down ? trying to access the osg::Object reference Thank you! Regards Sajjadul