[osg-users] Rendering order of passes of multi-passed technique

2014-03-08 Thread ttaw
As we know, there may be several passes used in osgFX::Technique. My question is whether different-passes-drawables would be rendered orderly as the passes are added into Technique (pass 0 is rendered before pass 1). As I read the source code of the file "RenderBin.cpp", I found that not std::st

Re: [osg-users] OSG static linking

2014-03-08 Thread Wang Rui
Hi Chris, As far as I know, USE_OSGPLUGIN only calls a C-styled function through a static proxy variable, which is defined by REGISTER_OSGPLUGIN in the plugin source code body. So compiler can thus find and register the plugin while static linking. It should do no harm to user applications no matt

Re: [osg-users] OSG static linking

2014-03-08 Thread Chris Hanson
I think what Paul was asking is, if you build and install OSG, is there any state retained anywhere (in a #define in a config.h or something) that indicates _if_ OSG itself WAS built with OSG_STATIC, and therefore if the application needs to configure its own #if blocks to automatically instantiate

Re: [osg-users] osgViewer::View::computeIntersections non-virtual?

2014-03-08 Thread Robert Osfield
Hi Clay, I don't have any object to making computeIntersections() virtual. The only sticking point is there are a collection of different computerIntersections() methods with different parameters, you'd need to override all of these. What may be a better solution would be to change the underlyi

Re: [osg-users] osg::ref_ptr thread safety

2014-03-08 Thread Robert Osfield
Hi Ulrich, On 7 March 2014 19:46, Ulrich Hertlein wrote: > Yes, that was my understanding too. > I was just advocating this procedure since it's sort of most-common > practice in OSG to > return raw pointers and the question came up. > Returning raw pointers is for efficiency and flexibility.

Re: [osg-users] OSG static linking

2014-03-08 Thread Robert Osfield
Hi Paul, On 7 March 2014 20:50, Paul Martz wrote: > If OSG is linked statically, obviously I need to reference a plugin with > the USE_OSGPLUGIN macro. > > Is there any way I can determine at compile time whether the OSG I'm > linking against was built as static or dynamic? I want to use USE_OS