[osg-users] Shader issue

2008-10-19 Thread ami guru
Hello forum, I would like to load and apply different shaders(written in GLSL) to the same model with the differet GUI events(may be keypress event). I shall have also have the option of different light source type as well(directional,point ,area) and their numbers. The Geometry node will be

Re: [osg-users] Shader issue

2008-10-19 Thread David Spilling
Hiya Sajjad, Perhaps an easy way is to have a (multi)switch node whose value is triggered by the GUI event. The switch would have several children, each of which would be a separate group node. Each group node would have your target model as it's only child. Then you would load up a variety of

[osg-users] New Nvidia Driver Fixed Multi-monitor multi-threaded bug?

2008-10-19 Thread Yefei He
Hi, Folks, Could any of you test to see if the latest version of the Nvidia GeForce driver fixed the bug with the multi-monitor, multi-threaded configuration? I'm one of those that use an older version of OSG with Producer that doesn't have Wojtek's workaround built in, and could see

[osg-users] osg::ref_ptrosg::Group instead of osg::Group *

2008-10-19 Thread Ruqin Zhang
Hi, I have the following code: osg::Group *parent = dynamic_castosg::Group *(node-getChild(0)); Here, if I want to use osg::ref_ptrosg::Group instead of osg::Group *, how can I implement it? Thanks! ___ osg-users mailing list

Re: [osg-users] osg::ref_ptrosg::Group instead of osg::Group *

2008-10-19 Thread Gordon Tomlinson
Did you try anything ?, did you look at the examples , this is shown in nearly every example and tutorial that use a group osg::ref_ptrosg::Group parent = dynamic_castosg::Group *(node-getChild(0)); But you might want to ensure that dynamic_castosg::Group *(node-getChild(0)); actually

[osg-users] About OSG Distributed Usage

2008-10-19 Thread xyc508
Hi ,how are you all? Does anyone know where is the OSG Distributed Module in OSG Code Source? How many ueser all over the NET can roam the same scene? How to realize this Usage? Donlin Thanks___ osg-users mailing list