Re: [osg-users] Modify Object After Picking

2008-02-19 Thread Paul Martz
I have done this before, and the results are interesting but not high quality due to differences in line/polygon rasterization. Still a good trick nonetheless. -Paul glPolygonOffset()? Yes. This is actually what I used to do (not exactly as the original poster described it):

Re: [osg-users] Modify Object After Picking

2008-02-19 Thread Mike Weiblen
-Original Message- From: [EMAIL PROTECTED] [mailto:osg-users- [EMAIL PROTECTED] On Behalf Of Paul Martz Sent: Friday, February 15, 2008 8:20 AM To: 'OpenSceneGraph Users' Subject: Re: [osg-users] Modify Object After Picking An extension to this, which I've read about but never

Re: [osg-users] Modify Object After Picking

2008-02-15 Thread Gordon Tomlinson
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Romain Blanchais Sent: Friday, February 15, 2008 8:28 AM To: OpenSceneGraph Users Subject: [osg-users] Modify Object After Picking Hello, I would like to know if there is a simple way to show if an object is selected ? When I load a mesh from

Re: [osg-users] Modify Object After Picking

2008-02-15 Thread Paul Martz
To: OpenSceneGraph Users Subject: [osg-users] Modify Object After Picking Hello, I would like to know if there is a simple way to show if an object is selected ? When I load a mesh from a osg file I use readNodeFile. When I pick the object I get this osgNode return by thefunction readNodeFile but I don't

Re: [osg-users] Modify Object After Picking

2008-02-15 Thread John Donovan
Gordon Tomlinson wrote: Another old school Performer way, would be to double draw your node once in normal mode and then a second time in wire frame mode An extension to this, which I've read about but never implemented is, after rendering your object, set ztest to equal, switch to wireframe,

Re: [osg-users] Modify Object After Picking

2008-02-15 Thread John Donovan
Paul Martz wrote: I have done this before, and the results are interesting but not high quality due to differences in line/polygon rasterization. Still a good trick nonetheless. -Paul Yeah, I've seen line rasterization on different graphics cards produce different results, and sometimes

Re: [osg-users] Modify Object After Picking

2008-02-15 Thread Paul Martz
An extension to this, which I've read about but never implemented is, after rendering your object, set ztest to equal, switch to wireframe, set line thickness to 2 or 3 pixels, and render the backfaces of your object. You'll get a rather funky, and fairly cheap, silhouette of your object.

Re: [osg-users] Modify Object After Picking

2008-02-15 Thread Romain Blanchais
Thank you for your answers, About the osgFX Scribe effect, I found a problem in the archive mail list that when you apply this effect the object disappear few frames. Do you know if it's still the case ? http://archive.netbsd.se/?ml=openscenegraph-usersa=2006-11m=2558289 Regards __ Romain

Re: [osg-users] Modify Object After Picking

2008-02-15 Thread Jean-Sébastien Guay
Hello Romain, I use the Scribe effect all the time (both at work and in my Masters project) and I've never seen that particular issue. But do you add the scribe effect in real time ? Yes. Just be sure to do it in the update thread and make sure you don't do it while traversing (to not