Hi J-S, If you are hitting frame then I wouldn't worry about it too much :-)
I presume that you won't be selecting too many objects in the scene, so it's not like you'll be doubling the cost of the whole scene, and if there is only one object in the scene that you select you are unlikely to be breaking frame... Robert. On Tue, Nov 25, 2008 at 9:47 PM, Jean-Sébastien Guay <[EMAIL PROTECTED]> wrote: > Hi all, > > As I said before, I'm working on a modeling-type application. To give > feedback of which object is selected, I'd like to outline it in white (or > any color). > > I've currently got two implementations of an outline effect (using > osgFX::Effect), one of which uses the stencil buffer, the other which > doesn't but does basically the same things (render back faces as lines, with > a line width of 3, with a depth function of LEQUAL, etc.). Pretty classic. > > In both cases, my cull, draw and GPU times jump inordinately high when the > effect is active. For a pretty simple object, I get the following: > > Without effect: > Cull 0.4 > Draw 0.5 > GPU 0.12 > > With effect: > Cull 1.43 > Draw 2.3 > GPU 2.7 > > That seems apalling to me... I would think the time would *at most* double, > and I would be hesitant to use the effect if it did. So more than triple is > just too much. > > Is there some explanation for this? More importantly, is there some other > technique I could use to get an outline around my object, which would have > less of an impact? What do others do to get similar effects? > > Thanks in advance, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

