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 wrote: >

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 http://stackoverflow.com/questions/13546461/wh

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 functio