[osg-users] linking problem: GraphicsWindowQt in header file

2013-02-28 Thread Gianni Ambrosio
Hi All, I derive from osgQt::GLWidget so I need to include GraphicsWindowQt. That causes a linking error since I also implemented a MessageBox class (in a proper namespace). Basically the problem is that Win32 defines MessageBox to be a macro that expands to either MessageBoxA or MessageBoxW

Re: [osg-users] linking problem: GraphicsWindowQt in header file

2013-02-28 Thread Robert Osfield
HI Gianni, I've just done a quick search of the OSG headers and the only #include windows.h is found in include/osgViewer/api/Win32/GraphicsWindowWin32 which only the implementation of src/osgViewer includes so shouldn't effect you unless you are explicitly including it. So... I think you'll

Re: [osg-users] linking problem: GraphicsWindowQt in header file

2013-02-28 Thread Gianni Ambrosio
Hi Robert, thank you for the fast reply. In fact, even if the include of windows.h is in GraphicsHandleWin32, the dependency chain seems stopping in: \include\osgViewer\api\Win32\GraphicsWindowWin32 and \include\osgViewer\api\Win32\PixelBufferWin32 Regards, Gianni -- Read

Re: [osg-users] osgOcean_River

2013-02-28 Thread Chris Hanson
I have it: http://alphapixel.com/sites/default/files/download/osgRiver.7z On Wed, Feb 27, 2013 at 11:56 PM, 翟小明 zhxm...@gmail.com wrote: Hi: everyone!Who have osgOcean_Rivers code? If you are convenient, please send me one copy.thank you!

[osg-users] OSG Render Thread in Qt: Access to scene data from main app thread

2013-02-28 Thread Aitor Ardanza
Hi, Taking this code: https://github.com/xarray/osgRecipes/blob/master/cookbook/chapter9/ch09_02/osg_qthread.cpp I do not know how can I modify, add and remove objects in the scene data from the main app thread. Any suggestion? Thank you! Cheers, Aitor -- Read this topic

[osg-users] [vpb] Link error

2013-02-28 Thread Tonino Tarsi
Hi, I'm trying to compile VTB ( 0.9.12 ) with Visual Studio 2010. Cmake and compilation went ok but I have this error Errore 1 error LNK2005: public: void __thiscall std::basic_ofstreamchar,struct std::char_traitschar ::`vbase destructor'(void)

Re: [osg-users] [vpb] Link error

2013-02-28 Thread Chris Hanson
I think this usually comes form mixing debug and release binaries, if I recall. On Thu, Feb 28, 2013 at 9:48 AM, Tonino Tarsi tony.ta...@gmail.com wrote: Hi, I'm trying to compile VTB ( 0.9.12 ) with Visual Studio 2010. Cmake and compilation went ok but I have this error Errore 1

Re: [osg-users] [vpb] Link error

2013-02-28 Thread Sebastian Messerschmidt
Hi Tonino, This is bug in Visual Studio. To get VPB linked (and possibly other tools) add /FORCE:Multiple to your linker options. This problem is annoying me too, but this seems mainly related to the OsgDB custom stream. cheers Sebastian Hi, I'm trying to compile VTB ( 0.9.12 ) with

Re: [osg-users] OSG Render Thread in Qt: Access to scene data from main app thread

2013-02-28 Thread jamie robertson
Is the following an option? Code: viewer-stopThreading(); *add / remove objects here viewer-startThreading(); jamie -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52908#52908 ___ osg-users

Re: [osg-users] OSG Render Thread in Qt: Access to scene data from main app thread

2013-02-28 Thread Robert Osfield
On 28 February 2013 17:19, jamie robertson jamieroberts...@hotmail.com wrote: Is the following an option? Code: viewer-stopThreading(); *add / remove objects here viewer-startThreading(); Start and stopping viewer threads is very expensive and should only be done very occasionally such as

[osg-users] Alembic Plugin

2013-02-28 Thread Randall Hand
Has anyone worked on getting an Alembic plugin for OpenSceneGraph? I hear from multiple sources that Alembic is replacing FBX as a common interchange format, and it's all based on HDF5. -- Randall Hand GPG Key: 4096R/F8CEF2FC http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBD73D58EF8CEF2FC

Re: [osg-users] Building OSG with FFMPEG

2013-02-28 Thread jason massey
finally have osgMovie.exe working with ffmpeg with sound. downloaded SDL-1.2.14.zip not sure exactly where i got it from i think it was here. http://www.libsdl.org/download-1.2.php but on that site i only see 1.2.15. I had to regenerate the vs2008 project files again using cmake and point the

Re: [osg-users] osgOcean_River

2013-02-28 Thread rill Mer
thank you! 2013/2/28 Chris Hanson xe...@alphapixel.com I have it: http://alphapixel.com/sites/default/files/download/osgRiver.7z On Wed, Feb 27, 2013 at 11:56 PM, 翟小明 zhxm...@gmail.com wrote: Hi: everyone!Who have osgOcean_Rivers code? If you are convenient, please send me one