Re: [osg-users] Dynamically changing all textures in a scene

2008-11-12 Thread Robert Osfield
On Wed, Nov 12, 2008 at 11:26 AM, David Spilling [EMAIL PROTECTED] wrote: The osg Depictions thread is here : http://www.mail-archive.com/[EMAIL PROTECTED]/msg10685.html Thanks for the link links is very useful, I don't recall this thread so perhaps I was away... Following the thread to the

Re: [osg-users] Dynamically changing all textures in a scene

2008-11-12 Thread Linus Hilding
Regarding the option 2: Post process the rendering back end's osgUtil::StateGraph replacing StateSet after the cull traversal has run. Where would the point of intervention be to get access to the stategraph, in order to change the different statesets? Linus

Re: [osg-users] Dynamically changing all textures in a scene

2008-11-12 Thread Robert Osfield
On Wed, Nov 12, 2008 at 3:27 PM, Linus Hilding [EMAIL PROTECTED] wrote: Regarding the option 2: Post process the rendering back end's osgUtil::StateGraph replacing StateSet after the cull traversal has run. Where would the point of intervention be to get access to the stategraph, in order

Re: [osg-users] Dynamically changing all textures in a scene

2008-11-12 Thread David Spilling
The osg Depictions thread is here : http://www.mail-archive.com/[EMAIL PROTECTED]/msg10685.html Ok, switching every stateset would be what I am looking to do. Composing the texture in the shader would mean we loose the desired ability to use image files. Agreed, but if your model had (for

Re: [osg-users] Dynamically changing all textures in a scene

2008-11-12 Thread Linus Hilding
Ok, switching every stateset would be what I am looking to do. Composing the texture in the shader would mean we loose the desired ability to use image files. Linus ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Dynamically changing all textures in a scene

2008-11-12 Thread Smeenk, R.J.M. (Roland)
A long long time ago somebody posted source code for osgDepictions, which allows you to do a texture/stateset switch for a complete scene. I could not find it in the mailing list archives though... -- Roland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [osg-users] Dynamically changing all textures in a scene

2008-11-12 Thread Robert Osfield
Hi Linus, On Wed, Nov 12, 2008 at 10:30 AM, Linus Hilding [EMAIL PROTECTED] wrote: Ok, switching every stateset would be what I am looking to do. Composing the texture in the shader would mean we loose the desired ability to use image files. StateSet remapping is what you'd probably best

Re: [osg-users] Dynamically changing all textures in a scene

2008-11-12 Thread Dusten Sobotta
The proper way to go about this would be using an alternate shader for the infrared view. That way you can pull in any source texture (one that is already mapped on an object), and generate the infrared composite image on the fly. For example, if you want all of the walls (and other cold