Re: [osg-users] Rendering the scene multiple times with differentshaders.

2008-05-25 Thread Viggo Løvli
Hi Robert, I've wondering about making it possible to have a composite StateSe to provide switch and layer functionality, but have never tackled this as it complicates the basic API quite a bit for functionality that only a very small proportion of users will ever require. That being

Re: [osg-users] Rendering the scene multiple times with differentshaders.

2008-05-25 Thread Robert Osfield
Hi Viggo, On Sun, May 25, 2008 at 10:13 PM, Viggo Løvli [EMAIL PROTECTED] wrote: Maybe I can take a look at how to integrate this into OSG? Well, if I get time to actually do it :-) You have the itch, you just need to scratch it :-) But in case I do, then I would like to try a direct

Re: [osg-users] Rendering the scene multiple times with differentshaders.

2008-05-23 Thread Viggo Løvli
and index them differently depending on what camera you use. Is that a good idea for the future? Viggo Date: Fri, 23 May 2008 09:16:35 +0100 From: [EMAIL PROTECTED] To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Rendering the scene multiple times with differentshaders. Hi Viggo

Re: [osg-users] Rendering the scene multiple times with differentshaders.

2008-05-23 Thread Robert Osfield
Hi Viggo, On Fri, May 23, 2008 at 12:34 PM, Viggo Løvli [EMAIL PROTECTED] wrote: What about adding an array of states or shaders to a node? This would make it possible to hold multiple shaders in one node and index them differently depending on what camera you use. Is that a good idea for the

Re: [osg-users] Rendering the scene multiple times with differentshaders.

2008-05-22 Thread Eric ZAREMBA
PROTECTED] De la part de Viggo Løvli Envoyé : jeudi 22 mai 2008 15:57 À : osg-users@lists.openscenegraph.org Objet : [osg-users] Rendering the scene multiple times with differentshaders. Hi, My scene contains models that use one or many textures, some use vertex and fragment shaders of different

Re: [osg-users] Rendering the scene multiple times with differentshaders.

2008-05-22 Thread Viggo Løvli
PROTECTED] To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Rendering the scene multiple times with differentshaders. I think use osg::Switch is right way to do. You can set a StateSet to any Node, then (correct me if I’m wrong) all children will inherit