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!

Cheers,
Patrice

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





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


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 getWindow().
But i also need an integer for identify the screen ...
For example in this function (the second parameter) : 

Code:
Bool glXQueryFrameCountNV(Display *dpy, int screen, GLuint *count);


[/code]

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





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


[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:
http://forum.openscenegraph.org/viewtopic.php?p=35547#35547





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


[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

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





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


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 file does not contain an 
osg::Object)
- if i call the function with a timestamp to 0 or 0.001 ... but my object is 
not release. 


Do you have more ideas ?

Cheers,
Patrice

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





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


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 here:
http://forum.openscenegraph.org/viewtopic.php?p=33250#33250





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


[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 maybe, the plugin up 
the video framerate ... ?


Cheers,
Patrice

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





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


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 mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 used C code... but i don't know how i can compile 
correctly.
Some ideas ?

Thank you!

Cheers,
Patrice[/quote]

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





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


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:
http://forum.openscenegraph.org/viewtopic.php?p=32785#32785





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


[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 if you have 
some advices for me ... !


Thanks!

Cheers,
Patrice

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





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