Re: [osg-users] force fixed function pipeline

2014-02-13 Thread Daniel Schmid
I chose the following solution: by knowing that binding program 0 (zero) doesn't give 100% correct results with all drivers, I created a fragment program that simply passes the incoming color to the output. Like this I was sure that at least the vertex part of the pipeline is using fixed

[osg-users] force fixed function pipeline

2014-02-07 Thread Daniel Schmid
Hi Robert and all I have a main shader for my scene graph. Then I have some parts of my loaded models that I want to explicitely render with the fixed-function-pipeline (FFP). In osg 3.1.5 I was able to modify a particular stateset by writing

Re: [osg-users] force fixed function pipeline

2014-02-07 Thread Trajce Nikolov NICK
HI Daniel, you can set an empty Program in the stateset instead of disabling it. This way the subgraph will be rendered using the fixed pipe-line. Like stateset-setAttributeAndModes( new osg::Program, on, override, whatever ) Nick On Fri, Feb 7, 2014 at 1:14 PM, Daniel Schmid

Re: [osg-users] force fixed function pipeline

2014-02-07 Thread Daniel Schmid
I know setting an empty program is the way this used to be done. And it seemed to work for some time. But in my case it doens't. In the apply method of osg::Program, a call to glUseProgram(0) is issued when the program object is empty. According to