Re: [osg-users] how to get the handle of opengl texture that corresponds to a OSG::Texture

2015-09-09 Thread Qingjie Zhang
Hi Robert, Do you mean the DrawCallback in the Camera class, which contains virtual void operator () (osg::RenderInfo& renderInfo) ? And here I can use the RenderInfo right? As I know, the following code can get a contextID: camera->getGraphicsContext()->getState()->getContextID(); Is this

Re: [osg-users] how to get the handle of opengl texture that corresponds to a OSG::Texture

2015-09-09 Thread Robert Osfield
Hi Qingjie, On 9 September 2015 at 09:27, Qingjie Zhang <305479...@qq.com> wrote: > Do you mean the DrawCallback in the Camera class, which contains > virtual void operator () (osg::RenderInfo& renderInfo) ? And here I can > use the RenderInfo right? > Yes. You can attach draw callbacks to

Re: [osg-users] how to get the handle of opengl texture that corresponds to a OSG::Texture

2015-09-09 Thread Robert Osfield
Hi Qingjie, The RenderInfo is managed by the my the rendering back end, it's passed to all draw callbacks and Drawables. Robert On 9 September 2015 at 04:29, Qingjie Zhang <305479...@qq.com> wrote: > Hi Robert, > I'm knowing that the RenderInfo->getContextID() can give me the contextID > to

Re: [osg-users] Change picked points' color ---why can't work in the pick function?

2015-09-09 Thread Trajce Nikolov NICK
Hi, can you try geom->dirtyDisplayLists() after changing the color? Nick On Wed, Sep 2, 2015 at 12:27 PM, Yexin W wrote: > Hi, > > Guys, I have a pick problem. What I want to do is loading 10 points with > their loactions and colors. I want to use poly pick, and use another

Re: [osg-users] Oculus+OSG

2015-09-09 Thread Björn Blissing
Hi, I just fixed a performance related bug. Due to misuse of an enum I had accidentally disabled all culling. (This bug would probably been avoided if strongly typed enum a'la C++11 were used). This bug only affects users using Oculus SDK 0.6 and 0.7. I urge all users of these versions of

Re: [osg-users] ffmpeg library version expected for OSG 3.2.3

2015-09-09 Thread Robert Osfield
Hi Sam, On 9 September 2015 at 00:24, sam wrote: > What version of ffmpeg is required to use the plugin for OSG 3.2.3? When > trying to use the latest build of ffmpeg; I get some undeclared identifier > errors which seem to be caused by deprecation of some functions within >

Re: [osg-users] ffmpeg library version expected for OSG 3.2.3

2015-09-09 Thread sam
Hi Robert, I'm attempting to use the latest git build of ffmpeg ( http://ffmpeg.zeranoe.com/builds/). I am going to try with 2.5.2 next. Would it be possible to get ffmpeg added to the dependencies package for OSG? I'll let you know how it goes. Thanks, Sam On Wed, Sep 9, 2015 at 7:45 AM,

Re: [osg-users] how to get the handle of opengl texture that corresponds to a OSG::Texture

2015-09-09 Thread Qingjie Zhang
Hi Robert, To get the handle of opengl texture, I attached a DrawCallback to the main camera, doing like these codes: struct MyCameraPostDrawCallback : public osg::Camera::DrawCallback { virtual void operator()(const osg::RenderInfo ) { int contextID =

[osg-users] pfObject::getNamedUserDataSlot

2015-09-09 Thread Tony Vasile
Is there an equivalent function to the Performer pfObject::getNamedUserDataSlot? Our code uses it a lot to store object data. I'm guessing we could just store the data in a map and uses the slot id returned as a key. Tony V -- Read this topic online

Re: [osg-users] ffmpeg library version expected for OSG 3.2.3

2015-09-09 Thread sam
Using ffmpeg 2.5.2 cleans up the compilation issues. I used a precompiled version of ffmpeg which was compiled with a prior version of VS so I do get a SAFESH warning. On Wed, Sep 9, 2015 at 9:26 AM, sam wrote: > Hi Robert, > > I'm attempting to use the latest git build of

[osg-users] [Questio nabout StateSet.cpp] truncated attribute override value?

2015-09-09 Thread Julien Valentin
Hi, Iwould like to introspect StateSet in order to know which override value is activated for a particular stateset. I parse AttributeList for this Code: for( osg::StateSet::AttributeList::const_iterator it=ss->getAttributeList().begin();it!=ss->getAttributeList().end() ; it++) {