Re: [osg-users] Matrox M9188 OpenGL
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 an ATI Eyefinity 6 Radeon HD 5870 with 1GB GDDR5, but I've seen that you could have up to 2GB on the new version. Cheers, Christian Le 25/04/2013 20:13, Sergey Kurdakov a crit: Hi Chris, It is my understanding that AMD cards won't frame-lock without the S400 card you might be correct, but you mentioned, that rendering in not very demanding, thus setting VSync might be enough to soft-frame-lock on powerful card ( which should be oders of magnitude more powerful than old Matrox cards ) Regards Sergey ___ 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] singleton instane
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: http://forum.openscenegraph.org/viewtopic.php?p=53820#53820 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] singleton instane
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 initialization can be a bit tricky though so sometimes you have to jump through hoops to get it to work in all instances. Robert. On 26 April 2013 09:53, Sajjadul Islam dosto.wa...@gmail.com wrote: 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: http://forum.openscenegraph.org/viewtopic.php?p=53820#53820 ___ 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] singleton instane
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 your code MyClass::getInstance().doStuff(); alternatively, you can google 'boost+singleton' to see some examples of implementation HTH David 2013/4/26 Sajjadul Islam dosto.wa...@gmail.com 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: http://forum.openscenegraph.org/viewtopic.php?p=53820#53820 ___ 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] singleton instane
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 straightforward. - make constructor protected or private, - add a static getInstance function MyClass getInstance() { static MyClass * myClass = new MyClass(); return *myClass; } then use it in your code MyClass::getInstance().doStuff(); alternatively, you can google 'boost+singleton' to see some examples of implementation HTH David 2013/4/26 Sajjadul Islam dosto.wa...@gmail.com 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: http://forum.openscenegraph.org/viewtopic.php?p=53820#53820 ___ 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] singleton instane
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, otherwise you may get a surprise when someone tries to construct your object using new operator or define an STL vector of them ... Regards, Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OSG server down for maintenance
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@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Important: New SVN repository URL
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 http://svn.openscenegraph.org/osg/OpenSceneGraph/trunkOpenSceneGraph Probably you may want to relocate your sources instead of download and recompiling them. Just do a svn switch and it should work: svn switch --relocate http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk The same applies to the VirtualPlanetBuilder sources. The new repository is at http://svn.openscenegraph.org/VirtualPlanetBuilder/ svn checkout http://svn.openscenegraph.org/VirtualPlanetBuilder/trunk/VirtualPlanetBuilder And to the OpenScenenGraph-Data svn checkout http://svn.openscenegraph.org/osg/OpenSceneGraph-Data/trunk/ If you are in windows and using TortoiseSVN it has a relocate option to avoid downloading the sources again. Sorry for the inconvenience -- Jordi Torres ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Order Independent Transparancy with Per-Pixel-Linked-Lists
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 mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Problems with 3.1.5
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 'std::basic_ostream_Elem,_Traits::std::basic_ostream_Elem,_Traits::_Add_vtordisp2' via dominance From the class class OSGDB_EXPORT fstream : public std::fstream Is still very much present and give a lot of warnings all over the place. #2.WARNING: GL_PATCHES seems to be a new variable, which conflicts with the one in glew.h. warning C4005: 'GL_PATCHES' : macro redefinition gl\glew.h(4685) : see previous definition of 'GL_PATCHES' #3 ERROR: include\osg\uniform(454): error C2065: 'GL_DOUBLE_MAT2x3' : undeclared identifier include\osg\uniform(455): error C2065: 'GL_DOUBLE_MAT2x4' : undeclared identifier include\osg\uniform(456): error C2065: 'GL_DOUBLE_MAT3x2' : undeclared identifier include\osg\uniform(457): error C2065: 'GL_DOUBLE_MAT3x4' : undeclared identifier include\osg\uniform(458): error C2065: 'GL_DOUBLE_MAT4x2' : undeclared identifier include\osg\uniform(459): error C2065: 'GL_DOUBLE_MAT4x3' : undeclared identifier Indicating that glew.h and osg/gl2extensions are very incompatible from 3.1.5 and forward? glew.h is also a nasty one, because it want to be included BEFORE gl.h... More warnings: include\osgtext\font(244): warning C4100: 'descender' : unreferenced formal parameter include\osgtext\font(244): warning C4100: 'ascender' : unreferenced formal parameter /Anders -- __ Anders Backman, HPC2N 90187 UmeƄ University, Sweden and...@cs.umu.se http://www.hpc2n.umu.se Cell: +46-70-392 64 67 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] singleton instane
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 will be only a single instance, no matter what you do, so the smart pointer is useless. Regards, Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] LIBRARY_EXPORT
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 { } Thank you! Cheers, Sajjadul -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53832#53832 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] LIBRARY_EXPORT
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 standard in libraries. Robert. On 26 April 2013 21:29, Sajjadul Islam dosto.wa...@gmail.com wrote: 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 { } Thank you! Cheers, Sajjadul -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53832#53832 ___ 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] OSG Collada
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 well as getting lots of Cg header errors when using their provided solution file. Has anyone tested if the new Collada 2.4 works with the OSG Plugins? Can anyone provide a copy of the good-working version of Collada for me to build? -- Randall Hand www.yeraze.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] singleton instane
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() { static osg::ref_ptrMyClass myClass( new MyClass() ); return *myClass; } I wonder, why would you want a reference counting smart pointer for a singleton? There will be only a single instance, no matter what you do, so the smart pointer is useless. Regards, Jan __**_ osg-users mailing list osg-users@lists.**openscenegraph.org osg-users@lists.openscenegraph.org http://lists.openscenegraph.**org/listinfo.cgi/osg-users-** openscenegraph.orghttp://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] META_OBJECT
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 -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53836#53836 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org