Re: [osg-users] get OpenGL context

2011-01-12 Thread Patrice Defond
Hi, Thanks for you answer Robert. I have already include GLExtensions. I try to use GLX_NV_swap_group and for example, there is this function : Code: typedef Bool ( * JOINSWAPGROUPPROC) (Display* dpy, GLXDrawable drawable, GLuint group); I search to get the current Display*. Thank you!

Re: [osg-users] get OpenGL context

2011-01-12 Thread Patrice Defond
Thanks ! I 'm not sure i understand what do you mean for modify src/osgViewer/GraphicsWindowX11.cpp I have found an other solution with the function viewerbase::getWindows(Windows ). If i cast the GraphicsWindow into GraphicsWindowX11, i have acces to the function getDisplay() and

[osg-users] get OpenGL context

2011-01-11 Thread Patrice Defond
Hi, For use an OpenGL extension, i need some information about the video context. I search this : Display *dpy, int screen and GLXDrawable. OSG can give me this information ? Thank you! Cheers, Patrice -- Read this topic online here:

[osg-users] Image cache and manually release

2010-10-29 Thread Patrice Defond
Hi, I would like to release an image, but there is a cache whose keep my image in memory. Even if i put my ref_ptros::Image to NULL, the image is always in memory. Do you know how i can manually destruct my object but without desactivate Image Cache ? Thank you! Cheers, Patrice

Re: [osg-users] Image cache and manually release

2010-10-29 Thread Patrice Defond
Thank for your help Sukender. I can't use the methods removeExpiredObjectsInCache and clearObjectCache because the rest of my application need the cache. It is very specific for a module : it loads big images. So i test addEntryToObjectCache. - With NULL in object : OSG make an error (Error

Re: [osg-users] Image cache and manually release

2010-10-29 Thread Patrice Defond
Yep ! Your first solution works perfectly ! Thank a lot ! I find an other solution : when you read a file whith readImageFile(..), you specify a filename and you can give option. And there is an option to not use Image Cache. Thank you ! Patrice -- Read this topic online

[osg-users] [osgPlugins] ffmpeg synchronisation and frame dropping

2010-10-21 Thread Patrice Defond
Hello, I search to understand how the ffmpeg plugin works. I use a video without sound. If the thread is too fast for the video, there is a synchronisation before publish frame : FFmpegDecoderVideo apply a delay with an internal timer. But if the thread is late, is there frame dropping ? or

Re: [osg-users] [build] Errors in cstdio

2010-10-20 Thread Patrice Defond
OK ... sorry ! I have found my error. I use a memory manager in my project and it includes automatically std librairies. Cheers, Patrice -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32900#32900

[osg-users] [build] Errors in cstdio

2010-10-19 Thread Patrice Defond
Hi, I am trying to compile osg revision 11782 (version 2.9.9), with Visual C++. In the project Plugins 3DS, i have a lot of errors since : 1C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2143: syntax error : missing '{' before ':' I think it is because we

Re: [osg-users] [osgPlugins] use FFmpeg with Visual C++

2010-10-15 Thread Patrice Defond
Ok I have always problem to compile FFMpeg but it isn't the topic of this forum... I have found the release for Windows (with the link of Norman) and the plugin works perfectly ! Thanks for your help ! Cheers, Patrice -- Read this topic online here:

[osg-users] [osgPlugins] use FFmpeg with Visual C++

2010-10-14 Thread Patrice Defond
Hi, I search a plugin to play video with OSG. I'm working with visual C++. I would like to test FFmpeg but i don't find release for VC++. On Windows, FFMpeg compile only with MingGW. I'm not sure it'is compatible with VC++... ?! So, do you know where i can find directly FFMpeg librairie ? or